rhythmic-lamp-20079
06/30/2022, 1:56 PMimport 'cypress-iframe';
describe('Install', () => {
it('should install Ricoch agent ', function () {
cy.visit("10.2.4.56").then(() => {
cy.get('frameset')
cy.frameLoaded('frame[title="Header Area"]').then(() => {
cy.iframe('frame[title="Header Area"]')
.find('span')
.contains('Login')
.wait(10000)
.click({force: true})
.wait(10000);
})
})
})
})
Test correctly visit web app, get frameset, load frame, and find span, but when I want to click "Login" button the test shuts down, and it says that there is no test.
Web code:
https://ibb.co/3BfLBc4
Test timeline:
https://ibb.co/Ypp363K
After second wait(1000)
https://ibb.co/bs66fCj
"dependencies": {
"cypress": "9.6.1",
"cypress-iframe": "^1.0.1"
},