Skip to content

Instantly share code, notes, and snippets.

@tonetheman
Created April 18, 2014 02:29
Show Gist options
  • Select an option

  • Save tonetheman/11021802 to your computer and use it in GitHub Desktop.

Select an option

Save tonetheman/11021802 to your computer and use it in GitHub Desktop.
# simple script
from selenium import webdriver
caps = {}
caps['name'] = 'tony-20140417'
caps['build'] = '1.0'
caps['browser_api_name'] = 'FF28'
caps['screen_resolution'] = '1024x768'
caps['record_video'] = 'false'
caps['record_network'] = 'false'
caps['record_snapshot'] = 'true'
print "before driver"
driver = webdriver.Remote(
desired_capabilities=caps,
command_executor="http://<USERNAME:PASS>@hub.crossbrowsertesting.com:80/wd/hub"
)
print "after driver"
print "before get"
driver.get("http://google.com")
print "before quit"
driver.quit()
print "fin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment