码迷,mamicode.com
首页 >  
搜索关键字:Selenium css定位    ( 6592个结果
Selenium和Firefox兼容问题
运行时遇到错误: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms后查询得知是两者不兼容引起的问题。解决方法有:1. c...
分类:其他好文   时间:2015-04-24 13:51:00    阅读次数:302
selenium启动各种浏览器
selenium启动各种浏览器1、先下载各种浏览器驱动2、将下载好的各种驱动放置在配置好的path环境的目录下3、import webdriver4、就可以开始调用了例:from selenium import webdriver aa=webdriver.Firefox()运行就可以调用火狐浏览器...
分类:其他好文   时间:2015-04-24 11:55:24    阅读次数:110
Selenium IDE 使用教程(一)
Selenium IDE 使用教程(一) 简介及安装 Selenium IDE 是一个易于使用的Firefox插件。它提供了一个图形用户界面,可进行脚本录制及导出。其记录的脚本可以被转换成多种编程语言(HTML、Ruby、Python、Java、C#)。Selenium IDE + Fi...
分类:其他好文   时间:2015-04-23 22:53:52    阅读次数:319
[Selenium]通过Selenium实现在当前浏览器窗口点击一个图标之后,弹出另外一个窗口,关闭这个窗口,再回到原来的窗口进行操作
12345678910publicvoidclickReportIcon(){String initialWindowHandle = driver.getWindowHandle();//保存原始的浏览器窗口page.getReportIcon().click();//这个操作之后将会弹出另外一个...
分类:其他好文   时间:2015-04-23 15:39:08    阅读次数:127
[Selenium] The commonly used operation of element
btnLogin.click(); //Click elementSeleniumUtil.jsClick(driver, saveButtonEl); //If click() is not applicable ,try this onetxtEmail.clear(); //Clear tex...
分类:其他好文   时间:2015-04-23 15:33:49    阅读次数:194
[Selenium] The commonly used validation method
Assert.assertTrue(tmpEl.getAttribute("class").contains("selected"),"The folder should be highlighted.");Assert.assertFalse(dialog.isDisplayed(),button...
分类:其他好文   时间:2015-04-23 15:33:39    阅读次数:125
[Selenium] common functions comparison
1.Wait for element in default time or self defined timeWhen the element need some time to be present , be visible, be not present or be not visible, f...
分类:其他好文   时间:2015-04-23 15:28:27    阅读次数:248
[Selenium] The most commonly used CSSSelector
CSSSelectorExampleDescriptionelement.elementdiv.dropdownSelect all elements whose class=“dropdown”element#elementdiv#new-inputSelect all elements...
分类:Web程序   时间:2015-04-23 15:19:33    阅读次数:141
selenium--上传图片
html 源码:上传图片webdriver上传图片:driver.find_element_by_name("PicFile").send_keys("D:\\Users\\xxx\\workspace\\test.admin.eyanjiu.cn\\11.png")
分类:Web程序   时间:2015-04-21 17:32:41    阅读次数:191
selenium--下拉列表选择
html 代码: 选择下拉列表第1个:选项1from selenium.webdriver.support.ui import SelectSelect(driver.find_element_by_id("columnOrd")).select_by_visible_text(u"选项1")
分类:其他好文   时间:2015-04-21 17:31:37    阅读次数:127
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!