Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99413

Headless chrome doesnt work on centos with same python selenium code after 1year

$
0
0

The same python selenium code to automate some functionality works fine till 1 to 1.5 years and suddenly stopped at a point

Puesdocode:

  1. The website is https website and need to authenticate the user.
  2. There are files which needs to be downloaded. (Maximum of 30 files in page)
  3. once downloaded all the files from page move to another page (At the bottom of page < pageno >, can be seen).
  4. As per step "<",">", these are the image icons. The problem comes here.

I can see that the icons are available and could find the web element and when "click()", i get an error

nextPageControl.click()
  File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click
    self._execute(Command.CLICK_ELEMENT)
  File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
    return self._parent.execute(command, params)
  File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: timeout
  (Session info: headless chrome=69.0.3497.100)
  (Driver info: chromedriver=2.42.591071 (0b695ff80972cc1a65a5cd643186d2ae582cd4ac),platform=Linux 3.10.0-693.21.1.el7.x86_64 x86_64)

or the script hangs there indefinitely as page load didn't happen

Nothing seems to work, can find the chrome and webdriver version in the log


Viewing all articles
Browse latest Browse all 99413

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>