Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created June 14, 2019 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seleniumgists/f1d2f052f5bc7187183a2f2a4053db9f to your computer and use it in GitHub Desktop.
Save seleniumgists/f1d2f052f5bc7187183a2f2a4053db9f to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
###Code file named foobar.py:
import time
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://github.com/robotframework/SeleniumLibrary')
driver.set_window_position(0, 0)
#hangs on this line
driver.set_window_size(1920,1080)
time.sleep(5)
driver.quit()
###end of code file
###Script calling code file from command line in azure devops:
cd "C:\tests"
foobar.py
###end of script file.
environment
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Ple
ase upgrade your Python as Python 2.7 won't be maintained after that date. A fut
ure version of pip will drop support for Python 2.7.
WARNING: Could not parse requirement: -obotframework-seleniumlibrary
WARNING: Could not parse requirement: -elenium
appdirs==1.4.3
backports.functools-lru-cache==1.5
beautifulsoup4==4.7.1
certifi==2019.3.9
chardet==3.0.4
idna==2.8
pymssql==2.1.3
requests==2.22.0
robotframework==3.1.1
robotframework-databaselibrary==1.0.1
robotframework-selenium2library==3.0.0
robotframework-seleniumlibrary==3.3.1
selenium==3.141.0
soupsieve==1.9.1
tqdm==4.32.1
urllib3==1.25.2
webdrivermanager==0.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment