Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindElementByXpath on Chromium framework Apps #1719

Open
kuozheyu opened this issue May 26, 2022 · 3 comments
Open

FindElementByXpath on Chromium framework Apps #1719

kuozheyu opened this issue May 26, 2022 · 3 comments

Comments

@kuozheyu
Copy link

kuozheyu commented May 26, 2022

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 kuozheyu changed the title FindElementByXpath on Chromium framework Apps . FindElementByXpath on Chromium framework Apps May 26, 2022
@anunay1
Copy link

anunay1 commented May 28, 2022

@anunay1
Copy link

anunay1 commented May 28, 2022

Also check #1668

@kuozheyu
Copy link
Author

kuozheyu commented May 30, 2022

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants