简体   繁体   中英

Unable to invoke multiple browsers using JSTestDriver

Hi The JSTestDriver documentation say...

"Multiple browsers can be specified if separated by a comma ','. java -jar JsTestDriver.jar --port 9876 --browser firefoxpath,chromepath"

So far I can only open one browser. Lets say if I want to open IE and Chrome, the below command only opens IE.

C:\\libs>java -jar JsTestDriver.jar --port 9876 --browser "C:\\Program Files\\Internet Explorer\\iexplore.exe, C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"

Can anyone please help me?

have you try using the --captureConsole flag, so it'd look like this:

C:\\libs>java -jar JsTestDriver.jar --port 9876 --browser "C:\\Program Files\\Internet Explorer\\iexplore.exe, C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe" --captureConsole

Keep in mind that in JSTD version 1.3.1 this does not seem to work ( http://code.google.com/p/js-test-driver/issues/detail?id=199&q=browser%20capture )... But in 1.2.2 that should work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM