Get all elements under specific selector

Hi,
When you examine a page source, it is clearly hierarchal, tables and windows that contains elements.
In my case, I have pages that are created while running and the id is a random value, so automation test cannot use it as selector. So I wish to get all the elements under an element I can identify, but keywords like “Get Element By Role” returns all the elements in the page.
Is there a way to get list of elements under specific selector? Like in FlaUILibrary - “Get Childs From Element”.
Thanks !

Hi,

I think you could use axis, which contains child property as well.
By giving a main node you might be able to target and narrow the following needed elements.

There are some cheat sheets like this one:


If you check Other axes part where there are some examples

Regards
Charlie

1 Like

Thanks @CharlieScene, great page ! I will try it

1 Like