WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

FindElementByXpath on Chromium framework Apps

Open kuozheyu opened this issue 3 years ago • 3 comments

I tried to use xpath that got from UIrecorder to get element by call FindElementByXpath ,but it's not work on Chromium framework Apps . WinAppDriver show element not found. Then I found the UIrecorder element's xpath is not same as the xpath that WinAppDriver used to find element . In some cases, "/group/" in xpath need to be removed.

Is there any way to find the correct xpath on Chromium framework Apps ? Or, Are there fixed rules from UIrecorder xpath to WinAppDriver xpath ?

kuozheyu avatar May 26 '22 06:05 kuozheyu

check this https://docs.microsoft.com/en-us/microsoft-edge/webview2/how-to/webdriver

anunay1 avatar May 28 '22 15:05 anunay1

Also check #1668

anunay1 avatar May 28 '22 15:05 anunay1

check this https://docs.microsoft.com/en-us/microsoft-edge/webview2/how-to/webdriver

This method seems like for web automation, but I work on Apps that is Chrome Framework (e.g. Skype, Teams) . Does this solution work in my case? Also, I want to automate them in desktop session. I saw most of functions provided by WinAppDriver work fine on Chrome Framework App , and Win32 IUIAutomation supposed to support Chrome Framework , So, I think the error should be in xpath .

kuozheyu avatar May 30 '22 03:05 kuozheyu