-
Notifications
You must be signed in to change notification settings - Fork 478
AutomationElement Enter functionality and XPath support implemented.. #391
AutomationElement Enter functionality and XPath support implemented.. #391nijakanthan wants to merge 7 commits intoTestStack:master from
Conversation
maxinfet
commented
Sep 21, 2016
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.
Roemer
commented
Feb 16, 2017
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?
Roemer
commented
Feb 17, 2017
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.
tusarranajan
commented
Aug 29, 2017
Hi Nijakanthan ,
I implemented this #391 changes separately into my classes and getting it as a List.I cannot get it as a return type of SearchCriteria because of Internal constructor.
So now how can i convert it to a Search Criteria.
Thanks,
Tusar
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])