You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);