I have to do repetitive work on the web page, so I'm trying to make it work automatically with selenium.
The target web service seems to be a way to dynamically load html elements on the page. (I don't know the name of the technology )/)
Find the menu button as xpath and click it, and now you have to click a button on the moved page, but the error keeps coming up that there is no such element.
So I moved the menu and printed page_source, so there's no element I'm looking for.
The explanation is a bit messy How do we solve this problem?
selenium python
https://selenium-python.readthedocs.io/waits.html
As in the example here,
element_to_be_clickable
Shouldn't we use this condition?
from selenium.webdriver.support import expected_conditions as EC
wait = WebDriverWait(driver, 10)
element = wait.until(EC.element_to_be_clickable((By.ID, 'someid')))
© 2024 OneMinuteCode. All rights reserved.