如果您对WebDriverforFirefox:浏览器启动/空页面,挂起2分钟,重新启动,然后testing运行为什么?感兴趣,那么这篇文章一定是您不可错过的。我们将详细讲解WebDriverforF
如果您对WebDriver for Firefox:浏览器启动/空页面,挂起2分钟,重新启动,然后testing运行 为什么?感兴趣,那么这篇文章一定是您不可错过的。我们将详细讲解WebDriver for Firefox:浏览器启动/空页面,挂起2分钟,重新启动,然后testing运行 为什么?的各种细节,此外还有关于Azure Webapp在1个节点上重新启动,然后启动超时、cucumber; Selenium WebDriver-如何使用Google Chrome浏览器代替Firefox作为测试浏览器、Firefox WebDriver不适用于Firefox 32、firefox 升个级,然后 webdriver 就出错了。。。的实用技巧。
本文目录一览:- WebDriver for Firefox:浏览器启动/空页面,挂起2分钟,重新启动,然后testing运行 为什么?
- Azure Webapp在1个节点上重新启动,然后启动超时
- cucumber; Selenium WebDriver-如何使用Google Chrome浏览器代替Firefox作为测试浏览器
- Firefox WebDriver不适用于Firefox 32
- firefox 升个级,然后 webdriver 就出错了。。。
WebDriver for Firefox:浏览器启动/空页面,挂起2分钟,重新启动,然后testing运行 为什么?
我正在尝试更新我的Javatesting套件以使用Selenium 3和geckodriver。 但是,我在执行testing命令时看到了这个非常奇怪的行为:
Firefox打开了一个空白页面。
它停留约2分钟。
它closures,然后立即重新启动。
testing运行并通过。
我使用Selenium 3.0.1,Geckodriver 0.11.1,64位Linux上的Firefox 50.0。
我得到这样的FirefoxDriver:
DesiredCapabilities capabilities = DesiredCapabilities.firefox(); capabilities.setCapability("marionette",true); return new FirefoxDriver(capabilities);
我在我的Maven conf中设置系统属性webdriver.gecko.driver :
无法在RHEL上打开显示
运送带有共享库的GNU / Linux Firefox插件(用于安装时无root权限)
使用python自动化firefox?
Linux(Ubuntu)Java插件和控制台
如何检查系统上是否安装了特定的Web浏览器?
<webdriver.gecko.driver> ${basedir}/src/test/resources/geckodriver </webdriver.gecko.driver>
我可以错过什么? 非常感谢您的帮助!
我的testing的控制台日志(有三个不同的计时组):
下午3点54分左右
完整日志: https : //justpaste.it/10qn9
主要片段:
Configuring TestNG with: TestNG652Configurator [VerboseTestNG] RUNNING: Suite: "Surefire test" containing "1" Tests (config: null) [VerboseTestNG] INVOKING CONfigURATION: "Surefire test" - @BeforeClass com.example.MyTest.classSetUp() [VerboseTestNG] PASSED CONfigURATION: "Surefire test" - @BeforeClass com.example.MyTest.classSetUp() finished in 384 ms [VerboseTestNG] INVOKING CONfigURATION: "Surefire test" - @BeforeMethod com.example.MyTest.methodSetUp() 1479999268209 geckodriver INFO Listening on 127.0.0.1:7263 Nov 24,2016 3:54:28 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Attempting bi-dialect session,assuming Postel's Law holds true on the remote end 1479999268435 mozprofile::profile INFO Using profile path /tmp/rust_mozprofile.VYFzbHfCS7iH 1479999268438 geckodriver::marionette INFO Starting browser /usr/bin/firefox 1479999268441 geckodriver::marionette INFO Connecting to Marionette on localhost:56753 (firefox:2956): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' Failed (firefox:2956): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' Failed (firefox:2956): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' Failed (firefox:2956): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' Failed [...] 1479999269312 addons.manager DEBUG Completed startup sequence 1479999269598 Marionette INFO Listening on port 56753 1479999270046 addons.manager DEBUG Starting provider: <unnamed-provider> 1479999270046 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider> 1479999270048 addons.manager DEBUG Provider finished startup: <unnamed-provider> 1479999270094 addons.manager DEBUG Starting provider: PrevIoUsExperimentProvider 1479999270094 addons.manager DEBUG Registering shutdown blocker for PrevIoUsExperimentProvider 1479999270095 addons.manager DEBUG Provider finished startup: PrevIoUsExperimentProvider 1479999270100 DeferredSave.extensions.json DEBUG Starting write 1479999270286 DeferredSave.extensions.json DEBUG Write succeeded 1479999270288 addons.xpi-utils DEBUG XPI Database saved,setting schema version preference to 17 (/usr/lib/firefox/plugin-container:3019): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' Failed (/usr/lib/firefox/plugin-container:3019): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' Failed (/usr/lib/firefox/plugin-container:3019): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' Failed (/usr/lib/firefox/plugin-container:3019): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' Failed
下午3:55:32左右
完整日志:
1479999331434 addons.productaddons INFO sending request to: https://aus5.mozilla.org/update/3/GMP/50.0/20161114145022/Linux_x86_64-gcc3/null/release-cck- ubuntu/Linux%203.13.0-101-generic%20(GTK%203.10.8%2Clibpulse%204.0.0)/canonical/1.0/update.xml 1479999332144 addons.productaddons INFO Completed downloading document 1479999332573 addons.productaddons INFO downloadXHR File download. status=200 1479999332581 addons.productaddons INFO Downloaded file will be saved to /tmp/tmpaddon
下午3点56分35秒左右
完整日志:
Nov 24,2016 3:56:35 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C [VerboseTestNG] PASSED CONfigURATION: "Surefire test" - @BeforeMethod com.example.MyTest.methodSetUp() finished in 129531 ms [VerboseTestNG] INVOKING: "Surefire test" - com.example.MyTest.testSomething() [VerboseTestNG] PASSED: "Surefire test" - com.example.MyTest.testSomething() finished in 1603 ms
如何隐藏HTML <select>元素的下拉箭头的边框和背景颜色?
如何用c ++安装浏览器的扩展?
定制firefox console.log(为我自己的原型)
Firefox浏览器打开本地链接到目录
为什么在d3图表中的date显示为在Ubuntu中的Firefox 1am,但在Windows中的Firefox和date和date?
Azure Webapp在1个节点上重新启动,然后启动超时
如何解决Azure Webapp在1个节点上重新启动,然后启动超时?
我们在Azure Webapp中运行了轻量级的.NET Core API。过去,我们经常无所事事地停机(每周3次),原因是由于某种原因Webapp在1个节点上重新启动,并且无法及时启动: 502.5 ASP.NET Core Process Startup Error。 首先,应该没有理由不能在2分钟内启动,因为它只有几个服务注册,仅此而已。但是其次,为什么还要重新启动?
有一次是因为Microsoft正在更新其Azure存储,而Webapp依赖该Azure存储并导致重新启动。因此,我在Webapp上启用了本地缓存,以便存储上的更新不会影响Webapp。从那时起,一切都稳定了几个月,直到今天13:00左右。
发生了同样的事情; 1个节点发生故障,API无法再启动。只是此错误消息 502.5 ASP.NET Core进程启动错误。我重新启动了API,它又开始工作了。
我不知道该怎么做。最近还有其他人遇到同样的问题吗?没有任何堆栈跟踪,因为看起来是导致问题的运行时而不是我们的代码。
高度赞赏:)
关于彼得
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
cucumber; Selenium WebDriver-如何使用Google Chrome浏览器代替Firefox作为测试浏览器
对于我的Rails 3.1应用程序上的Cucumber场景,我使用了@javascript标记,因此Selenium已激活。我收到以下错误:
Could not find Firefox binary (os=macosx). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path= (Selenium::WebDriver::Error::WebDriverError)
如果可能的话,我想使用Google Chrome浏览器作为浏览器-而不是Firefox(我尚未安装)。这可能吗?该怎么办?
实际上,Cucumber / Selenium不应检测并使用浏览器吗?
====编辑====
添加后
Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(app,:browser => :chrome)
end
…到features / support / env.rb,我现在收到此错误:
Unable to find the chromedriver executable. Please download the server from http://code.google.com/p/chromium/downloads/list and place it somewhere on your PATH. More info at http://code.google.com/p/selenium/wiki/ChromeDriver. (Selenium::WebDriver::Error::WebDriverError)
./features/step_definitions/web_steps.rb:45:in `/^(?:|I )am on (.+)$/'
features/update_memories.feature:11:in `Given I am on the home page'
我是从这里下载的,并且尝试将chromedriver可执行文件放在/
usr / bin中,但是仍然出现上述错误。
====编辑2 ====
进一步执行以下步骤并运行“ sudo chmod + x / usr / bin / chromedriver”后,在运行黄瓜之后,我现在收到一个新错误:
@javascript
Scenario: navigate to memory update page from home page # features/update_memories.feature:11
Given I am on the home page # features/step_definitions/web_steps.rb:44
unable to connect to chromedriver http://127.0.0.1:57870 (Selenium::WebDriver::Error::WebDriverError)
./features/step_definitions/web_steps.rb:45:in `/^(?:|I )am on (.+)$/'
features/update_memories.feature:12:in `Given I am on the home page'
When I activate the edit memory switch for the memory "I played" # features/step_definitions/memories/memory_steps.rb:5
Then I should be on the edit memory page for the memory "I played" # features/step_definitions/web_steps.rb:187
PGError: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
: ROLLBACK (ActiveRecord::StatementInvalid)
帮助赞赏!越来越近…
Firefox WebDriver不适用于Firefox 32
我刚刚更新到Firefox 32,当我尝试运行Selenium Webdriver Test时,我得到以下信息
Failed to start up socket within 45000 ms. Attempted to connect to thefollowing addresses: 127.0.0.1:7055 OpenQA.Selenium.WebDriverExceptionwas unhandled by user code HResult=-2146233088 Message=Failed tostart up socket within 45000 ms. Attempted to connect to the followingaddresses: 127.0.0.1:7055 Source=WebDriver StackTrace: at OpenQA.Selenium.Firefox.FirefoxDriverServer.ConnectToBrowser(TimeSpantimeToWait) at OpenQA.Selenium.Firefox.FirefoxDriverServer.Start() at OpenQA.Selenium.Firefox.FirefoxDriverCommandExecutor.Execute(CommandcommandToExecute) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilitiesdesiredCapabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutorcommandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile, ICapabilities capabilities, TimeSpancommandTimeout) at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile, TimeSpan commandTimeout) at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile) at OpenQA.Selenium.Firefox.FirefoxDriver..ctor() at SMT.Web.FunctionalTests.Drivers.Driver.GetWebDriver(Int32 browser, String page)
我期望能够正常运行测试。
有没有人遇到过同样的事情?您是如何解决该问题的?
selenium版本:2.41.0(作为Nuget软件包安装)操作系统:Windows 7浏览器:Firefox浏览器版本:32
答案1
小编典典Selenium2.41.0正式支持的最新Firefox版本是
28 。降级您的浏览器。根据其他答案,降级到Firefox 31足以使其正常运行。
最好安装最新的硒包。但是,该策略始终相同-确保您使用的是硒包浏览器支持的版本。
firefox 升个级,然后 webdriver 就出错了。。。
我把 firefox 升到了 firefox53 最新版。
驱动 geckodriver.exe 也升到了新版是 15
然后 webdriver 就出错了。
selenium.common.exceptions.WebDriverException: Message: Expected [object Undefined] undefined to be a string
这是怎么回事?
关于WebDriver for Firefox:浏览器启动/空页面,挂起2分钟,重新启动,然后testing运行 为什么?的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于Azure Webapp在1个节点上重新启动,然后启动超时、cucumber; Selenium WebDriver-如何使用Google Chrome浏览器代替Firefox作为测试浏览器、Firefox WebDriver不适用于Firefox 32、firefox 升个级,然后 webdriver 就出错了。。。的相关信息,请在本站寻找。
本文标签: