Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to start multiple IE8 windows at the same time with webdriver using selenium grid 2?
    primarykey
    data
    text
    <p>I'm trying to setup selenium grid 2 with the webdriver code I have already. I'm trying several tutorials I found on google but ran into the same problem: Every test case starts one after another. What I want is all of them start at the same time (all using IE8) I started the hub and nodes, when I go to <code>http://localhost:4444/grid/console</code> I can see both nodes are up with IE8. And this is my code, all it does right now is to go to google. Any help on this please? Thank you!</p> <pre><code>public class CodesIntegrationTestCase { private static String SELENIUM_HUB_URL; private static String TARGET_SERVER_URL; @BeforeClass public static void initEnvironment() { SELENIUM_HUB_URL = getConfigurationProperty( "SELENIUM_HUB_URL", "test.selenium.hub.url", "http://localhost:4444/wd/hub"); System.out.println("using Selenium hub at: " + SELENIUM_HUB_URL); TARGET_SERVER_URL = getConfigurationProperty( "TARGET_SERVER_URL", "test.target.server.url", "http://google.com"); System.out.println("using target at: " + TARGET_SERVER_URL); } private static String getConfigurationProperty( String envKey, String sysKey, String defValue) { String retValue = defValue; String envValue = System.getenv(envKey); String sysValue = System.getProperty(sysKey); // system property prevails over environment variable if (sysValue != null) { retValue = sysValue; } else if (envValue != null) { retValue = envValue; } return retValue; } @Test public void testIE() throws MalformedURLException, IOException { DesiredCapabilities browser = DesiredCapabilities.internetExplorer(); testCodesCrud(browser); } @Test public void testIE2() throws MalformedURLException, IOException { DesiredCapabilities browser = DesiredCapabilities.internetExplorer(); testCodesCrud(browser); } public void testCodesCrud(DesiredCapabilities browser) throws MalformedURLException, IOException { WebDriver driver = null; try { driver = new RemoteWebDriver( new URL(SELENIUM_HUB_URL), browser); // test starts in Codes entity list page driver.get(TARGET_SERVER_URL + "/CodesView.do"); // rest of test commands come here } finally { if (driver != null) { driver.quit(); } } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload