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)