New submission from Bhavna Sewani <bhavna.sew...@gmail.com>:

I have an application developed using webview2.
It is a web application that would be driven by Microsoft Edge(Chromium). It 
would give a feel of Native/Desktop app
instead of web app to the end user.

I want to automate testing for this app using Python/Robot framework. 
I found an documentation which uses Dotnet, Selenium and Edge drivers for 
testing it.

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

Can someone help how can we write below code in Python and Robot to test the 
same using Selenium Library:

static void Main(string[] args)
{
    
        EdgeOptions edgeOptions = new EdgeOptions(false, "webview2");
        edgeOptions.BinaryLocation = @"C:\path\to\your\webview2\project.exe";
        string msedgedriverDir = @"C:\path\to\your\msededriver.exe's\directory";
        string msedgedriverExe = @"msedgedriver.exe";
        EdgeDriverService service = 
EdgeDriverService.CreateDefaultService(msedgedriverDir, msedgedriverExe, false);

        EdgeDriver e = new EdgeDriver(service, edgeOptions);
        e.Url = @"https://www.microsoft.com";; //myexe or webpage path
        e.Quit();
}

----------
components: Library (Lib)
messages: 395437
nosy: bhavna.sewani, gvanrossum, ncoghlan
priority: normal
severity: normal
status: open
title: Python Code for WebView2 Exe Testing
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44367>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to