码迷,mamicode.com
首页 >  
搜索关键字:selenium 常用操作封装    ( 6258个结果
selenium-ide学习
最近想把selenium给系统的学习下。主要因为它开源,且适配多个浏览器多种语言。selenium主要由selenium-ide、selenium1、selenium2、selenium gird组成。我这菜鸟就先来学习selenium-ide吧。学习selenium书籍::《selenium私房菜...
分类:其他好文   时间:2015-04-24 16:10:44    阅读次数:133
selenium IDE 安装 并脚本录制 和java单元测试
IDE的安装,主要是记录浏览器的行为,并进行行为轨迹脚本录制,录制完毕之后可以让它自动执行。同时更好的是可以生成各种语言的测试案例,直接在编码阶段进行测试,就省去了点击浏览器的麻烦事。 1、安装FireBug,火狐首先安装firebug插件,依赖人家没办法。 2、安装IDE,打开火狐的扩展程序-》插件 将xpi拖过去就能安装了。       3、测试浏览器用户行为记录:...
分类:编程语言   时间:2015-04-24 14:25:14    阅读次数:179
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!