Thrown when element could not be found. If you encounter this exception, you may want to check the following: * Check your selector used in your find_by... * Element may not yet be on the screen at the time of the find operation, (webpage is still loading) see selenium
| 66 | |
| 67 | |
| 68 | class NoSuchElementException(WebDriverException): |
| 69 | """Thrown when element could not be found. |
| 70 | |
| 71 | If you encounter this exception, you may want to check the following: |
| 72 | * Check your selector used in your find_by... |
| 73 | * Element may not yet be on the screen at the time of the find operation, |
| 74 | (webpage is still loading) see selenium.webdriver.support.wait.WebDriverWait() |
| 75 | for how to write a wait wrapper to wait for an element to appear. |
| 76 | """ |
| 77 | |
| 78 | def __init__( |
| 79 | self, |
| 80 | msg: Any | None = None, |
| 81 | screen: str | None = None, |
| 82 | stacktrace: Sequence[str] | None = None, |
| 83 | ) -> None: |
| 84 | with_support = f"{msg}; {SUPPORT_MSG} {ERROR_URL}#nosuchelementexception" |
| 85 | |
| 86 | super().__init__(with_support, screen, stacktrace) |
| 87 | |
| 88 | |
| 89 | class NoSuchAttributeException(WebDriverException): |
no outgoing calls
no test coverage detected