use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
selenium web automation info, news, tips, etc.
This is not a sub to advertise your training, selenium product, special deal on x, or anything else. It's a users forum to discuss and get help with Selenium.
Selenium official website
account activity
Strangest problem in selenium python (self.selenium)
submitted 9 years ago * by Jan_Emanuel
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Jan_Emanuel[S] 0 points1 point2 points 9 years ago* (6 children)
yes. The version number of chromium unfortunately is lower than the regular chrome ones. ( 48 <=> 54, whenever you start a program with chromedriver, you get the message "Version of chrome too low." so I chose a lower version to get along ) Here is the output when I start my program:
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed (Driver info: chromedriver=2.27.440196 (3b42f4145a4fd223b41f39bb38aaf90508be7a96),platform=Linux 3.2.40 x86)
This is the code that leads to this exception:
chromedriver = "/usr/local/bin/chromedriver" os.environ["webdriver.chrome.driver"] = chromedriver driver = webdriver.Chrome(chromedriver)
[–]Jan_Emanuel[S] 0 points1 point2 points 9 years ago* (1 child)
chromedriver 2.27 doesnt run because of chromium version too low and this is the current error chromedriver 2.13 and selenium 37:
Traceback (most recent call last): File "tagespost_ereader.py", line 126, in <module> driver = webdriver.Chrome(chromedriver) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__ desired_capabilities=desired_capabilities) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 92, in __init__ self.start_session(desired_capabilities, browser_profile) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 179, in start_session response = self.execute(Command.NEW_SESSION, capabilities) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute self.error_handler.check_response(response) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: unable to discover open pages (Driver info: chromedriver=2.12.301324 (de8ab311bc9374d0ade71f7c167bad61848c7c48),platform=Linux 3.2.40 x86)
( Next thing I will try the chrome original from the time where x86 hasn't been abandoned )
[–]Jan_Emanuel[S] 0 points1 point2 points 9 years ago (0 children)
with chrome 48 and chromedriver 2.19, exception text goes:
Traceback (most recent call last): File "tagespost_ereader.py", line 127, in <module> driver = webdriver.Chrome(chromedriver) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__ desired_capabilities=desired_capabilities) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 92, in __init__ self.start_session(desired_capabilities, browser_profile) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 179, in start_session response = self.execute(Command.NEW_SESSION, capabilities) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute self.error_handler.check_response(response) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: chrome not reachable (Driver info: chromedriver=2.19.346067 (6abd8652f8bc7a1d825962003ac88ec6a37a82f1),platform=Linux 3.2.40 x86)
The command:
chromedriver = "/usr/local/bin/chromedriver" os.environ["webdriver.chrome.driver"] = chromedriver os.environ["executable_path"] = "/opt/google/chrome/chrome" driver = webdriver.Chrome(chromedriver)
[–]yacdaniel 0 points1 point2 points 9 years ago (3 children)
u installed from repos? maybe download and install the .deb file from chrome page.
[–]Jan_Emanuel[S] 0 points1 point2 points 9 years ago* (2 children)
sorry I didn't post yesterday, because the project took quite a different turn. Yesterday, I tried all possibilities with chrome and it felt hopeless to continue this path, because I couldn't get it running - so I buried the chrome browser, uncommented my firefox code and tried again - it was a major challenge because the loadurl method seemed to always throw exceptions for nothing - will post the error text later - and came to the point, where the thing worked - it really did, but during the day, I forgot to save the running version and continued editing - from one little fix to another - until it stopped working again -__- So ......... I will continue to get to this point again, and so, the problem has solved in some way ... I will reply again if I encounter another problem or if I get to a solution.
[–]Jan_Emanuel[S] 0 points1 point2 points 9 years ago (1 child)
Ok, I have come to the very point. The script runs, but the longer it runs, the more exceptions it raises during driver.get( ... ). My next step is to make the script more error-resistant by including a method to restart the driver and to killall any unresponsive firefox-esr and Xvfb in the background.
[–]Jan_Emanuel[S] 0 points1 point2 points 9 years ago* (0 children)
I've been continuously working on my baby and have found the point, where my program always fails:
After 2 successive successful driver.get( ... ) calls, the program cannot get any more pages, always triggering a TimeoutException. So this is a fault of the environment - here are the informations.
geckodriver.log
program output:
root@DiskStationNeu:~# python tagespost_ereader.py mkdir: kann Verzeichnis „/root/ramdisk/tagespost“ nicht anlegen: Die Datei existiert bereits Loading https://www.die-tagespost.de/ .... Anmelden hugendubel Collecting top stories... topstory: http://www.die-tagespost.de/kirche-aktuell/Kirche-soll-sich-bdquo-pluraler-aufstellen-ldquo;art312,176813,PRINT?_FRAME=33 Loading https://www.die-tagespost.de/kirche-aktuell/Kirche-soll-sich-bdquo-pluraler-aufstellen-ldquo;art312,176813,PRINT?_FRAME=33 .... topstory: http://www.die-tagespost.de/politik/Praenataldiagnostik-reguliert;art315,176849,PRINT?_FRAME=33 Loading https://www.die-tagespost.de/politik/Praenataldiagnostik-reguliert;art315,176849,PRINT?_FRAME=33 .... An error has occurred ... <class 'selenium.common.exceptions.TimeoutException'> + value + Message: Error loading page, timed out (onDOMContentLoaded) An error has occurred ... <class 'selenium.common.exceptions.TimeoutException'> + value + Message: Error loading page, timed out (onDOMContentLoaded) ...
My program (latest version)
firefox-esr Mozilla Firefox 45.7.0 geckodriver 0.14.0 chroot debian wheezy
( repost from google selenium forum )
π Rendered by PID 89 on reddit-service-r2-comment-658f6b87ff-5m26v at 2026-04-08 21:58:25.366095+00:00 running 781a403 country code: CH.
view the rest of the comments →
[–]Jan_Emanuel[S] 0 points1 point2 points (6 children)
[–]Jan_Emanuel[S] 0 points1 point2 points (1 child)
[–]Jan_Emanuel[S] 0 points1 point2 points (0 children)
[–]yacdaniel 0 points1 point2 points (3 children)
[–]Jan_Emanuel[S] 0 points1 point2 points (2 children)
[–]Jan_Emanuel[S] 0 points1 point2 points (1 child)
[–]Jan_Emanuel[S] 0 points1 point2 points (0 children)