Guest User

Untitled

a guest
Jan 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. from pyvirtualdisplay import Display
  2. from selenium import webdriver
  3.  
  4. display = Display(visible=False, size=(800, 600))
  5. display.start()
  6.  
  7. browser = webdriver.Firefox()
  8.  
  9. selenium.common.exceptions.WebDriverException: Message: 'The browser appears to have exited before we could connect. The output was:
  10. (process:2963): Gtk-WARNING **: Locale not supported by C library.
  11. Using the fallback 'C' locale.
  12. Xlib: extension "RANDR" missing on display ":1082.0".
  13.  
  14. (firefox-bin:2963): libgnomevfs-WARNING **: Unable to create ~/.gnome2 directory: Permission denied
  15. Could not create per-user gnome configuration directory `/var/www/.gnome2/': Permission denied'
  16.  
  17. daniel@daniel:/var/www$ ls -la
  18. total 12
  19. drwxr-xr-x 2 root root 4096 Sep 15 11:43 .
  20. drwxr-xr-x 14 root root 4096 Oct 2 08:54 ..
  21. -rw-r--r-- 1 root root 177 Sep 15 11:43 index.html
Add Comment
Please, Sign In to add comment