I have a button that I need to click but for the life of me I cant figure out why it wont click (It is quite nested so have had problems previously when using Katalon)
I have attempted to make a selector, which has been validated but its just not clicking the pod open, so wondered if someone could explain what I am doing wrong please
I have only been doing this for a couple of weeks, so go easy on me please :). (ive watched numerous videos, read so much documentation and realised Im a hands on person)
I just noticed you have data-mastergrade='*' in your selector. This is pointless. It’s the same as just not having data-mastergrade in the selector at all. The * is a wildcard that means it’ll match any value.
In UI Explorer, if you mouse over to the right of aaname a popup will appear showing the value. It’s possible there’s a value there but with a ton of spaces before it so it looks like no value. Check that and let me know what you find.
Are you trying to click the button based on the text of the button (ie click the button that says 29 Standard Twin cabins?
the text changes constantly for that button, as its dependant on how many cabins are available, so I just need to click that button regardless of what the text says .
then you have to clear the context of the button, in which the button is located. Herefore analyze the surrounding / parent elements within UiExplorer / Browser F12 Webtools
Alternatively if the link with its innertext is too variable that it can’t be captured with wildcards, you could tryy to target just the A element without any specifics in it, but anchor it to the outer element which might be specific enough.