Hi,
I'm trying to solve RPA challenge from this website https://futureofworkblog.web.app/challenge2021.html on a regular level. I'm trying to get an input element relative to the label class element. In UiPath there is something called Anchor activity that allows interaction with an element relative to another. Is there anything like that available in PAD?
Or is there a way to create a selector that will get one element before? I was able to create selectors that get one element after, but before (previous) wasn't working.
Thank you in advance.
There is no previous element selector in CSS so you'll need to (loop through the input fields) and verify their label before entering anything
Actually, there is nothing custom to it. I just look for the .label after the input, read its content and then look for input.
#form_container > input:eq(%LoopIndex%) + .label
#form_container > input:eq(%LoopIndex%)
Please post your custom selector
I did, but it gets only UI elements after not an element before. I did it some other way, but still being able to capture elements before would a better option.
Did you try this as a custom selector? https://css-tricks.com/child-and-sibling-selectors/#adjacent-sibling-combinator
WarrenBelz
146,653
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional