2010-12-07 12 views

答えて

9
FirefoxProfile profile = new FirefoxProfile(); 

// OR 
// FirefoxProfile profile = new FirefoxProfile(new File(...));  

// Init your profile 

// OR 
// If you created the profile by providing a path to it, 
// the path should refer to the one on the host of the WD server 

DesiredCapabilities caps = DesiredCapabilities.firefox(); 
caps.setCapability(FirefoxDriver.PROFILE, profile); 

WebDriver driver = new RemoteWebDriver(new URL("http://<....>:4444/wd/hub"), caps); 
2

あなたはそれぞれのセレングリッドに2ノード特定Firefoxのプロファイルを割り当てることができ、ちょうど設定 プロパティ webdriver.firefox.profile:

のjava -jarセレンサーバスタンドアロン-2.37.0 -hub http://mydomain.com:4444/grid/register

  • の.jar -Dwebdriver.firefox.profile =私のプロファイル-roleノードはwebdriver.firefox.profileの値は、Firefoxプロファイル名ではなく、場所やフォルダの名前でなければならない

http://automatictester.wordpress.com/2013/04/07/selenium-running-custom-firefox-profile/

関連する問題