You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use Panther to fill out a Stripe payment form. My Stripe fields are managed by Stripe itself from iframes generated in my form.
//Get iframe
$creditCardFrame = $this->client->findElement(WebDriverBy::cssSelector("#card-number > .__PrivateStripeElement > iframe"));
// returns : "iframe" and "__privateStripeFrame6225"
var_dump($creditCardFrame->getTagName(), $creditCardFrame->getAttribute('name'));
// Switch to iframe. (It should work no ?)
$this->client->switchTo()->frame($creditCardFrame);
// Trying to send keys in my own input (not a stripe field. It's on the default iframe). And I can.
$this->client->findElement(WebDriverBy::name('card-owner'))->sendKeys('my name');
// Trying to send keys in the cardnumber input (in a stripe iframe). Can't locate it.
$this->client->findElement(WebDriverBy::name('cardnumber'))->sendKeys("4242 4242 4242 4242");
These iframes seem protected, because when I switch to one of these iframes, it looks like I'm staying on my default frame and I can't access the frame of an input Stripe. In my opinion, this is because these are secure.
Is there a way to access it anyway?
I think I have to add this : --disable-site-isolation-trials but where ?
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to use Panther to fill out a Stripe payment form. My Stripe fields are managed by Stripe itself from iframes generated in my form.
These iframes seem protected, because when I switch to one of these iframes, it looks like I'm staying on my default frame and I can't access the frame of an input Stripe. In my opinion, this is because these are secure.
Is there a way to access it anyway?
I think I have to add this : --disable-site-isolation-trials but where ?
The text was updated successfully, but these errors were encountered: