Answer the question
In order to leave comments, you need to log in
Selenium working with Iframe in Python?
The situation is this:
there are inputs in the iframe, where I want to insert data
in the photo, the iframe itself and all its sub-elements up to the inputs I need, which are in divs, are shown
WebDriverWait(driver, 10, 0.01).until(EC.frame_to_be_available_and_switch_to_it((By.TAG_NAME,'iframe')))
WebDriverWait(driver, 10,).until(EC.visibility_of_element_located((By.ID,"cardName-input")))
driver.find_element_by_id("cardNumber-input").send_keys(cardname)
driver.find_element_by_id("cardExpiry-input").send_keys(cardname)
driver.find_element_by_id("cardCvc-input").send_keys(cardname)
driver.find_element_by_id("new-card-paynow").send_keys(cardname)
WebDriverWait(driver, 10,).until(EC.visibility_of_element_located((By.ID,"cardName-input"))
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question