I am trying to make a python script that will make payment automatically on this site. I am able to get credit-card-number input but i can't access expirty month or CVV.
Code I tried
I used this to get credit card number field below
WebDriverWait(browser, 20).until(EC.frame_to_be_available_and_switch_to_it((By.XPATH,"//iframe[@id='braintree-hosted-field-number']")))
WebDriverWait(browser, 20).until(EC.element_to_be_clickable((By.XPATH, "//input[@class='number' and @id='credit-card-number']"))).send_keys("0000000000000000")
I used same thing to get Expiry month field, like this,
WebDriverWait(browser, 20).until(EC.frame_to_be_available_and_switch_to_it((By.XPATH, '//iframe[@id="braintree-hosted-field-expirationMonth"]')))
WebDriverWait(browser, 60).until(EC.element_to_be_clickable((By.XPATH, "//input[@class='expirationMonth' and @id='expiration-month']"))).send_keys("12/2024")
But this code don't work
So what I want is, I want to detect Expiration field and also CVV field, the method I used can't detect the field.
