public void testSetProfileWithNullDoesNotSet() { BrowserConfigurationOptions bco = new BrowserConfigurationOptions().setProfile(null); assertFalse(bco.isSet(BrowserConfigurationOptions.PROFILE_NAME)); }
public void testSetProfileWithNonNullDoesSet() { String profile = "foo"; BrowserConfigurationOptions bco = new BrowserConfigurationOptions().setProfile(profile); assertTrue(bco.isSet(BrowserConfigurationOptions.PROFILE_NAME)); assertEquals(profile, bco.getProfile()); }
public void testServerOptionsCanLoadClientOptions() { String profile = "foo"; String execPath = "c:\\simon stewart\\likes\\cheese"; BrowserConfigurationOptions bco = new BrowserConfigurationOptions() .setSingleWindow() .setProfile(profile) .setBrowserExecutablePath(execPath); org.openqa.selenium.server.BrowserConfigurationOptions serverOptions = new org.openqa.selenium.server.BrowserConfigurationOptions(bco.toString()); assertEquals(profile, serverOptions.getProfile()); assertEquals(execPath, serverOptions.getExecutablePath()); assertTrue(serverOptions.isSingleWindow()); }