Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing iframe dont work in chrome 68 #2232

Closed
aldarund opened this issue Jul 29, 2018 · 1 comment
Closed

Accessing iframe dont work in chrome 68 #2232

aldarund opened this issue Jul 29, 2018 · 1 comment

Comments

@aldarund
Copy link

aldarund commented Jul 29, 2018

Current behavior:

Error:       CypressError: cy.type() failed because it requires a DOM element.

The subject received was:

  > undefined

The previous command that ran was:

  > cy.wrap()

https://i.imgur.com/QcJULDH.png

Desired behavior:

Work fine like in Electron

Steps to reproduce:

    cy.visit(`https://stripe.github.io/elements-examples/`)

    cy.wait(1000)

    cy.get('.StripeElement iframe').then(function($iframe) {
      const $doc = $iframe.contents()
      cy.wrap($doc.find('input[name=cardnumber]')[0]).type('4242424242424242')
    })

Versions

Cypress 3.0.2
Chrome Version 68.0.3440.75 (Official Build)

@aldarund
Copy link
Author

actually adding disable-site-isolation-trials from #1951 (comment) fixes this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant