I am trying to input credit card info with selenium on discord but it said that the elements not interactable
HTML CODE: CODE
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");