0

Facing Error in clicking element with cyget, below is the snapshot

    cypress/e2e/spec-inside.cy.js:66:8
      64 |     // cy.initializeAutoheal('SbhohWd9dllo');
      65 |     cy.visit('https://us-sandbox.thesite.com/?automation-test');
    > 66 |     cy.get('#inside_tabs>div>svg>*>circle', 3).click();
         |        ^
      67 |     // cy.get('#inside_tabs > div> svg >* >circle', 
           cy.get('.transitionHidden>span', {iframe: '.chatPaneOpen>iframe'}, 4).click();
    

Pls let me know what is expected here ?

prit
  • 41
  • 8
  • What are the numbers in the second argument meant to be? Index of element found? – agoff Nov 16 '22 at 14:43
  • @agoff, not sure, I am testing the chatbot model window failing here site i am checking is -> `https://us-sandbox.insideyourbusiness.com/?automation-test` – prit Nov 16 '22 at 15:00
  • What are you expecting to happen when you use `cy.get()` with that number in the second argument? How would a `cy.get()` with a different number be different? – agoff Nov 16 '22 at 15:34
  • the element with circle name to be identified and clicked @agoff. Let me know how to approach this . the link is already shared. like `document.querySelector("#inside_liveChatTab > svg > g > circle")` – prit Nov 18 '22 at 11:55
  • So what is the `3` for? – agoff Nov 21 '22 at 16:07

0 Answers0