Created
July 7, 2016 16:35
-
-
Save tristandostaler/c292a857215e7978ce2a5b3637b57ebd to your computer and use it in GitHub Desktop.
Start Selenium python script
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
browser = None | |
def StartSelenium(): | |
import selenium | |
from selenium import webdriver | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
import binascii | |
import hashlib | |
firefox_capabilities = DesiredCapabilities.FIREFOX | |
firefox_capabilities['marionette'] = True | |
firefox_capabilities['binary'] = '/usr/bin/firefox' | |
global browser | |
browser = webdriver.Firefox(capabilities=firefox_capabilities) | |
browser.get('https://www.google.com') | |
StartSelenium() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment