Trial and error web element reporting

Apologies if this has been asked before. I have not found a similar question so I will post this here…

I am trying to find a very simple element in my website by using the locator which I provided that is:- //span[contains(text(),‘Business’)]

The Console in Katalon Studio reports “Web element found by trial and error method is not used because we can’t guarantee it reflects the intended element”.

Is there any reason why Katalon and the Console does not report what it did manage to find the element by? Surely this would help the user? eg: "you tried to find your element by using ABC but we managed to detect it by XYZ. Is there any way I can find out how Katalon did detect the element eg: within log files?

I’ve seen the “Web element found by trial and error method…” message as well, but generally it’s when the element truly cannot be found on the page at the time of calling.

Is it possible for you to provide us with the HTML and/or portion of the script in question?

It used to happen with Katalon Studio 5.7:

What version are you using?

Thanks Brandon, I am able to identify the component now. I just wasnt sure if the message from Katalon should be worded in this way. It suggests they could identify the component but they wont tell the user! I didnt believe this would be true but it does mislead the user slightly.

Hi Mate_Mrse. I am using 5.7.1. I am able to identify the component now. I just wasn’t sure if the message from Katalon should be worded in this way. It suggests they could identify the component but they wont tell the user! I didn’t believe this would be true but it does mislead the user slightly.