Thanks for your PM, but I’m not sure I can help here. And I have to say it, this thread is a rat’s nest, not least because…
-
You’re using lengthy, unwieldy XPaths which are sure to cause problems for maintenance later (nod to @grylion54) and for us are difficult to read/approach.
-
I think you’re using Katalon and supporting tools that most of us don’t use (Spy, Manual View, etc.)
Regarding #1, understand that we can’t see “everything” (your HTML, your JavaScript and CSS or even your page and what it’s meant to do). So having to read a ton of posts to pull it all together just to understand what’s going on, is an exercise in futility if not sheer boredom. How then are we meant to pull together an answer? I’m not surprised to see @kazurayam saying he’s tired and decided to check out. I don’t blame him – like I said, it’s a rat’s nest of a thread.
Regarding #2, it’s difficult for us to work this problem through with you because you’re coming at it it from a different place… a place we don’t generally work from. We use Script view. We write code. We generally build our own Test Objects, one by one (as mentioned up-thread). In my case, I don’t even use the Object Repository – if I need a Test Object, I create one dynamically in my test, and throw it away when I’m done.
So, having said all that, here’s my advice, for what it’s worth:
Build ONE Test Object BY HAND (with an XPath you wrote yourself) and write ONE Test Case to prove your one Test Object works correctly.
Now BREAK the XPath (spell the id wrong, for example). Run the test again. Prove it is broken in the way you expect.
THAT is sound engineering. Until you can do that for ALL your Test Objects, you’re working in the dark, wishing for things to go your way and floundering when they inevitably don’t.
Lastly, don’t give up. Nothing I’ve said above is meant to stop you moving forward, I’m just trying to help you see a (new, better) way forward.
Finally, lastly, learn to use the Web developer tools built into the browser. You’ll gain much advantage by becoming proficient in their use.