selenium server launching two test execution tabs in firefox

我怕爱的太早我们不能终老 提交于 2019-12-11 02:36:53

问题


So as the title suggests, when launching my HTML suite with a custom firefox profile (also with multiwindow), the server is launching two tabs, both trying to execute the test, targetting the same single window the actions are being carried out in. If I close one of the selenium tabs, the test will then complete successfully.

The custom profile is a profile created in firefox 19.0.2 and I am now running it in 20.0

Now If I update up the custom profile to coincide with the latest version of firefox, this fixes the tab issue when launching the test...however my question is....

Does anybody know the cause of this behaviour?

Many thanks,

Joe


回答1:


I think Firefox opens the second tab because the current milestone of the browser software does not match the value of the setting browser.startup.homepage_override.mstone in prefs.js: The browser tries to show sort of a successful-update-page in a new tab.

According to https://bugzilla.mozilla.org/show_bug.cgi?id=102313 you can suppress this behaviour by manually setting browser.startup.homepage_override.mstone to ignore. For me, this single change in prefs.js did the trick.

halfbit



来源:https://stackoverflow.com/questions/15972916/selenium-server-launching-two-test-execution-tabs-in-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!