Open Yougesh12 opened 2 years ago
@anunay1 this is for xpath only but i want to make a xpath axes
so far as I know its not supported yet. @DHowett Correct it if I am wrong.
Please help me on this @DHowett if you know that xpath axes is supported in Desktop Application
I developed custom methods for child, next item previous item etc
is it working ?
Of course it's working
I developed custom methods for child, next item previous item etc
are you saying this about web application or Desktop application
Or i am understanding something worng..Where you use the xpath axes??
I developed custom methods for the functionality provided by xpath axes.
I developed custom methods for child, next item previous item etc
are you saying this about web application or Desktop application
Desktop application
can you share the code?
To get the children the code is:
public static IEnumerable
To get the first element:
var editorLineNumberElement = session.FindElementByAccessibilityId("specialAutomationIdYouGave"); var textBoxElements = editorLineNumberElement.FindElementsByClassName("TextBox");
var firstElement = textBoxElements.FirstOrDefault();
To get the last element: var editorLineNumberElement = session.FindElementByAccessibilityId("specialAutomationIdYouGave"); var textBoxElements = editorLineNumberElement.FindElementsByClassName("TextBox"); var lastElement = textBoxElements.LastOrDefault();
Also check #1441
I am facing an issue for how to make xpath axes in Desktop apllication.Can you help me with the sample code