python
Check for Iframes: If the element is within an iframe, you'll need to switch to the iframe context before locating the element.
# Switch to the iframe
driver.switch_to.frame("et-fb-app-frame")
# Find the button by its tag name
button = driver.find_element(By.TAG_NAME, "button")
button.click()
time.sleep(5)
Comments
Post a Comment