-
4 votesanswersviews
Linux中的selenium自动化测试问题:firefox无法自动关闭
我正在通过selenium(selenium RC)在Linux中运行Web GUI的自动化测试 . 事实上,我可以在windows中运行selenium自动化测试,结果很好,firefox可以在测试完成后自动关闭 . But when I put selenium test in linux, I found firefox can't be closed automatically aft... -
0 votesanswersviews
检查与getAllLinks的链接
我用selenium ide和rc测试应用程序 . 我需要验证链接 . 通常我将文件从Selenium ide导出到junit 4,并在eclipse中运行文件 . 文件如下 package com.example.tests; import com.thoughtworks.selenium . *; import org.junit.After; import org.junit.Before... -
7 votesanswersviews
Selenium服务器无法启动自定义firefox配置文件
我试图通过将自定义firefox配置文件传递给DefaultSelenium构造函数来启动selenium服务器 . 它使用指定的URL打开浏览器 . DefaultSelenium selenium = new DefaultSelenium("localhost", 4444, "*custom \"C:/Program Files/Mozilla Fi... -
0 votesanswersviews
从Junit运行时无法运行该应用程序
我正在使用Firefox上的Selenium为银行应用程序开发脚本,应用程序使用cookie并存储cookie,当我手动运行应用程序并在firefox中使用selenium IDE时它工作正常现在我将selenium命令转换为JUNIT当我运行(在后台selenium server.jar正在运行),通过eclipse应用程序在firefox中启动,但创建一个单独的配置文件,并在该配置文件中没有c... -
10 votesanswersviews
在Ubuntu上启动Firefox时,Selenium挂起
我的最终目标是让Selenium在Jenkins内部运行 . 我的Jenkins安装在Ubuntu虚拟机中运行 . 在jenkins selenium设置的一些问题(源自jenkins运行的用户的权限)之后,我切换到从命令行运行命令以查看发生了什么 . 我的目标是让测试在这里运行,然后让它在Jenkins中运行 . 这是我正在使用和看到的命令和响应 . resn@resn-VirtualBox:~... -
1 votesanswersviews
Selenium Server启动Firefox,但Firefox不加载RemoteRunner
将我的主构建/测试服务器移动到一个新的位置,并在我这样做时更新操作系统 . 它在旧服务器上工作(如果内存不足并经常超时) . 新服务器拥有更多内存和处理器,并且还运行着更新的操作系统 . 服务器是Ubuntu 11.04,Natty,从远程数据中心运行Vnc4服务器 . Selenium IDE 1.6.0安装在Firefox中(虽然必须强制配置文件才能让它实际记住它已安装) . Firefox安... -
0 votesanswersviews
用于在selenium RC中使用java进行单个测试的多个浏览器
我想在多个浏览器上运行我的selenium RC测试用例,该测试用JUnit4支持 . 我该怎么办呢?应该在以下方面进行哪些配置: ** public void setUp()throws Exception {selenium = new DefaultSelenium(“localhost”,4444,“* firefox”,“http://(某个URL)”); selenium.start... -
0 votesanswersviews
Selenium异常错误:找不到元素id = fname
在这个特殊的硒记录代码当我在eclipse中使用JUnit运行它时显示错误元素id = fname未找到 package com.example.tests; import com.thoughtworks.selenium . *; import java.util.regex.Pattern; 公共类msFsitRegistration扩展SeleneseTestCase { public v... -
1 votesanswersviews
使用Selenium Grid时如何设置Firefox区域设置?
如何使用Selenium Grid安装设置Firefox区域设置?我可以手动更改语言环境,但不能通过Selenium . 这是我的代码: ` FirefoxProfile profile = new FirefoxProfile(); if (browserLoc != null) // Force browser to a locale independent of OS locale { ... -
-1 votesanswersviews
使用selenium web驱动程序时在firefox中加载站点
我的默认浏览器是firefox . 但是当我尝试使用selenium web驱动程序加载文件时,它会自动通过谷歌Chrome加载 . 如何将其更改为Firefox? Eclipse首选项也设置为默认浏览器 . package com.selenium.example; import org.openqa.selenium.By; import org.openqa.seleniu... -
8 votesanswersviews
使用Selenium 3启动特定的Firefox配置文件
我正在尝试从Selenium 2升级到Selenium 3,但旧处理非常容易和快速不再起作用(并且文档似乎不存在) 这是目前的程序,我想要的是打开一个带有配置文件的Firefox驱动程序:SELENIUM 可悲的是,它不起作用,并始终关闭错误: WebDriver.dll中发生未处理的类型'System.InvalidOperationException'>异常附加信息:corrupt d... -
1 votesanswersviews
Selenium:关于:web webdriver的about:config中的布尔值设置
对于测试套件,我正在运行一个使用selenium webdriver控制Firefox实例的python脚本 . 我想将about:config中的设置 dom.disable_open_during_load 更改为 true . 虽然这是我的默认Firefox配置文件中的默认设置,但每当我'm starting a webdriver instance. It seems to use an... -
1 votesanswersviews
在selenium中更改firefox配置文件
我正在尝试更改selenium使用的firefox配置文件,以便允许文件下载而无需确认 . 我试过创建一个配置文件:1)我运行firefox -p 2)点击“create_profile”并给它一个名字3)我在其中设置了一些设置并关闭了Firefox . 我正在运行selenium-standalone服务器3.5 . 根据我的理解,我应该能够使用 -Dwebdriver.firefox.prof... -
4 votesanswersviews
Selenium 2 WebDriver使用自定义配置文件
我正在尝试自动化与生成MIME类型为application / vnd.wap.xhtml xml的文档的网站的交互 . 我正在使用Selenium 2,WebDriver和FirefoxProfile . 由于Firefox不处理上述MIME类型,因此我需要使用XHTML Mobile Profile扩展(https://addons.mozilla.org/en-US/firefox/addo... -
3 votesanswersviews
selenium web驱动程序无法使用自定义优先级打开firefox
尝试使用selenium 2打开已安装插件的firefox,但总是打开默认的firefox配置文件,具有预定义的首选项 from selenium import webdriver driver = webdriver.Firefox() 上面的代码行使用默认配置文件启动firefox . 如何使用用户指定的首选项启动它? -
1 votesanswersviews
带有firefox配置文件的Selenium webdriver,检查插件兼容性并且无法启动
请考虑以下代码: ffprofile = webdriver.FirefoxProfile('C:\Users\Me\AppData\Roaming\Mozilla\Firefox\Profiles\fdwfec0d.selenium') browser = webdriver.Firefox(ffprofile) 当我在python脚本中运行此代码时,Firefox会显示一个用于检查插件兼容性... -
2 votesanswersviews
为什么Selenium WebDrivers在运行驱动程序时总是打开插件“欢迎”页面?
好吧,今天运行我的脚本时,这开始发生在我身上 . 我一直在研究一个刷新程序,打开几个页面并在python上随机刷新它们 . 最近我更新了firefox并更新了我的浏览器(插件,主题等),我认为这个更新可能是我的问题的原因,但它发生在之前,但只有firefox欢迎页面 . 我基本上想要制作一个脚本特定的WebDriver配置文件(w / Selenium),它没有任何我的普通浏览器插件或cookie... -
1 votesanswersviews
C#在selenium webdriver中更改现有的Firefox Profile位置
我创建了一个新的用户配置文件( In Run, type -> firefox.exe -p and create a new profile ) . 出于演示目的,我在桌面上创建了一个新文件夹 . 我的新用户 Profiles 指向此新位置 (C:\Users\username\Desktop\TemporaryProfile) . 在我的selenium webdriver中,我想更改... -
1 votesanswersviews
在Selenium 3中启动Firefox ThreadLocal驱动程序 - Java
我刚刚更新到Selenium 3.0.0-beta3并尝试在Firefox 45中执行测试 . 我已经下载了geckodriver.exe的v.10并将其添加到我的PATH环境变量中 . 我也在geckodriver的代码中设置系统属性,就像我在使用Chrome驱动程序时一样,它运行得非常好,但是,我仍然得到以下TestNG消息: org.openqa.selenium.WebDriverExc... -
0 votesanswersviews
使用Firefox的Selenium:错误500“内部服务器错误”
我尝试在我的c#应用程序中实现Selenium并连接到Firefox: selenium = new DefaultSelenium("localhost", 4444,"*firefox", "www.google.com"); selenium.Start(); Selenium RC论点: java -jar se... -
0 votesanswersviews
元素无法点击 - 运行Selenium测试用例时出错
运行selenium testcases时出现以下错误 . 使用firefox 45和selenium-server-standalone 2.52版本 . org.openqa.selenium.WebDriverException:元素在点(62,13.333328247070312)处不可点击 . 其他元素将收到点击:(警告:服务器未提供任何堆栈跟踪信息)命令持续时间或超时:21毫秒构建信... -
0 votesanswersviews
TestNG中的超时错误
package ant; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.i... -
-1 votesanswersviews
Selenium WebDrivder ebDriverException:未知错误:元素[重复]
这个问题在这里已有答案: Selenium Web Driver & Java. Element is not clickable at point (x, y). Other element would receive the click 5个答案 Element MyElement is not clickable at point (x, y)… Other element ... -
0 votesanswersviews
与远程浏览器通信时出错 . 它可能已经死了 . 对于firefox navegator
我使用selenium-server-standalone-2.53.1,firefox 47.0 . 我有两个节点,一个用于firefox,另一个用于chrome,chrome中的配置工作正常 . selenium_grid.bat按以下方式配置 java -jar selenium-server-standalone-2.53.1.jar -role node -port 7776 -hub ... -
1 votesanswersviews
在Firefox中使用Nightwatch运行测试无法连接到Selenium服务器
我正在尝试使用Nightwatch.js对网站进行自动测试,而我正在使用macOS High Sierra . 所以我开始使用文档中所述的Selenium Standalone Server进行测试 . Chrome测试工作正常,我没有问题 . 但我似乎无法使Firefox测试工作,我一直在测试和在线搜索修复,但我放弃了,因为我找不到任何解决方案 . 这是我的nightwatch.json配置文... -
38 votesanswersviews
如何在Selenium WebDriver中对FirefoxDriver,ChromeDriver和IEdriver执行基本身份验证?
我正在使用Selenium-Firefox驱动程序和Selenium-Chrome驱动程序版本2.0a5( Web Driver API ),我正在尝试测试具有BASIC身份验证的Web应用程序(当我点击时会出现一个弹出窗口来验证用户身份无论什么页面,弹出窗口都不是HTML的一部分 . 现在,我需要一个策略来验证Firefox,Chrome和IE中的用户(我即将导入IE驱动程序) . 我正在阅读一... -
0 votesanswersviews
如何使用selenium将文本输入'textarea'标签?
我想输入文字"ABCD",如下图所示https://translate.google.com/ 试过以下方法但失败了 . sendKeys() - 失败 . driver.findElement(By.xpath( “// textarea的[@ ID = 'sourceis']”))的SendKeys( “ABCD”) . driver.findElement(By.x... -
3 votesanswersviews
无法在firefox中使用selenium 3注入javascript
我正在使用selenium注入java脚本变量并检索它以进行验证 . 下面是我的示例代码,它与selenium版本2.53.1一起正常工作 . 当我升级到selenium 3并开始为firefox使用gecko驱动程序时,它会在我检索值时抛出异常 . driver.executeScript("globalVar='Amit';"); Object result = drive... -
-1 votesanswersviews
Firefox的Selenium错误0x80000003
我正在开发一个在Firefox,Chrome,IE上运行selenium测试的网站...虽然测试在Chrome和IE上完美传递,但我遇到了Mozilla Firefox的问题: 当驱动程序关闭firefox窗口时,它会在运行结束时出现 . 我在互联网上做了一些研究,但大多数答案都很陈旧,并且将firefox降级到48.0版本,并且它已经修复了v50等更高版本 . 它适用于v48,但我使用的是v5... -
1 votesanswersviews
将Selenium与Firefox一起使用时,“System.InvalidOperationException:拒绝访问属性的权限”
我在Selenium中有一组使用C#完全在Chrome和Edge上运行的测试用例,但是当我在Firefox中执行它们时,它们执行所有步骤直到断言,此时执行失败,向我显示以下错误消息: 结果消息:System.InvalidOperationException:错误:拒绝访问属性“invoke”的权限 有谁知道如何解决这个问题? 编辑= 嗯...创建IWebDriver的代码是这样的: IWeb...