Skip to content

WinEvents.Id

Avrigeanu Laurian edited this page Sep 5, 2022 · 3 revisions

GetDriverProcessId (int)

Using the ChromeDriverService as input, this method will return the process id of the ChromeDriver session which you can use to interact with the Chrome browsers with.

Mandatory Parameters
ChromeDriverService driverService

Example:

var processId = WinEvents.Id.GetDriverProcessId(driverService);

GetWindow (Window)

This method will retrieve the Main Window Handle of the given process id, basically, the current active window of the process id you give it.

Mandatory Parameters
int processId

Example:

var windowByProcess = WinEvents.Id.GetWindow(1337);

Clone this wiki locally