XClick dismisses modal

This is working before but suddenly started failing the first XClick will dismiss the modal now what was wrong?, I was trying to Xclick on the Locations field, then XType a state in US, then XType key down and key enter to select from google suggested locations.

Note: That each and every modal across our site whenever I use XClick closes the modal, so the problem isn’t just about this modal

Screenshot 2024-06-17 at 4.53.08 AM

Hi, could it be that that website has changed, and thus the xpath points to the wrong place now?

As a test, try XClick + IMAGE or XClickText + some Text on the modal.

Example:

XClickText | Enter

or

XClick | image

Thanks for replying to my post. @ulrich

Here’s my test

  1. XClick + IMAGE - I cannot take a screenshot of the area where I wanted to click, as soon as I click on the area the modal dismisses

  2. XClickText + Enter a location - Also failed

I have a screen recording but somehow cannot add it here. I sent it to you via PM.
Could it be because how we implemented modals in our website, is if you click outside of it, modal closes

This can be solved by adding a delay between pressing SELECT button and the screenshot. This gives you time to open the modal dialog after pressing SELECT: