Selenium Chrome浏览器窗口在第二个监视器屏幕上运行焦点 [英] Selenium Chrome window running in second monitor screen stealing focus

查看:432
本文介绍了Selenium Chrome浏览器窗口在第二个监视器屏幕上运行焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用带Selenium的Chrome Driver 2.35的WebDriver。

我有一个双显示器设置,在其中运行我的测试用例。我在大多数时间都无头无终地运行我的案例,但有时候,当我想要调试时,我使用浏览器运行它。

打开窗口,将其拖动到我的第二台显示器上,并继续使用主显示器中的其他内容。但是,无论何时在次要Chrome Selenium屏幕中发生动作,焦点都会转移到该窗口,并且我失去控制权。

这真的很烦人,有没有其他人面对这个问题?任何解决方案?解决方案我甚至遇到过这个问题,我发现的解决方案是我从第二台显示器上运行我的解决方案(即)将Eclipse拖到第二个监视器,然后执行测试。

I use WebDriver with Chrome Driver 2.35 with Selenium.

I have a dual monitor setup in which I run my test cases. I do run my cases headlessly most of the times but sometimes, when I want to debug, I run it with the browser.

The window opens, I drag it to my second monitor and continue working with other stuff in my primary monitor. But whenever there is an action in the secondary Chrome Selenium screen, the focus shifts to that window and I lose control.

This is really annoying, has anyone else faced this issue? Any solutions?

解决方案

Even I have faced this Issue, the solution I found was i ran my solution from the second monitor (i.e) Dragged the Eclipse to the second monitor and then Ran the test.

这篇关于Selenium Chrome浏览器窗口在第二个监视器屏幕上运行焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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