Commit b082838a authored by Siva Rama Krishna's avatar Siva Rama Krishna

removing the headless code

parent 9bf87639
......@@ -22,8 +22,6 @@ public class DemoApplication {
String remoteDriverHost = "https://pgtest.altimetrik.com/SERVICE_NAME";
// To see live execution of the script in browser please open the link
// `{remoteDriverHost}/grid/admin/live`
// To view more details of the execution Please open the link
// `{remoteDriverHost}/dashboard/`
DesiredCapabilities dc = DesiredCapabilities.chrome();
RemoteWebDriver driver = new RemoteWebDriver(new URL(remoteDriverHost + "/wd/hub"), dc);
dc.setCapability("name", "BrowserMode");
......@@ -33,17 +31,4 @@ public class DemoApplication {
driver.quit();
}
private static void launchBrowserInHeadlessMode() {
// The browser won't be visible instead it would running in the background.
// Below is the sample code to initialize the web driver.
System.setProperty("webdriver.chrome.driver", "/home/user/chromedriver");
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--no-sandbox");
WebDriver driver = new ChromeDriver(chromeOptions);
// Continue with test case scripting.
driver.navigate().to("http://google.com");
System.out.println("Application title is " + driver.getTitle());
driver.quit();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment