Kumrun Nahar Keya Kumrun Nahar Keya - 1 year ago 128
Java Question

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.

In the API doc I found solution to launch the browser. Code is as following


So I would appreciate if any one can help me with this. Is it possible to integrate Selenium and helium all together?

Answer Source

You can use Selenium WebDriver by integrating with Helium. 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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download