← 输入框|github.com|刷新
Skip to content

WindowsDriver find returns RemoteWebElement instead of WindowsElement #1247

Closed

Description

@adrianhara

Description

I'm new to Appium and I have the problem described in this issue #1194 (which was closed without any explanation). Basically I'm creating a WindowsDriver<WindowsElement> to automate a WPF app, when finding elements (by accesibility id) it says foundBy io.appium.java_client.windows.WindowsDriver however the returned element type is RemoteWebElement. I would expect the type to be WindowsElement. What's more, calling find by accessibility id on the returned element sometimes fails with a not supported exception.

Environment

  • java client build version or git revision if you use some shapshot: 7.2.0
  • Appium server version or git revision if you use some shapshot: 1.13.0
  • Desktop OS/version used to run Appium if necessary: Windows 10
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe:
  • Mobile platform/version under test: Windows/WPF
  • Real device or emulator/simulator: -

Details

Happy to provide, please let me know what you need.

Activity

  1. guilim commented on Dec 3, 2019

    @guilim

    Hey! I have the exact same issue: WindowsDriver returning RemoteWebElement, thus leading to cast errors if trying to store them in WindowsElement variables.
    Looks like the same issue as #774.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions