Code Monkey home page Code Monkey logo

Comments (5)

NickAb avatar NickAb commented on May 25, 2024

Second option needs more investigation. At least three ways to implement on the fly XPath-able collection are available:

  1. Subclassing XmlReader
  2. Implementing IXPathNavigable interface and providing custom XPathNavigator.
  3. Using XStreamingElement and Linq

Need to understand limitations and benefits of each one.

XPathNavigator seems to be a way to go. See Using XPath to Navigate the File System for reference on XPathNavigator implementation.

from winium.mobile.

NickAb avatar NickAb commented on May 25, 2024

Implementing XPathNavigator is easy and allows to access elements only when needed, but XPathNavigator is not supported by Store Apps framework, rendering it unsuable both for current StoreApps driver and CodedUI prototype (but it can be used for desktop).

from winium.mobile.

skyline-gleb avatar skyline-gleb commented on May 25, 2024

Successfully used for desktop, thanks for research

from winium.mobile.

NickAb avatar NickAb commented on May 25, 2024

Somebody packed System.Xml.XPath for Silverlight apps, see package here https://www.nuget.org/packages/System.Xml.XPath.SL4/

We should try it out

from winium.mobile.

Pranodayd avatar Pranodayd commented on May 25, 2024

Hi @NickAb .
I will see to implement by suggested way in "How to add support for element attributes other than ClassName, Name, AutomationId? #19 " or else I will have to wait for Xpath strategy to be implemented in Winium.StoreApps for some of the scenarios containing element retrieval based on SIBLING relationship.
Thanks a lot.

from winium.mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.