Running selenium standalone jar file automatically through code? -
while running scripts in remote machine need run selenium stand alone server jar file in remote machine manually. there way integrate code in script jar file run automatically in remote machine?
if have done scenario can share code how this?
thanks,
sudhansu
powershell may perfect solution issue. follow link configure powershell in machine remote machine. http://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/
after this, add script run jar file on remote machine. java can do-
process proc = runtime.getruntime().exec("cmd /c start powershell.exe invoke-command -computername "remote-computer-name" -scriptblock { java -jar \path\to\selenium-standalone.jar } -credential username-of-remote");
it prompt password of remote machine. give , jar file run on remote machine.
hope you.
Comments
Post a Comment