硒服务器在firefox中启动两个测试执行选项卡 [英] selenium server launching two test execution tabs in firefox

查看:143
本文介绍了硒服务器在firefox中启动两个测试执行选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所暗示的那样,当使用自定义的Firefox配置文件(也使用multiwindow)启动我的HTML套件时,服务器正在启动两个选项卡,两个选项卡都试图执行测试,并以相同的单个窗口为目标正在执行.如果我关闭其中一个硒标签,则测试将成功完成.

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.

自定义配置文件是在firefox 19.0.2中创建的配置文件,我现在在20.0中运行它

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

现在,如果我更新自定义配置文件以与最新版本的firefox保持一致,这可以修复启动测试时的选项卡问题...但是我的问题是....

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?

非常感谢,

推荐答案

我认为Firefox将打开第二个选项卡,因为浏览器软件的当前里程碑与prefs.js中的设置browser.startup.homepage_override.mstone的值不匹配:浏览器尝试在新标签中显示某种成功更新页面.

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.

根据 https://bugzilla.mozilla.org/show_bug.cgi?id= 102313 您可以通过手动将browser.startup.homepage_override.mstone设置为ignore来抑制此行为.对我而言,prefs.js中的这一更改就可以解决问题.

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.

一半

这篇关于硒服务器在firefox中启动两个测试执行选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆