Selenium-Debugging: Element is not clickable at point (X,Y)

前端 未结 5 1082
傲寒
傲寒 2020-11-30 19:38

I try to scrape this site by Selenium.

I want to click in \"Next Page\" buttom, for this I do:

 driver.find_element_by_class_name(\'pagination-r\').c         


        
5条回答
  •  盖世英雄少女心
    2020-11-30 20:25

    I had a similar issue where using ActionChains was not solving my error: WebDriverException: Message: unknown error: Element is not clickable at point (5 74, 892)

    I found a nice solution if you dont want to use execute_script:

        from selenium.webdriver.common.keys import Keys #need to send keystrokes
    
        inputElement = self.driver.find_element_by_name('checkout')
    
        inputElement.send_keys("\n") #send enter for links, buttons
    

    or

        inputElement.send_keys(Keys.SPACE) #for checkbox etc
    

提交回复
热议问题