How can we improve the Windows dev platform?

WinAppDriver: implement /context to support PageFactory @WindowsFindBy annotation

WinAppDriver does not work with @WindowsFindBy annotation because AppiumFieldDecorator forces the GET /context command, which is not supported by WinAppDriver. I understand WinAppDriver does not currently support WebView and therefore it does not support context switching, so /context command is not provided. However, the context switching is not required to support @WindowsFindBy annotated element. It just needs the /context command that returns the current context name, which could be hard-coded as "NATIVE_APP". Then Appium will happily use the native locator.

5 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Keiichi Yamamoto shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • mn commented  ·   ·  Flag as inappropriate

        Hi, Can you provide Java example on how to use AppliumFieldDecorator class with hard-codec context(NATIVE_APP)

      Feedback and Knowledge Base