Webdriver - 全屏打开浏览器 [英] Webdriver - open browser on full screen

查看:510
本文介绍了Webdriver - 全屏打开浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过firefox远程使用Webdriver。

I use Webdriver remotely with firefox.

我想要全屏打开我的浏览器。浏览器全屏打开,但立即最小化,并移动到我的操作系统上打开的其他程序。当我在本地运行我的webdriver时,broser被全屏打开,并且不会最小化(它停留在浏览器中,不会移动到其他程序中)。我希望我的浏览器能够全屏打开,并保留在浏览器中,即使我运行我的测试remottley。

I want to open my browser on full screen. The browser is opened on full screen, but immediately minimize and moves to other program which open on my OS. When I run my webdriver locally, the broser is opened on full screen, and doesn't minimize (it stays in the browser, and doesn't move to other program). I want that my browser would open on full screen, and stay in the browser, even if I run my test remottley.

原因是我使用了Java Robot,为了执行我的操作,我必须在浏览器中。

The reason is that I used Java Robot, and I have to be in the browser in order that my action would be performed.

谢谢。

Thank you.

推荐答案

我不知道我真的明白你的问题,但看看

I don't know I really understood your question, but have a look at

driver.manage().window().maximize();

这篇关于Webdriver - 全屏打开浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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