Questions tagged [cypress-iframe]
9 questions
3
votes
2 answers
Clicking on button in iframe in Cypress
Ran into the issue, where the test code should click the button Process in the iframe. Used npm i cypress-iframe lib, but came up to nothing. Cypress could not find the button.
Tried…

SimonB88
- 31
- 3
2
votes
3 answers
How to wait until iframe will be loaded with Cypress
I have dynamically loading iframe in a application.
I'm catching a frame through this code:
Cypress.Commands.add('getIframe', (iframeLocator: string): void => {
cy.wait(10000)
cy.get(iframeLocator)
…

Igor Vlasuyk
- 514
- 2
- 10
- 22
1
vote
1 answer
Cypress - Finding input element id when it as a space in it?
I'm trying to identify an input element within an iframe (I'm using the "cypress-iframe" library to account for this) by its ID so I can type in it but the input is "Mobile Phone" and Cypress throws an error when trying to look for it. There are…

Los
- 147
- 1
- 11
0
votes
1 answer
Cypress iframe plugin is not working after upgrading to cypress 12
Cypress iframe plugin is not working after upgrading to cypress 12 . It was working fine when i was using 8.2 . But there is no information available if it is not supported by cypress 12 ..
The command throws following error
TypeError: cy.iframe is…
0
votes
2 answers
Can't find item in cypress even though it's in DOM
No matter what selectors I use, I keep getting the response "Expected to find element: ... but never found it. The curious thing is that in the DOM I am able to find this element and the selector for it (I used this to find the element
Code I have…

Ar2r
- 55
- 5
0
votes
0 answers
iframe is loaded successfully but element is not available, displaying blank screen
When I run the spec, it runs successfully after loading the iframe but elements are not visible from the iframe. Below are the screenshots for same. Also added
chromeWebSecurity: false
in the cypress.config.js file and imported cypress-iframe in…

Krupali Kotwal
- 1
- 1
0
votes
2 answers
I have two iframes I need one
How do I take an iframe if I have two with the same classes and neither eq() nor first() works when I use cy.iframe().
Here is the error:
Each radio is made up of a 'form' and inside each one contains the respective iframe.
But I only want to take…

Roly
- 25
- 4
0
votes
1 answer
Cypress how to deal with one iframe into another iframe
The main goal is to get access to the input field and submit some data.
Problem - These elements are located in one iframe (we can't add there any attributes like id, etc) which is wrapped into another iframe (I was able to get access to it by…
0
votes
1 answer
Cypress loses test scenario after quitting from iframe
I have iframe for payments, after successful payment I need to click 'go back to application' button. And here is a problem. Button has a new link in href attribute for the app. After clicking this button, it seems like Cypress loses test scenario,…

Igor Vlasuyk
- 514
- 2
- 10
- 22