-
-1 votesanswersviews
对于Firefox,Selenium webdriver 3.3.0 geckodriver错误
我正在尝试在Windows 10上执行 ruby script . 设置细节: Browser :- latest version of Firefox, <br> ruby -v 2.2.6<br> gem -v 2.4.5.2 <br> selenium webdriver -v 3.3.0 现在我收到一个错误,它无法找到 geckodriver . ... -
1 votesanswersviews
Selenium webdriver打开firefox,但不通过Selenium和NodeJS获取页面
我正在开始使用NodeJS中的selenium并设置一个简单的配置文件 . test.config.js var webdriver = require('selenium-webdriver'), By = webdriver.By, until = webdriver.until; var driver = new webdriver.Builder() .forBrowser(... -
0 votesanswersviews
Selenium Firefox首选项已更改但未应用
我正在使用Selenium和Firefox进行自动化测试,我需要自动下载文件 . 这是我用来设置代码的两个链接 . Auto download PDF in Firefox Set Firefox profile to download files automatically using Selenium and Java 总结文章,代码应如下所示: FirefoxOptions options ... -
0 votesanswersviews
Python:尝试使用Selenium打开IDLE中的网页= ConnectionAbortedError:[WinError 10053]
我是Python新手并关注Automate The Boring Stuff一书(https://automatetheboringstuff.com/chapter11/) 目前我遇到了一个错误 . 我一直在谷歌搜索几个小时,但似乎无法找到类似的东西或对我有用 . 这是我的代码: from selenium import webdriver browser = webdriver.Fir... -
9 votesanswersviews
Selenium Firefox Dev-Edition:send_keys抛出[object Undefined]异常
尝试在登录期间使用 send_keys() 方法输入用户名 . 我想它能够找到输入元素,就像我跑到 send_keys 之前一样 . 通过在 send_keys 中发送字符串值,它会抛出错误 . selenium.common.exceptions.WebDriverException:消息:预期[对象未定义]未定义为字符串 我错过了什么? Python:3.5硒3.3.1Firefox De... -
-2 votesanswersviews
Selenium firefox webdriver打开skype扩展网站作为默认选项卡 . 尝试更新驱动程序和浏览器
Selenium firefox webdriver opening skype extension website as a default tab. gecko driver version -geckodriver-v0.14.0,Firefox version -52.0.2 and in control panel i cannot see any skype installtion. ... -
0 votesanswersviews
使用Nightwatch和Selenium测试localhost时无法在Firefox上加载页面
我正在使用Nightwatch构建一套自动化集成测试,这是Selenium WebDriver API的Node包装器 . 我能够让它适用于Chrome,但不适用于Firefox(或Safari) . 我认为这个问题与GeckoDriver和Firefox Driver有关 . 我已经将Nightwatch配置为在 nightwatch.json 中使用GeckoDriver . 但Seleniu... -
2 votesanswersviews
Firefox:(firefox:12729):GLib-GObject-CRITICAL **:g_object_ref:断言'object->ref_count > 0'失败
运行firefox时,显示以下错误: (firefox:12729): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed 操作系统:Ubuntu 14.04 FF:Quantun 57.0 ldd版本:2.19 我已经更新了glid . 但同样的问题是存在的 问题:实际上它... -
3 votesanswersviews
java.net.ConnectException:拒绝连接:通过GeckoDriver启动Firefox时连接
我已经下载了最新版本的Firefox,即Quantum . 对于Selenium,之前没有必要为Firefox下载任何可执行文件来打开URL,但现在它抛出了为GeckoDriver设置属性的错误 . 所以,我下载了最新版本的 geckodriver-v0.20.1-arm7hf.tar.gz 并将其放在 System.setProperty() 中,因此它抛出了连接拒绝的错误 . 因此,我使用替代... -
1 votesanswersviews
使用Firefox从Nightwatch.js自动运行Selenium时出错
我想在运行nightwatch.js测试用例时自动启动Selenium Server . 我将nightwatch.json上的selenium设置更改为: "selenium" : { "start_process" : true, "server_path" : "./selenium/selenium391... -
0 votesanswersviews
在Mac上使用Selenium和python脚本的问题(webdriver:firefox driver / geckodriver)
我正在尝试在我的mac上使用带有Python脚本的selenium需要firefox(我从github克隆了geckodriver)但是由于某种原因,webdriver似乎存在某种类型的问题(我知道它需要firefoxdriver和firebug ,我得到了geckodriver) . 我真的很像一个菜鸟(我是一名CS学生,有点像初学者想要学习) . 我觉得我的问题可能与我的Firefox配置文件... -
284 votesanswersviews
使用Python的Selenium - Geckodriver可执行文件需要在PATH中
我是编程的新手,大约2个月前开始使用 Python 并且正在使用Python文本浏览Sweigart的Automate the Boring Stuff . 我正在使用IDLE并且已经安装了selenium模块和Firefox浏览器 . 每当我尝试运行webdriver函数时,我都会这样: from selenium import webdriver browser = webdriver.Fir... -
0 votesanswersviews
到达错误页面:about:neterror?e = connectionFailure&u = https
通过Jenkins运行Selenium Webdriver Java testng项目时出现以下错误 . 1521293224017 geckodriver INFO geckodriver 0.19.1 1521293224023 geckodriver INFO Listening on 127.0.0.1:6456 1521293224532 mozrunner :: runner INF... -
0 votesanswersviews
Python无法打开链接
我正在尝试打开instagram.com,然后将其重定向到登录屏幕 . 但是,它会打开instagram.com,但不会进入登录屏幕,只是坐在主页面上 . def login(self): driver = self.driver driver.get("https://www.instagram.com/") time.sleep(2) log... -
284 votesanswersviews
使用Python的Selenium - Geckodriver可执行文件需要在PATH中
我是编程的新手,大约2个月前开始使用 Python 并且正在使用Python文本浏览Sweigart的Automate the Boring Stuff . 我正在使用IDLE并且已经安装了selenium模块和Firefox浏览器 . 每当我尝试运行webdriver函数时,我都会这样: from selenium import webdriver browser = webdriver.Fir... -
1 votesanswersviews
尝试使用Headless Firefox运行Selenium时“连接被拒绝”
我使用的每个项目的版本如下:Selenium 3.4.0,GeckoDriver v0.19.0 for Linux 64和Firefox 52.4.0 . 我在这个网站上问过的第一个问题 . 我通常能够通过简单的潜伏来解决问题,但是这个问题一直给我一个真正的运行我的钱 . 我正在尝试将Jenkins设置为“mvn clean test”一个项目,该项目将在“test”上运行Selenium(使用... -
0 votesanswersviews
用Python点击按钮脚本[复制]
这个问题在这里已有答案: Selenium using Python - Geckodriver executable needs to be in PATH 18个答案 尝试运行以下脚本转到this网站并单击链接以导出csv . from selenium import webdriver driver=webdriver.Firefox() driver.get("https:/... -
0 votesanswersviews
通过webdriver使用不同的浏览器版本
我开始用selenium web驱动程序编写一个测试场景,并通过不同的firefox和IE版本进行测试 . 所以,我下载了GeckoDriver和selenium webdriver本身 . 问题是,为了在不同的浏览器版本中测试我的场景,有什么版本的selenium webdriver,firefoxdriver(gecko driver)和IE驱动程序?例如自版本35以来的Firefox和自版本... -
0 votesanswersviews
构造函数FirefoxDriver(FirefoxOptions)未定义
我正在使用Selenium 3.5.3,以下是我的代码 . 我试图在构造函数中使用Firefox选项https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/firefox/FirefoxDriver.html#FirefoxDriver-org.openqa.selenium.firefox.FirefoxOp... -
7 votesanswersviews
无法从中读取VR Path Registry
版本:geckodriver-v0.20.0-win64 平台:Windows 10 Home Single 浏览器:Firefox:59.0.2(64位) Selenium:selenium-java-3.11.0 intelliJ Idea:2018.1社区版 您好,我开始在intelliJ IDEA中使用带有Java的WebDriver . 我使用Maven导入了Se... -
2 votesanswersviews
在Firefox中下载PDF的Selenium问题
我正在努力将我们的内部Java Selenium框架升级到最新版本3.14.0以及Firefox 61.0和Geckodriver 0.21.0 . 在使用Firefox自动下载PDF文件时,我遇到了问题 . 例如,在这个link有一个下载按钮,我可以让selenium点击 . 不打开pdf,而是打开内置的查看器 . 首选项 pdfjs.disabled 应该停用查看器,因此使用配置文件创建了驱动... -
7 votesanswersviews
如何将geckodriver放入PATH? [重复]
这个问题在这里已有答案: Selenium using Python - Geckodriver executable needs to be in PATH 18个答案 我在OS Sierra上,我正在运行Python 3.5.2 . 我安装了selenium,我正在关注一本名为“使用Python自动执行无聊任务”的书 我的代码是 from selenium import webdriver... -
10 votesanswersviews
如何安装Geckodriver?
我试图在Python中使用Selenium . 但是,我不知道该做什么从下面给出https://pypi.python.org/pypi/selenium Selenium需要驱动程序与所选浏览器进行交互 . 例如,Firefox需要geckodriver,需要在运行以下示例之前安装geckodriver . 确保它在你的路径中,e . 例如,将它放在/ usr / bin或/ usr / loc... -
0 votesanswersviews
元素不是selenium python
我有selenium脚本,基本目标是将位置放在输入标签中并单击搜索按钮并打开结果页面但是我在查找输入和搜索按钮时遇到问题脚本在下面 # -*- coding: utf-8 -*- import csv from lxml import html from selenium import webdriver from selenium.webdriver.common.by import By f... -
0 votesanswersviews
无法使用GeckoDriver找到匹配的功能集
我尝试在Debian 9 Stretch中运行selenium python包以进行网络抓取;我为以下软件安装了这样的版本: Python 2.7.13(使用Pycharm 2018.2社区版) Mozilla Firefox Quantum 61.0.1(64位) Selenium 3.14(使用GeckoDriver v0.21.0) 当我尝试通过运行来调用Web驱动程序时: ... -
1 votesanswersviews
使用FF49和Python,Firefox驱动程序无法启动Selenium 3.0.1
我使用Python跟随Selenium Webdriver脚本 . 但是我得到了错误: from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities caps = DesiredCapabilities.FIREFOX caps["... -
1 votesanswersviews
运行Selenium的PHP exec python脚本
我正在尝试从PHP(使用Laravel)运行一个使用Selenium - > Firefox的python脚本 . 它现在运行最新的firefox,selenium 3.11.0和geckodriver 0.20.0 当我从PHP运行python脚本 test.py 时: $scrape = 'python '.base_path().'Description\test.py 2>&... -
1 votesanswersviews
在Firefox中使用Nightwatch运行测试无法连接到Selenium服务器
我正在尝试使用Nightwatch.js对网站进行自动测试,而我正在使用macOS High Sierra . 所以我开始使用文档中所述的Selenium Standalone Server进行测试 . Chrome测试工作正常,我没有问题 . 但我似乎无法使Firefox测试工作,我一直在测试和在线搜索修复,但我放弃了,因为我找不到任何解决方案 . 这是我的nightwatch.json配置文... -
3 votesanswersviews
无法在firefox中使用selenium 3注入javascript
我正在使用selenium注入java脚本变量并检索它以进行验证 . 下面是我的示例代码,它与selenium版本2.53.1一起正常工作 . 当我升级到selenium 3并开始为firefox使用gecko驱动程序时,它会在我检索值时抛出异常 . driver.executeScript("globalVar='Amit';"); Object result = drive... -
3 votesanswersviews
在Python中使用Selenium访问Tor
我已经尝试了很多解决方案,但到目前为止还没有任何运气 . 我正在尝试使用python中的selenium访问tor浏览器,但是当我的程序打开Tor时,Tor会给我一条错误消息: Tor failed to start. Python然后给出以下错误消息: selenium.common.exceptions.WebDriverException: Message: permission deni...