
selenium
文章平均质量分 79
yeyue0922
这个作者很懒,什么都没留下…
展开
-
selenium安装、配置及使用+java
下载1.在oracle官网下载JDK后运行jdk.exe并安装到指定目录中,安装完成后cmd,输入java检查下是否安装成功2.在eclipse官网下载eclipse3.火狐浏览器配置firebug和firepathhttps://addons.mozilla.org/en-US/firefox/addon/firebug/https://addons.mozilla.原创 2017-10-30 12:53:59 · 10920 阅读 · 1 评论 -
Python selenium自动化测试 登录优快云实例
import timefrom selenium import webdriverfrom selenium.common.exceptions import *from selenium.webdriver.common.action_chains import ActionChainsclass Test_step(object): def __init__(self):原创 2017-11-01 16:27:10 · 995 阅读 · 0 评论 -
Python+Selenium定位不到元素原因及解决方法(报:NoSuchElementException)
今天在写QQ邮箱登录联系的时候,发现无论通过什么定位方法都无法定位,一直报错,报错内容为:selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"id","selector":"switcher_plogin"}后来在网转载 2017-11-21 13:47:06 · 14570 阅读 · 4 评论 -
selenium+python截图不成功
selenium+python,使用webdriver的截图函数get_screenshot_as_file()截图,代码如下:from selenium import webdriverfrom time import sleepdriver=webdriver.Chrome()driver.get("https://www.baidu.com")driver.find_elem原创 2017-12-12 20:26:00 · 3270 阅读 · 2 评论 -
Python打开文件报错
Python打开文件报错,报错内容为: File "C:\yeyue\python\demo\upfile2.py", line 13 os.system('C:\yeyue\python\demo\upfile.exe') ^SyntaxError: (unicode error) 'unicodeescape' codec can't decod原创 2017-12-07 16:20:23 · 2151 阅读 · 0 评论