Selenium Aliexpress Pagination

31 views
Skip to first unread message

Selenium_user

unread,
Oct 24, 2021, 1:09:37 AM10/24/21
to Selenium Users
Hello everyone! I want to go to the next page inside a product category on Aliexpress website. But an error appears. How to fix it?
from selenium import webdriver
import time

def main():
    driver = webdriver.Chrome()
    el = driver.find_element(By.CLASS_NAME, "SearchPagination_SearchPagination__particularPageInput__16999")
    el.send_keys("5")
    time.sleep(5)
    el = driver.find_element_by_xpath('//button[text()="OK"]')
    el.click()

main()
Result:
...\temp.py", line 12, in main
    el.click()
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
  (Session info: chrome=94.0.4606.81)
Reply all
Reply to author
Forward
0 new messages