-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
How to do Hybrid Windows/ Web automation? #819
Comments
yes they will not show up in inspect, you will have to use tools like selenium, webdriver io to achieve this. |
@anunay1 Is it possible to combine both Windows driver and web driver in same codebase ? Like refer web driver code while clicking web content alone ? |
This is what I want to do. Also I can't use selenium because the App itself spawns the browser window, and AFAIK there is no way to 'attach' to a browser. |
Thats true @tomw93 . |
yes it is possible, (using chrome as an example) create a selenium session, it will open chrome, now go to your windows application and click on the button which opens the web browser, I am sure if chrome is selected as a default browser it will open the link in a new tab, and then switch to that tab(its a hunch but it might work) I do not have any application which behaves like this, if you can give me a sample app I can give it s shot. |
@anunay1 It's an application that is a gateway to the main web application which is presented via a WebView. I think this is done by default with Internet Explorer, and is presented through the application - meaning it doesn't just open as a free standing browser. |
Hi @tomw93 |
If your devs are willing to modify their code, you can have them launch Chrome set up to accept remote debugging sessions, then you can attach to said session using Selenium. If you're using C#, I've got a blog on the topic: If you're NOT using C#, this is the blog that I used to learn how to do this before converting to C#: |
When a proper support for elements inside WebView is expected? |
I am also facing the same issue i cannot locate any element in Webview in standard browser application. Is there any solution? |
I'm trying to automate similar webview in windows application. Did anyone find any solution? |
have you tried the solution that @PandaMagnus suggested, Unfortunately I do not have any application which is hybrid, if anyone can share any application I can give it a shot. |
@anunay1 you can try automating simple Print option of google chrome. |
@tomw93 @matanshapira @@anunay1 @roymaitri @kviji |
We are currently using a hybrid with chromedriver to test this. It works. We are considering moving to WebView2 https://docs.microsoft.com/en-us/microsoft-edge/webview2/howto/webdriver |
@anunay1 You can try similar example on Notepad>Help>View Help Button It opens a link on Browser |
I am wanting to do a hybrid of Windows and Web based automation, where the Windows app contains a web view.
This would involve switching to the web view as described in appium docs for mobile, and then we can use selenium to interact with the webview.
I have seen similar posts in the past but no ETA on it actually being added / a working approach for this.
The best approach at the moment is to use the inspect.exe to find element names - but given our web view is created in react which does most things with CSS names, they don't show up in inspect.
The text was updated successfully, but these errors were encountered: