Created
May 29, 2014 18:10
-
-
Save jasonm/bb610408edf9df852cb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/tmp $ curl -O https://pypi.python.org/packages/source/s/selenium/selenium-2.42.1.tar.gz | |
/tmp $ tar xvfz selenium-2.42.1.tar.gz | |
x selenium-2.42.1/ | |
x selenium-2.42.1/MANIFEST.in | |
x selenium-2.42.1/PKG-INFO | |
x selenium-2.42.1/py/ | |
x selenium-2.42.1/py/CHANGES | |
# (...snip...) | |
/tmp $ cd selenium-2.42.1/ | |
/tmp/selenium-2.42.1 $ cat py/selenium/webdriver/chrome/webdriver.py | head -60 | tail -15 | |
""" | |
if chrome_options is None: | |
options = Options() | |
else: | |
options = chrome_options | |
if desired_capabilities is not None: | |
desired_capabilities.update(options.to_capabilities()) | |
else: | |
desired_capabilities = options.to_capabilities() | |
self.service = Service(executable_path, port=port, | |
service_args=service_args, log_path=service_log_path) | |
self.service.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment