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

Problem with UI Automation

$
0
0

 Hi,

Iam using UI automation APi for automating ASP.Net controls on Web page.

 Iam trying to identify the text box using Automation ID .The following code is intermittently working.

   aeWindow = aeDesktop.FindFirst(TreeScope.Descendants, new PropertyCondition(AutomationElement.NameProperty, WindowName));
               aeText = aeWindow.FindFirst(TreeScope.Descendants, new PropertyCondition(AutomationElement.AutomationIdProperty, TextBoxName));
           

Some times Iam getting the text box and sometimes it is returning null.

Is there any specific reason for not identifying the controls? Why it is inconsistently behaving?

Thanks,

Mohan



mohandasgandhi


Viewing all articles
Browse latest Browse all 585

Trending Articles



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