AutomationElement Enter functionality and XPath support implemented.. #391
AutomationElement Enter functionality and XPath support implemented.. #391nijakanthan wants to merge 7 commits intoTestStack:masterfrom
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 -
@AutomationIdClassName -
@ClassNameFrameworkId -
@FrameworkIdName -
@NameIf AutomationElement LocalizedControlType contains space it should me replaced with
-Example : title bar -
title-bar (//title-bar[1])