Grid 2.0 を使用することをお勧めします
Web ドライバーを使用してグリッドでブラウザーを実行する方法
グリッドには、1 つの HUB と複数のノードがあります
シナリオはこちら
ハブ --> Mac マシン ノード --> Windows Vista
1) Download "Selenium Server" latest server from " http://docs.seleniumhq.org/download/ " on
both machine "Hub" and "Node"
2) Download browser driver in "Node" machine (Download browser driver according to your OS
either 32-bit or 64-bit)
3) ハブ マシンでターミナルを開き、次のように入力します。
java -jar "selenium server location" -role hub <Enter>
open browser and type "http://localhost:4444/grid/console"
4) ノード マシンでターミナルを開き、次のように入力します。
java -jar "selenium server location" -role node -port 5566 -hub http://Hub ip address:4444/grid
/register -Dwebdriver.ie.driver=<path of ie web driver, downloaded in step 2> <Enter>
-Dwebdriver.ie.driver --> to specify the browser driver path
5) このコードは、ドライバ ブラウザに使用する必要があります。
DesiredCapabilities capabilies = DesiredCapabilities.internetexplorer();
capabilies.setPlatform(Platform.ANY);
driver = new RemoteWebDriver(new URL("<node url>:<port>/wd/hub"), capabilies);