rshf / chromedriver

Automatically exported from code.google.com/p/chromedriver
2 stars 1 forks source link

manage().window().maximize() method not maximize a correct window #596

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/30.0.1599.69 Safari/537.36

Steps to reproduce the problem:
 JavascriptExecutor js =(JavascriptExecutor)webDriver.getWebDriver();

js.executeScript("window.open();");

        for(String winHandle : webDriver.getWebDriver().getWindowHandles()){
            webDriver.getWebDriver().switchTo().window(winHandle);

        }

        webDriver.getWebDriver().get(url);

        webDriver.getWebDriver().manage().window().maximize();

What is the expected behavior?

What went wrong?
'webDriver.getWebDriver().manage().window().maximize()'  -
this method maximized the first window instead of the last window ( after 
'switchTo()' ). 

Did this work before? Yes chrome 29 and chrome driver 2.2

Chrome version: 30.0.1599.69  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 11.9 r900

the 'webDriver.getWebDriver().navigate().to(url)' method navigate to last 
window.

Original issue reported on code.google.com by ila...@wix.com on 16 Oct 2013 at 2:16

GoogleCodeExporter commented 9 years ago
ChromeDriver version: v2.4.226107
Chrome version: 30.0.1599.69

Original comment by ila...@wix.com on 16 Oct 2013 at 2:20

GoogleCodeExporter commented 9 years ago

Original comment by aand...@chromium.org on 17 Oct 2013 at 7:39

GoogleCodeExporter commented 9 years ago
For further investigation, can you provide a sample file with above test case ?

Original comment by smok...@chromium.org on 18 Oct 2013 at 12:43

GoogleCodeExporter commented 9 years ago
Attached...

10x :)

Original comment by ila...@wix.com on 20 Oct 2013 at 6:59

Attachments:

GoogleCodeExporter commented 9 years ago
Vivian . could u pls assign this to a concerned dev.

Original comment by ligim...@chromium.org on 24 Oct 2013 at 5:11

GoogleCodeExporter commented 9 years ago
this is webdriver issue, not sure if it is chrome driver.

hi, Ken

can you take a look at this issue see if you or webdriver team should be the 
proper owner of it.thanks!

Original comment by vivi...@chromium.org on 24 Oct 2013 at 5:51

GoogleCodeExporter commented 9 years ago

Original comment by kkania@chromium.org on 24 Oct 2013 at 6:29

GoogleCodeExporter commented 9 years ago
You people can try below this is working fine for me,

ChromeOptions options=new ChromeOptions();
options.addArguments("start-maximized");

Let me know your outcomes.

Original comment by santosh...@gmail.com on 3 Mar 2014 at 5:25

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:19