Skip to content

Commit 74a9ee2

Browse files
author
admin
committed
Always maximize firefox on windows.
1 parent aef9ab4 commit 74a9ee2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • java_test_example/src/test/java/java_example

‎java_test_example/src/test/java/java_example/test.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public void beforeMethod() throws Exception {
7676
//replace USERNAME:ACCESS_KEY@SUBDOMAIN with your credentials found in the Gridlastic dashboard
7777
driver = new RemoteWebDriver(new URL("http://USERNAME:ACCESS_KEY@SUBDOMAIN.gridlastic.com:80/wd/hub"),capabilities);
7878
driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
79+
driver.manage().window().maximize(); // Always maximize firefox on windows
7980

8081
// On LINUX/FIREFOX the "driver.manage().window().maximize()" option does not expand browser window to max screen size. Always set a window size.
8182
if (platform_name.equalsIgnoreCase("linux") && browser_name.equalsIgnoreCase("firefox")) {

0 commit comments

Comments
 (0)