0

I've tried everything I can find here. (I have of course tried waiting for the item to be clickable as advised here ): I find my item easily, but when I try to click before typing I get an error Message: element click intercepted. Whatever I do after that, in the screenshots I see that the input box is not active and empty

    inputbox = wait.until(EC.element_to_be_clickable((By.CLASS_NAME, "TextField__input")))
    if inputbox:
            actions = ActionChains(drv)
            drv.save_screenshot('debug_cap_0.png')
            try:
                inputbox.click()
            except:
                driver.execute_script("arguments[0].click()", inputbox)
            time.sleep(1)               
            actions.move_to_element(to_element=inputbox).send_keys(mytext).perform()
            inputbox.send_keys(mytext)
            drv.save_screenshot('debug_cap_1.png')
Ilya
  • 25
  • 1
  • 6
  • It seems element is not visible or hidden on the page. Please post the relevant html of `input` and parent element of `input`. – KunduK Dec 08 '22 at 15:28

0 Answers0