1

The .txt file contains 2 links. The script works if there is only 1 link but fails with more than 1.

Code:

one = open("link.txt", "r")
for two in one.readlines():
    driver.get(two)
    driver.find_element_by_css_selector('.yox8zw-1').click()
    driver.find_element_by_css_selector('.o8a1bb-1').click()
    
    

This is the error I'm getting:


selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <button class="yox8zw-1 fcpjav rco9ie-0 kNjZmD">...</button> is not clickable at point (711, 761). Other element would receive the click: <img src="https://images-assets-ht.project1content.com/Brazzers/MAs/ZZ_Plus/Common/Catfish/5f1608711d9da9.20409525.png" class="sc-1xljrhb-2 iDGoeW">
  (Session info: chrome=96.0.4664.45)

Is there a blatant error that stands out to you? How would I go about fixing this? Any tips?

zackchess1
  • 37
  • 5

0 Answers0