mardi 11 septembre 2018

Unable to execute a selenium script through main

Unable to execute a selenium script through main . I have created a executable jar of the script , it is running fine with command prompt but not with main or GET service .

I am using command :- Runtime.getRuntime().exec("java -jar C:/Users/Administrator/Documents/abc.jar");

Also tried String[] command = {"cmd.exe" , "/c" , "Start" , "C:/Users/Administrator/Documents/abc.jar"} ; Runtime.getRuntime().exec(command) ;

With both commands selenium script are not executing but other executable jar are working fine .

I need to run the script through GET Api .

Thanks in Advance

Aucun commentaire:

Enregistrer un commentaire