Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

Problem on Clicking on radio button using UI automation

$
0
0

Is there a property to click on a radio button using UIautomation

The problem is selecting the on the radio button i am unable to see the further actions that is performed , as the client is performing

i am using this code to detect the radio button and selecting it:

AutomationElement AlignmentradioButtonPASS = GetTextElement(appElement1, "rdBtnPass");

                            

if (AlignmentradioButtonPASS != null)
                        {
                            xmlWriter.WriteElementString("PASS_Contrast_Pattern", "Tests");
                            xmlWriter.WriteString("Click on Contrast Pattern Button and PASS Radio Button");
                            SelectionItemPattern AlignradioCheckPass = AlignmentradioButtonPASS.GetCurrentPattern(SelectionItemPattern.Pattern) as SelectionItemPattern;

                            AlignradioCheckPass.Select();

.....

}

In my client application the moment i click on the radio button that particular grid is getting highlighed, but in my script on select it is not getting highlighted

Any suggestions or solutions please help 


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>