licanhua / YWinAppDriver

A open source project provides WinAppDriver compatible functionality
MIT License
49 stars 10 forks source link

XPath #19

Closed licanhua closed 3 years ago

licanhua commented 3 years ago

@varun210619, Can you try the XPath with YWinAppDriver? I want to know if there is performance improvement compared to WinAppDriver. If the performance is significant, I can talk with WinAppDriver team and present my implementation of XPath.

Currently the there are two difference when you are using XPath.

  1. YWinAppDriver has /Body/ parent, while WinAppDriver doesn't
  2. YWinAppDriver mark the first as Unknown, but WinAppDriver marks it as Window.

In WinAppDriver, image

/Window/Window[1]/Button[2]

YWinAppDriver image

/Body/Window/Unknown/Button[2]