-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutomationElement Enter functionality and XPath support implemented.. #391
base: master
Are you sure you want to change the base?
Conversation
Could you please split this into three pull request. One for each of the issues / improvements you made. |
I would love to see xpath support released. |
What I don't like about this xpath solution is that it creates the full graph and then uses xpath to select the appropriate node(s). Wouldn't it be better to implement a custom XPathNavigator which directly navigates the AutomationElements? |
You can have a look at https://github.com/Roemer/FlaUI/blob/master/src/FlaUI.Core/AutomationElementXPathNavigator.cs to see an example implementation of a custom XPathNavigator. |
Hi Nijakanthan , Thanks, |
var username = loginWindow.Get(SearchCriteria.ByXPath("//window[@AutomationId='Login']/edit[1]", loginWindow));
Properties can be used in XPath
AutomationId -
@AutomationId
ClassName -
@ClassName
FrameworkId -
@FrameworkId
Name -
@Name
If AutomationElement LocalizedControlType contains space it should me replaced with
-
Example : title bar -
title-bar (//title-bar[1])