On my webpage I have 3 radio buttons, which can be selected as a part of 3 separate workflows.
How do I write one function that will give me the text of the selected radio button
On my webpage I have 3 radio buttons, which can be selected as a part of 3 separate workflows.
How do I write one function that will give me the text of the selected radio button
Use Get Attribute activity to read the selcted radio button text.
Hi
We can use ANCHOR BASE where choose the radio button alone as a image which is chosen, with the help of FIND IMAGE activity and place this activity in the left side of Anchor base
Where use Either Get Text or Screen Scrapping method from design tab in the right side of Anchor base activity and store that in a string variable which will give us the text of the selected radio button
Cheers @kaushiks1
@lakshman… thank you … I am able to get the value using GetAttribute. However I needed one workflow that could be reused across all 3 scenarios which will get me the text for the selected radio button across all 3 workflows … I am just a tad lazy to repeat the same process again.
Either the selector can be replaced with wildcard for the dynamic attribute that changes when the scenario changes
Or
Anchor base can handle this
Cheers @kaushiks1
Thanks @Palaniyappan … will try and keep you posted
Use Click activity and indicate three radio buttons and compare selectors and then you will get to know how to proceed further.