码迷,mamicode.com
首页 >  
搜索关键字:selenium frmae    ( 6251个结果
请求库之 selenium模块
介绍:selenium最初是一个测试工具,而爬虫中使用它主要是为了解决requests无法直接执行JavaScript代码的问题 selenium本质是通过驱动浏览器,完全模拟浏览器的操作,比如跳转、输入、点击、下拉等,来拿到网页渲染之后的结果,可支持多种浏览器 1 from selenium im... ...
分类:其他好文   时间:2019-12-15 12:28:25    阅读次数:72
python+selenium模拟鼠标操作
from selenium.webdriver.common.action_chains import ActionChains #导入鼠标相关的包 submit = driver.find_element_by_id('kw') #首先创建对象 ActionChains(driver).click ...
分类:编程语言   时间:2019-12-15 11:00:20    阅读次数:145
python+selenium模拟键盘输入
from selenium.webdriver.common.keys import Keys #键盘导入类 常用的键盘操作: send_keys(Keys.BACK_SPACE):删除键(BackSpace) send_keys(Keys.SPACE):空格键(Space) send_keys(K ...
分类:编程语言   时间:2019-12-15 10:45:40    阅读次数:102
python+selenium的frame表单切换01
switch_to.frame() 切换frame switch_to.default_content() 切换到主页面 #从frame中切回主文档 switch_to.parent_frame() 这是switch_to中独有的方法,可以切换到上一层的frame,对于层层嵌套的frame很有用 # ...
分类:编程语言   时间:2019-12-14 21:00:42    阅读次数:108
selenium原理解析
相信很多测试小伙伴儿都听过或者使用过web自动化selenium,那您有没有研究过selenium的原理呢?为什么要使用webdriver.exe,webdriver.exe是干啥用的?selenium.common.exceptions.WebDriverException: Message: ' ...
分类:其他好文   时间:2019-12-14 20:59:32    阅读次数:121
Appium(十):元素定位(加强版)
1. 元素定位 写完上一篇元素定位的博客,发现实用性基本为零。这几天真的烦死我了,一直在找资料,还去看了一遍appium官网文档。最后结合着selenium的定位方法,测试出几种可行的元素定位方法。 1.1 层级定位 什么是层级定位呢? 在很多的自动化中如果只是靠简单的定位是没有办法完成自动化的。有 ...
分类:移动开发   时间:2019-12-14 18:58:06    阅读次数:124
元素八大定位方式
路径:e:/pythonpro/liuyun/selenium/demo1.py 1、通过ID值: 搜索框:<input id="search-input" name="wd" type="text" placeholder="其实搜索很简单^_^ !" value="" autocomplete= ...
分类:其他好文   时间:2019-12-14 11:35:28    阅读次数:279
unittest管理用例生成测试报告
#登录方法的封装 from appium import webdriver from time import sleep from python_selenium.Slide import swipeLeft def login(user,pwd): caps = { "platformName": ...
分类:其他好文   时间:2019-12-14 11:34:41    阅读次数:89
python+selenium下拉列表option对象操作方法一
参考官方文档:https://selenium.dev/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.select.html?highlight=all_selected_options#selenium.webd ...
分类:编程语言   时间:2019-12-14 09:34:35    阅读次数:117
Python自动化之下拉框,隐藏标签定位 代码&报错解决
python自动化:下拉框定位方法之select标签style="display:none;"报错selenium.common.exceptions.ElementNotVisibleException:Message:elementnotvisible:Elementisnotcurrentlyvisibleandmaynotbemanipulated界面源码:(禅道为例)
分类:编程语言   时间:2019-12-14 09:33:53    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!