Created
          December 9, 2012 06:24 
        
      - 
      
 - 
        
Save level09/4243582 to your computer and use it in GitHub Desktop.  
    python selenium example
  
        
  
    
      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
    
  
  
    
  | from pyvirtualdisplay import Display | |
| from selenium import webdriver | |
| display = Display(visible=0, size=(800, 600)) | |
| display.start() | |
| browser = webdriver.Chrome() | |
| browser.get('http://www.google.com') | |
| print browser.title | |
| browser.quit() | |
| display.stop() | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment