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:
- solve selenium.common.exceptions .ElementNotInteractableException: Message: element not interactable
- Selenium reports an error and solves the problem of element not interactive exception, element not interactive
- Selenium: 8 Ways to Locate Elements
- WindowsError: [Error 2] The system cannot find the file specified
- Get picture captcha with Python + Chrome
- Lock wait timeout exceeded — transaction and index
- Solve selenium error — unknown error: devtoolsactivport file doesn’t exist
- Numpy adds a new dimension: newaxis
- The solution to the error of [Oracle] ora-00054
- Debugging with chrome Node.js
- DB2 SQL error: sqlcode = – 803, sqlstate = 23505, sqlerrmc = 2 [solution]
- Python selenium — webriver cheat sheet
- Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK
- Solution to the problem of console flash in vs2017 runtime
- Lua — using remove to delete table data
- Use of rep function in R
- Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
- Error = [Microsoft][SQL Server Native Client 11.0]Unable to open BCP host data-file
- Errors in IntelliJ ieeasql statements and table names in @ table
- Windows 10 critical_service_failed solution