0

I am trying to click an action menu option and getting this error in cypress:

Timed out retrying after 4050ms: cy.click() failed because this element is not visible:
<div id="pay-off-holiday-option" class="ng-star-inserted">...</div>
This element <div#pay-off-holiday-option.ng-star-inserted> is not visible because its parent <div#ngx_poppperjs_63.ngxp__container.ngxp__animation.popper-actions> has CSS property: display: none
Fix this problem, or use {force: true} to disable error checking.

I have tried adding force:true on the click and it just moves the menu weirdly, rather than clicking on the element.

Here is how the dom looks like:

enter image description here

2
  • What is the selector that you are using? Add that to the question. Commented Aug 4, 2022 at 10:16
  • How does your menu become visible to the user? Commented Aug 4, 2022 at 15:24

1 Answer 1

1

You have information on how you can workaround this problem. Add optional 'option' param.

Element.click({force: true});

There you can find more information: https://docs.cypress.io/api/commands/click#Usage

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.