Title: Python Code for WebView2 Exe Testing
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.7
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: bhavna.sewani, gvanrossum, ncoghlan
Priority: normal Keywords:

Created on 2021-06-09 16:54 by bhavna.sewani, last changed 2021-06-09 17:25 by gvanrossum. This issue is now closed.

Messages (2)
msg395437 - (view) Author: Bhavna Sewani (bhavna.sewani) Date: 2021-06-09 16:54
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.

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 = @""; //myexe or webpage path
msg395445 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2021-06-09 17:25
Sorry, this tracker is not for getting help, only for submitting changes to Python itself.

Try instead.
Date User Action Args
2021-06-09 17:25:42gvanrossumsetstatus: open -> closed
resolution: rejected
messages: + msg395445

stage: resolved
2021-06-09 16:54:52bhavna.sewanicreate