1. driver.findElement(By.tagName("body")).sendKeys(Keys.F11);
Thread.sleep(5000);driver.findElement(By.tagName("body")).sendKeys(Keys.F5); //this option doesn't work with Firefox and geckodriver Marionette.
2. driver.manage().window.setSize(1152,864); //this doesn't compile
3. driver.findElement(driver.findElement(By.xpath("/html/body")).sendKeys(driver.Key.F11)); //this doesn't compile
Hi guys!How could I maximize the window with Selenium Webdriver?? I want to simulate the "F11" action, but I'm not able to do it.I've tried the following without luck:1. driver.findElement(By.tagName("body")).sendKeys(Keys.F11);
Thread.sleep(5000);driver.findElement(By.tagName("body")).sendKeys(Keys.F5); //this option doesn't work with Firefox and geckodriver Marionette.2. driver.manage().window.setSize(1152,864); //this doesn't compile
3. driver.findElement(By.xpath("/html/body")).sendKeys(driver.Key.F11); //this doesn't compile
4. driver.manage().window().maximize(); //this option doesn't do anything
|
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/920ece11-eff5-430b-9a85-842a15419500%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1ac09f46-ed0b-4810-90d2-6be3a464f972%40googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.