在通过Jenkins作为Windows服务运行时无法最大化浏览器 [英] Unable to Maximize browser when running through Jenkins as windows service

查看:538
本文介绍了在通过Jenkins作为Windows服务运行时无法最大化浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当通过Windows运行测试脚本时,由于脚本失败,我无法最大化浏览器窗口,

When running test script through windows , am unable to maximize the browser window due to which the scripts are getting failed ,

尝试了此线程中提到的所有可能方式,但没有用
无法通过Jenkins中的Selenium设置Chrome浏览器的大小(增加大小)?

tried all possible ways as mentioned in this thread , but no use Unable to Set Size (Increase Size) for Chrome Browser through Selenium in Jenkins?

有没有办法最大化窗口?任何帮助表示赞赏。在此先感谢。

Is there way to maximize the window ?? any help is appreciated. Thanks in advance.

推荐答案

使用Jenkins运行自动化测试时遇到类似问题。它与交互式服务检测有关。

I had a problem similar to this when using Jenkins to run automated tests. It was to do with the interactive service detection.

我似乎唯一能解决这个问题的方法就是将Jenkins作为Windows服务删除,让它从CMD运行使用sciprt。

The only way I could seem to fix this was to remove Jenkins as a windows service, and have it run from the CMD using a sciprt.

这篇关于在通过Jenkins作为Windows服务运行时无法最大化浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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