首页 技术 正文
技术 2022年11月9日
0 收藏 526 点赞 3,275 浏览 1624 个字

selenium报错汇总

报错:[error] Could not connect to Selenium Server. Have you started the Selenium Server yet?解决:selenium两种驱动方式,一是use selenium IDE,一种是use selenium webdriver。在options里去掉勾选enable webdriver playback即可。Google答案地址。http://sqa.stackexchange.com/questions/10024/error-could-not-connect-to-selenium-server-have-you-started-the-selenium-server 问题:seleniumIDE录制时遇到新开窗口的链接_blank,回访时会出现焦点扔停留在旧窗口下,无法操作新窗口,报错无法找到页面元素?解决:使用selectPopUp命令,选择弹出窗口,然后继续下一步操作即可。  报错:raceback (most recent call last):  File “C:\Users\Administrator\Desktop\selenium\chrome.py”, line 4, in <module>    driver=webdriver.Firefox()  File “C:\Python27\lib\selenium\webdriver\firefox\webdriver.py”, line 59, in __init__    self.binary, timeout),  File “C:\Python27\lib\selenium\webdriver\firefox\extension_connection.py”, line 47, in __init__    self.binary.launch_browser(self.profile)  File “C:\Python27\lib\selenium\webdriver\firefox\firefox_binary.py”, line 66, in launch_browser    self._wait_until_connectable()  File “C:\Python27\lib\selenium\webdriver\firefox\firefox_binary.py”, line 105, in _wait_until_connectable    raise WebDriverException(“Can’t load the profile. Profile “WebDriverException: Message: Can’t load the profile. Profile Dir: %s If you specified a log_file in the FirefoxBinary constructor, check it for details. 解决:外国网友说是selenium和firefox不兼容,需要倒退firefox的版本http://stackoverflow.com/questions/6682009/selenium-firefoxprofile-exception-cant-load-the-profile 报错:[error] Could not connect to Selenium Server. Have you started the Selenium Server yet?解决:启用服务java -jar C:\seleniumRC\selenium-server-1.0.3\selenium-server-standalone-2.45.0.jar如果启用失败,查看端口netstat -ano 关闭被占用的端口。

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,111
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,584
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,431
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,203
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,838
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,922