--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/ffcVxYFXHmQJ.
For more options, visit https://groups.google.com/groups/opt_out.
Don't print this unless you have to :)
driver.manage().window().maximize();
Thanks,if (window.screen) {window.moveTo(0,0); window.resizeTo(window.screen.availWidth,window.screen.availHeight);} else window.resizeTo("+resolution.width+","+resolution.height+");if (OS_Name.equalsIgnoreCase("microsoft")){
log("Pressing ALT+SPACE then X for maximize");
//alt space x on windows maximizes
Robot robot = new Robot();
robot.keyPress(KeyEvent.VK_ALT);
robot.keyPress(KeyEvent.VK_SPACE);
//release opposite order
robot.keyRelease(KeyEvent.VK_SPACE);
robot.keyRelease(KeyEvent.VK_ALT);
robot.keyPress(KeyEvent.VK_X);
robot.keyRelease(KeyEvent.VK_X);
}
else if (OS_Name.equalsIgnoreCase("linux")){
log("Pressing ALT+F10 for maximize");
Robot robot = new Robot();
robot.keyPress(KeyEvent.VK_ALT);
robot.keyPress(KeyEvent.VK_F10);
//release opposite order
robot.keyRelease(KeyEvent.VK_F10);
robot.keyRelease(KeyEvent.VK_ALT);
}driver.manage().window().maximize();capabilities.setCapability("chrome.switches", Arrays.asList("--start-maximized"));if (Browser_Name.equalsIgnoreCase("internet explorer")){
maximizeWindowViaJavascript();
}
else if (Browser_Name.equalsIgnoreCase("chrome")){
log("Not maximizing window for Chrome since done via startup arguments... using keystrokes causes lockups.");
}
else if (Browser_Name.equalsIgnoreCase("firefox") && OS_Version.equalsIgnoreCase("windows 7 64-bit")){
driver.manage().window().maximize();
}
else{
maximizeWindowViaKeyStrokes();
}yor need to mention the following windowMaximize() like
ex: selenium.windowMaximize();
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/ffcVxYFXHmQJ.
For more options, visit https://groups.google.com/groups/opt_out.