selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
https://www.crifan.com/selenium_by_id_got_element_click_error_element_is_not_attached_to_the_page_document/
Refresh the current page before locating and interacting with the element.
Add wait
to wait until the element is displayed or exists.
When switching from a page to another page, can assign the webdriver of the current page to the next page object. (Refresh the page to ensure element loading)
selenium
test automation
software test