selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable when clicking on an element using Selenium Python

前端 未结 4 1112
情深已故
情深已故 2020-11-22 15:29

I understand this question has been asked but I need some solution for this error:

 Traceback (most recent call last):
 File \"goeventz_automation.py\", line         


        
4条回答
  •  无人共我
    2020-11-22 16:15

    For headless chrome browser you need to provide window size as well in chrome options.For headless browser selenium unable to know what your window size.Try that and let me know.

    chrome_options = webdriver.ChromeOptions()
    chrome_options.add_argument('--headless')
    chrome_options.add_argument('--no-sandbox')
    chrome_options.add_argument('--disable-dev-shm-usage')
    chrome_options.add_argument('window-size=1920x1480')
    

提交回复
热议问题