Tag: 火狐

什么是适合我的Firefox版本的geckodriver?

我正在尝试使用Firefox在Amazon Linux上运行nodeJs(节点v 8.8.1)自动化testing。 由于亚马逊Linux的一些限制,最新版本的firefox taht实际上运行的是41.下面是我的Firefox和亚马逊版本… [myuser@mymachine ~]$ firefox -v Mozilla Firefox 41.0 [myuser@mymachine ~]$ uname -a Linux ip-33-22-3-77 4.9.51-10.52.amzn1.x86_64 #1 SMP Fri Sep 29 01:16:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 我的问题是,我使用什么版本的Geckodriver与此版本的Firefox兼容? 有了最新版本,我们得到错误,试图产生一个Firefox窗口,没有在我们的path壁虎驱动程序,我们得到了错误 /home/jboss/node_modules/selenium-webdriver/firefox/index.js:354 throw Error( ^ Error: The geckodriver executable could not be found on the current PATH. Please download the latest version from […]

如何使用Webdriver控制Firefox扩展的边栏

我正在尝试使用由selenium-webdriver NodeJs包提供的相关驱动程序来testingFirefox扩展。 该扩展创build了一个侧边栏,其句柄我无法使用getAllWindowHandles方法find。 花了一些时间阅读文档,似乎Selenium不支持标签; 也许这就是为什么。 有没有办法检索一个Firefox(扩展)边栏的句柄,以便能够在其上运行testing?