[英]How to maximize browser window with helium using Java?
I am trying to implement helium in my project, I checked the API doc of helium but I didn't find any commend to maximize the browser.我正在尝试在我的项目中实现 helium,我检查了 helium 的 API 文档,但我没有找到任何可以最大化浏览器的建议。
In the API doc I found solution to launch the browser.在 API 文档中,我找到了启动浏览器的解决方案。 Code is as following代码如下
startFirefox();
startFirefox("google.com");
So I would appreciate if any one can help me with this.因此,如果有人能帮助我解决这个问题,我将不胜感激。 Is it possible to integrate Selenium and helium all together?是否可以将硒和氦整合在一起?
You can use Selenium WebDriver by integrating with Helium.您可以通过与 Helium 集成来使用 Selenium WebDriver。 The following code would work fine:以下代码可以正常工作:
import static com.heliumhq.API.*;
import org.openqa.selenium.*;
startFirefox("http://www.google.com");//This is the Helium code
getDriver().manage().window().maximize();//getDriver is Helium method and other portion is WebDriver code
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.