Re: New Firefox Profile loaded on remote webdriver - Grid2

63 views
Skip to first unread message

Mike Riley

unread,
May 22, 2013, 1:17:34 PM5/22/13
to webd...@googlegroups.com
You would need to save the profile where it can be accessed by the Windows system where you run the test code.  I used a network mount to keep my profiles in that all systems could access, which saved having to copy them from one system to the other.

Mike

On Tuesday, May 21, 2013 2:16:21 PM UTC-7, ChandraShekar L wrote:
Hi All,

           I am running remote webdriver HUB and NODE in a LINUX BOX but running my Java testng tests from a windows Box from eclipse.

1) When running it locally with firefox driver, I am able to use a Firefox Profile which has addon(REST Client).

2) While trying to run the same test case with remote webdriver, its starting a New Firefox profile without addon(REST Client).
          @BeforeTest
          public void beforeTest() throws Exception {
          File profileDirectory = new File(C://test/ffprofile);
         FirefoxProfile fp = new FirefoxProfile(profileDirectory);
         DesiredCapabilities capabilities = DesiredCapabilities.firefox();
        capabilities.setCapability(FirefoxDriver.PROFILE, fp);
        driver = new RemoteWebDriver(new URL("http://XX.XX.XX.XX:4444/wd/hub"), capabilities);
        driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
        driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
       
    } // beforeTest

To overcome this issue, I created a firefox profile with addon(REST Client) on Linux box where HUB & NODE are running. But HOW DO I PASS remote firefox profile from my windows box?


Cheers
Reply all
Reply to author
Forward
0 new messages