Created
April 18, 2014 02:29
-
-
Save tonetheman/11021802 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # 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