https://cypress.io logo
Hello. I am a beginner with cypress and I have a p...
# help
r
Hello. I am a beginner with cypress and I have a problem with my code. I create a small test that login into the printer's web page. (full address: http://ricoh.milestone/web/guest/en/websys/webArch/mainFrame.cgi)
Copy code
import '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
Copy code
"dependencies": {
    "cypress": "9.6.1",
    "cypress-iframe": "^1.0.1"
  },
4 Views