Today is going to make a whole page automation, wrote a drop-down list, run the script to throw the exception: selenium.com mon. Exceptions. ElementNotVisibleException: Message: element not interactable
As shown in the figure below, the script failed to run after using the select_by_index() method. It was found that the code ~~ was not carefully examined. The code was not select-option, but table.
The script is as follows:
As shown in the figure below, the script failed to run after using the select_by_index() method. It was found that the code ~~ was not carefully examined. The code was not select-option, but table.
The script is as follows:
driver.find_element_by_xpath("//*[@id=\"style_box\"]/div[1]").click() #Select(s).select_by_index(3) driver.find_element_by_xpath("//*[@id=\"style_box\"]/div[2]/div[1]/table/tbody/tr[2]").click()
Very simple two clicks, run after an error selenium.com mon. Exceptions. ElementNotVisibleException: Message: element not interactable
After debugging for several times, it was found that there was no waiting time added. Add time.sleep(3), debug again, and it was successful.
On the one hand, we must analyze the front-end code, on the other hand, when the foot is wrong, especially when it comes to switching, it is better to add a wait time to try ~~
Read More:
- Selenium reports an error and solves the problem of element not interactive exception, element not interactive
- solve selenium.common.exceptions .ElementNotInteractableException: Message: element not interactable
- [Solved] selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn
- Python selenium — webriver cheat sheet
- python-TypeError: list indices must be integers, not tuple Solution
- MySQL password setting error message: error 1054 (42s22): unknown column ‘password’ in ‘field list’
- 【Bug-python】IndexError: list index out of range
- Selenium: 8 Ways to Locate Elements
- Postgressql: cannot drop the currently open database
- 206. Reverse Linked List [easy] (Python)
- Solve the problem of keyboard interactive authentication with the SSH2 server failed
- Solution of selenium driven edge error reporting
- TypeError: drop() got an unexpected keyword argument ‘columns’
- Pre initialization of list content and length in Python
- Unknown error: cannot find chrome binary when running selenium under Linux
- SAP RETAIL WA01 Creative Distribution List Error – Plant 0000000039 Confirmation date not maintained. –
- The solution of this. $message is not a function
- Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
- python3 Error in sitecustomize; set PYTHONVERBOSE for traceback: NameError: name ‘modules_list’ …
- Property ‘style’ does not exist on type ‘element‘