Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created July 10, 2020 13:21
Show Gist options
  • Select an option

  • Save seleniumgists/e56e65fd0169df0e8df4ab2806e72b66 to your computer and use it in GitHub Desktop.

Select an option

Save seleniumgists/e56e65fd0169df0e8df4ab2806e72b66 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
max_width, max_height = driver.execute_script("return [window.screen.availWidth, window.screen.availHeight];")
driver.manage.window.resize_to(max_width, max_height)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment