https://cypress.io logo
Cypress click problem
# i-need-help
s
I need to click on an element and see a popup 1) In Open mode, the test failed, but if I click manually on the browser before doing the click by Cypress, the test popup appears. I tried setting the focus to the panel, nothing helped, but if I run in Run mode the test passes on Electron 2) In Chrome, the test always fails. Any ideals how I can handle it? In general Cypress make click but popup does not appear
m
maybe the element you are trying to find is acting weird on google. Hard to debug a problem like this. I would suggest you use cypress locator picker
or maybe you are clicking on padding instead of the actual locator
w
Hi @stocky-salesclerk-42224 you can refer below link which has information about interaction with elements in cypress https://docs.cypress.io/guides/core-concepts/interacting-with-elements
Hi @stocky-salesclerk-42224 you can also check if the element you are clicking on is hidden then use invoke command to access it https://docs.cypress.io/api/commands/invoke