码迷,mamicode.com
首页 >  
搜索关键字:webdriver    ( 2418个结果
selenium与appium怎样联系
appium是手机app端的自动化,它继承了webdriver(也就是selenium 2) 不过appium仍然需要通过selenium最后做测试工具,但是appium起到了一个连接手机端非常好的桥梁工作!可以连接到电脑上非常方便的调用selenium工具来做测试。 Selenium 1.0版包括 ...
分类:移动开发   时间:2019-12-05 13:31:39    阅读次数:89
python-selenium -- 弹出框处理
弹出框有两种:页面弹出框(可定位元素能操作)、Windows弹出框(不能直接定位) 一、页面弹出框 等待弹出框出现之后,定位弹出框,操作其中元素 如: driver = webdriver.Chrome() driver.get("https://www.baidu.com") driver.max ...
分类:编程语言   时间:2019-12-05 13:20:59    阅读次数:119
selenium(六)Page Object模式(使用selenium的PageFactory)
PageObject 类 import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa ...
分类:其他好文   时间:2019-12-05 01:16:32    阅读次数:85
selenium简介(一)
1.selenium版本 selenium 1: selenium IDE :Firefox插件,录制,回放 selenium RC:JS类库,支持各种语言 selenium Grid:分布式执行,主机控制执行机执行代码 selenium 2:selenium 1+webdriver(谷歌产品,代码 ...
分类:其他好文   时间:2019-12-04 21:58:13    阅读次数:133
Selenium+Java(七)Selenium对话框的处理
HTML代码如图所示: 一、alert String url = "file:///C:/Users/ex_yuhao/Desktop/index.html"; //引用IE浏览器驱动 System.setProperty("webdriver.ie.driver", "./src/driver/I ...
分类:编程语言   时间:2019-12-03 20:09:37    阅读次数:106
【win10】selenium之Firefox,Chrome,IE对应webdriver的安装配置
一、安装Python3 1. 可以到Python官方网站:https://www.python.org/downloads/ 下载并安装Python,建议安装Python3(由于已经安装过,此处就不继续阐述安装步骤,安装步骤和其他软件一样,安装完成后把安装目录加入到环境变量,可参考其他文章) 2. ...
分类:Windows程序   时间:2019-12-03 18:11:57    阅读次数:417
python-Browers_action
#####浏览器常用方法#### #导入相关模块from selenium import webdriverfrom time import sleep#加载浏览器驱动driver=webdriver.Ie()#打开指定页面driver.get('http://www.baidu.com')#窗口最 ...
分类:编程语言   时间:2019-12-02 11:56:20    阅读次数:82
(十八)模块文件调用
1.引用模块 (1)from...import... 如:from selenium import webdriver from time import sleep from...import *(*表示所有) (2)import... 如:import time (表示导入time模块,如同 fr ...
分类:其他好文   时间:2019-12-01 18:29:33    阅读次数:80
解决“chrome正受到自动测试软件的控制”信息栏显示,使用disable-infobars属性不生效问题
python3 ``` chrome_options = webdriver.ChromeOptions(); chrome_options.add_experimental_option("excludeSwitches", ['enable-automation']); driver = web ...
分类:其他好文   时间:2019-12-01 09:15:15    阅读次数:360
Selenium(十二):操作Cookie、调用JavaScript、HTML5的视频播放
1. 操作Cookie 有时候我们想要验证浏览器中cookie是否正确,因为基于真实cookie的测试是无法通过白盒和集成测试的。WebDriver提供了操作Cookie的相关方法,可以读取、添加和删除cookie信息。 WebDriver操作cookie的方法: get_cookies():获得所 ...
分类:编程语言   时间:2019-11-30 15:22:40    阅读次数:97
2418条   上一页 1 ... 41 42 43 44 45 ... 242 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!