no such element: Unable to locate element using chromedriver and Selenium in production environment

后端 未结 4 556
故里飘歌
故里飘歌 2021-01-04 13:29

I have a problem with selenium chromedriver which I cannot figure out what\'s causing it. Some weeks ago everything was working OK, and suddenly this error started to show u

4条回答
  •  甜味超标
    2021-01-04 13:45

    It's report that the element not found error after you supplying the login , so I think the login failed and the page redirected to somewhere. You can use screenshot option to take a screenshot of the page and then see which page the driver load.

    driver.save_screenshot("path to save screen.jpeg")
    

    Also you can save the raw html code and inspect the same page.

    Webdriver Screenshot

    Using Selenium in Python to save a webpage on Firefox

提交回复
热议问题