Home > OS >  How to input credit card number with selenium
How to input credit card number with selenium

Time:06-29

I am trying to input credit card info with selenium on discord but it said that the elements not interactable

HTML CODE: CODE

image

CodePudding user response:

The reason for this might be cause Card information is inside a shadow DOM. So it wont be accessible to selenium directly. You can try something like here

CodePudding user response:

the text box or the field you are looking for is inside a frame so first you need to target on the iframe tag and switch to it please try to use driver.switchTo().frame("Pass the webelement of the iframe here");

  • Related