Hi
With the below code Video opens in browser but it does not get automatically run
for (int i = 0; i < 4; i++)
{
vProcessId = Start("youtube.com/watch?v=MYojqnJ34g4?autoplay=1");
}
public static int Start(string processName)
{
var process =
Process.Start("msedge.exe", @processName);
return
process.Id;
}
Thanks
Vishal YelvePosted Dec 2, 2022, 9:12 AM
Hi Ramco,
you can close window using
WaitForExit(); and Close();
Ramco RamcoPosted Dec 2, 2022, 4:35 AM
Hi Vishal
How to close the browser window or kill the process after Video finishes.
Thanks
Vishal YelvePosted Dec 1, 2022, 7:54 AM
Hi Ramco,
try this, I have tested and its working
Output