Using Selenium Webdriver to interact with Stripe Card Element iFrame - Cucumber/Selenium Java
问题 I have an form that I want to automate using Cucumber and Selenium Webdriver in Java - in this form, we have a card element which we use from Stripe. We call the div, and stripe does the rest. I'm unsure if this is an iFrame, but when I use the Hooks.driver.findElement(By.xpath("xpathOfTheCardNumberField")).sendKeys("123"); command, it does not interact with it and returns the "Unable to locate element" error in the console log. I have asked our front-ender to perhaps try and add some ID's or