node.js - Selenium Standalone server NodeJS, remote browsers -
i'm trying set selenium test environment having little trouble due fact browsers launched remotely via virtualization launcher service. path looks this:
"c:\program files (x86)\microsoft application virtualization client\sfttray.exe" /launch "mozilla firefox 32 32.0.0.5350"
my problem, can guess, server can't find path of browser binaries. i'd direct find webdrivers (iedriver.exe, chromedriver.exe, etc.) nice.
has else run problem? there way set through nodejs co-workers don't have configure launch setup individually too?
for chrome when launching hub or node command line use flag:
-dwebdriver.chrome.driver=path_to_chromedriver
where path_to _chromedriver directory put chromedriver. me /vagrant/bin/chromedriver giving:
-dwebdriver.chrome.driver=/vagrant/bin/chromedriver
for binaries- in java looks can use this:
firefoxbinary binary = new firefoxbinary(new file("path/to/binary")); firefoxprofile profile = new firefoxprofile(); webdriver driver = new firefoxdriver(binary, profile);
Comments
Post a Comment