I changed the CloseBrowser from:
if(Browser.Driver) Browser.Driver.close()
to:
if(Browser.Driver) Browser.Driver.quit()
This has no effect.
If I write a custom C# in visual studios and copies it over to the same node and run it by itself, the driver.quit() closes the browser and kills the driver process.
Is this because the agent is still holding onto the process and not closing it? I looked at the process table and there was 54 chromedriver/IEdrivers running.
Thanks
Does anyone know how I can kill this short of writing a C# or python script to do this after I execute the quit(). This seems heavy handed but may be needed if I can not get RWHQ to do it.
thanks for any help.
you need to call service.stop() for drivers that use the chromedriver.exe or eidriver.exe
I would suggest you modify Browser.groover
add a field:
public static def Service=null
and store the service variable initialised when browser type is chrome or IE
Then in CloseBrowser.groovy you'll need to call Browser.service.stop() if it isn't null.
Also, driver.quit() is the right method to call. Because driver.close() only closes the current window and wont work if you have a popup opened.
Good luck
That is what is puzzling me.
[Agent]
AgentVersion=2.40.20
AgentPort=5009
AgentVNCPort=3006
Update=
OS=Windows
Looks like I have 2.40
Look in your Agent files
agent\routes\command.js
process.env is only included in path for Java type projects.
It should be included for all types.
Good luck
Thanks
Vikad