I just reverted all the changes, made an Docker container and put that on the server. If you specified a log_file in the FirefoxBinary constructor, check it for details.Īlso changing the cap = False to True just gives me the older error message. If it still fails, a git process may have crashed in this repository.
UNABLE TO FIND MOZILLA GECKODRIVER CLOUD9 CODE
: Message: The browser appears to have exited before we could connect. Get code examples instantly right from your google search results with the Grepper. Self._wait_until_connectable(timeout=timeout)įile "/home/webadmin/.local/lib/python3.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 104, in _wait_until_connectable
_browser(self.profile, timeout=timeout)įile "/home/webadmin/.local/lib/python3.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 73, in launch_browser Send_text = '' + token + '/sendMessage?chat_id=' + chat + '&parse_mode=Markdown&text=' + messageīut now I get the following error: Traceback (most recent call last):įile "/home/webadmin/.local/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 191, in _init_įile "/home/webadmin/.local/lib/python3.7/site-packages/selenium/webdriver/firefox/extension_connection.py", line 52, in _init_ If ("Dieses Produkt ist leider ausverkauft." not in browser.page_source):
#token="1995953311:AAH-D7S-MISkCa0yQxUc84Gf978fz0vtoqY"īrowser = webdriver.Firefox(options=options, capabilities=cap, executable_path="/usr/local/bin/geckodriver") I searched the error up and apparently you have to define the binary paths and the capability "marionette" now I did this and now the code looks like this (including some debugging stuff): #!/usr/bin/python3įrom import Options as FirefoxOptionsįrom _capabilities import DesiredCapabilities : Message: Unable to find a matching set of capabilities
Raise exception_class(message, screen, stacktrace) Self.error_handler.check_response(response)įile "/home/webadmin/.local/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response Response = self.execute(Command.NEW_SESSION, parameters)įile "/home/webadmin/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute Self.start_session(capabilities, browser_profile)įile "/home/webadmin/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session I tried to make a bot which looks up if the Bob Marley TShirt from Ajax Amsterdamn is available.īrowser = webdriver.Firefox(options=options) #, capabilities=cap, executable_path="/usr/local/bin/geckodriver")įile "/home/webadmin/.local/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 174, in _init_įile "/home/webadmin/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in _init_