ericmckean / chromedriver

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

Chromium setSize with narrow width messes up height #1036

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
The sample code below which:
1. Creates a ChromeDriver
2. Sets the size below 347 pixels wide

What is the expected output? What do you see instead?

Expected width to be 320.  Expected height to be 568.
Instead, width is 347 (ok not really a big problem).  Instead, height is 107 
(not ok).

Selenium version: 2.42.2
OS: debian jessie
Browser: Chromium
Browser version: 40.0.2214.91 (I think it was ok with 39)
Driver: chromedriver-2.9

Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

        System.setProperty("webdriver.chrome.driver", chromedriverAbsolute);
        driver = new ChromeDriver();
        driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
        driver.manage().window().setSize(new Dimension(320, 568));

doing this works fine:

        driver.manage().window().setSize(new Dimension(347, 568));

Original issue reported on code.google.com by jas...@alumni.cmu.edu on 3 Feb 2015 at 4:02

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

Original comment by gmanikp...@chromium.org on 27 Feb 2015 at 12:27

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 2 Apr 2015 at 9:50