education o:PhD o:MS o:BA o:SE o:others
How to check the value = Phd or MS or BA or SE or other?
PhD webctrl id=‘edu_phd’ tag=‘INPUT’ type=‘radio’ name=‘edu’ parentid=‘eduStatus’
MS webctrl id=‘edu_ms’ tag=‘INPUT’ type=‘radio’ name=‘edu’ parentid=‘eduStatus’
BA webctrl id=‘edu_ba’ tag=‘INPUT’ type=‘radio’ name=‘edu’ parentid=‘eduStatus’
SE webctrl id=‘edu_se’ tag=‘INPUT’ type=‘radio’ name=‘edu’ parentid=‘eduStatus’
other webctrl id=‘edu_O’ tag=‘INPUT’ type=‘radio’ name=‘edu’ parentid=‘eduStatus’
Hi @scorpialee ,
Maybe using Regular expression in the selector would work or we could get the id attribute using Get Attribute
Activity and Check if it contains any of the words mentioned, then continue the process.
Using Regular Expression :
webctrl id='edu_(phd|ms|ba|se|O)' matching:id='regex' tag='INPUT' type='radio' name='edu' parentid='eduStatus'
More on using regex in Selectors:
@scorpialee
Welcome to the forum
maybe you can share some more details (screenshots / business case) with us
We would assume that all radio buttons are belonging to a group and the flow is about selecting a particular degree.
When regexing to all buttons then we don’t have a selector to a particular radio button as e.g. click needs to find a single element.
When it is about to dynamize it, then have a look here for dynamic selectors
sorry , I want to use Get Attribute Activity , To get which ‘radio button’ is checked,
without use too many If Activity
Is more suggestion?
thanks
use find children activity, set filter = "<webctrl tag='INPUT' type='radio'>"
then loop over the result elements using for each activity
inside the loop use get attribute activity to check if element is checked
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.