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