Selection of radio button issue

Best practices, code snippets for common functionality, examples, and guidelines.
[email protected]
Posts: 5
Joined: Wed Aug 01, 2018 10:49 am

Selection of radio button issue

Post by [email protected] » Thu Aug 09, 2018 9:25 am

Hi,

Clicking on radio button is not working.
RadioButton.png
As in the above screenshot I wanted to click on Ansback but it is not working.
Only selection of that text working but not selection of radio icon of that value.
I have used the below two way of coding
1)
var ansbach = repo.Book1Excel.MSelectorListControl.Ansbach;
ansbach.Select();
ansbach.Click();

2)
Ranorex.Unknown radiobutton = "/form[@controlname='CnAbstractValueHelpControl']/container[@controlname='mSelectorListControl']//tree[@accessiblename='mTreeView']/treeitem[@text=ansbach]";

radiobutton.Focus();
radiobutton.Click()

And one more doubt For what exactly we should use Ranorex.uknown in the automation.

Thanks and Regards,
Basavaraj
You do not have the required permissions to view the files attached to this post.

User avatar
RobinHood42
Posts: 324
Joined: Fri Jan 09, 2015 3:24 pm

Re: Selection of radio button issue

Post by RobinHood42 » Mon Aug 13, 2018 9:21 am

Hi,

It would be really helpful if you could provide a Ranorex snapshot file of the mentioned elements.

Ranorex Snapshot

Thanks in advance.

Sincerely,
Robin