New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 601911 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Apr 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

WebDriver set_window_size() doesn't work after get()

Project Member Reported by wychen@chromium.org, Apr 8 2016

Issue description

Version: M49
OS: Linux

What steps will reproduce the problem?
(1) Download and install Selenium and ChromeDriver
(2) Download min.py from attachment
(3) Run this command:
PATH=$PATH:/path/to/dir/containing/chromedriver ./min.py

What is the expected output?
{u'width': 1000, u'height': 500}
{u'width': 1000, u'height': 500}

What do you see instead?
{u'width': 1000, u'height': 500}
{u'width': 945, u'height': 1144}

---
Main snippet in min.py:

def main(argv):
  driver = webdriver.Chrome()

  driver.set_window_size(1000, 500)
  print driver.get_window_size() # {u'width': 1000, u'height': 500}

  driver.get("http://google.com")  
  
  driver.set_window_size(1000, 500)
  print driver.get_window_size() # {u'width': 945, u'height': 1144}

 
min.py
417 bytes View Download
Also repro on M50 and M51.
Owner: samu...@chromium.org
Workaround: call set_window_size() again and it's good.
Labels: Needs-Feedback
wychen@, I executed your test on the latest Chrome browser v54.0.2840.100 with Chromedriver v2.25 and found that issue is not reproducible.

Could you please re-test it on the latest versions?
Labels: -Needs-Feedback
Status: WontFix (was: Untriaged)
Since there is no response from the issue reporter, closing the issue.

Sign in to add a comment