2

i have the following code used to fill cvv input under an iframe sandbox

WebDriverWait(browser, 10).until(EC.frame_to_be_available_and_switch_to_it((By.XPATH,"/html/body/div[1]/div/div[3]/div/div[2]/div/div/main/section[3]/div/div[1]/div[2]/div[4]/div/div/div/div/div[2]/div[1]/div/div[3]/div/iframe")))
WebDriverWait(browser, 10).until(EC.element_to_be_clickable((By.XPATH, "/html/body/form/div/input"))).send_keys("42342342") 

the code of iframe is the following

<iframe sandbox="allow-scripts allow-same-origin" class="credit-card-iframe-cvv mt1 u-full-width" src="https://paymentcc.nike.com/services/cvv?id=f2c34789-05ee-4d38-a4cb-5e51dfbe9d6e&amp;ctx=checkout&amp;language=undefined&amp;maskerEnabled=true" frameborder="0" scrolling="no" title="Credit Card CVV Form"></iframe>

but i got this error

File "/home/teflon/.local/lib/python2.7/site-packages/selenium/webdriver/support/wait.py", line 80, in until
    raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

why??

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.