import org.junit.After; import org.junit.Before; import org.junit.Test; import com.thoughtworks.selenium.DefaultSelenium; import com.thoughtworks.selenium.Selenium;public class testing1{protected Selenium selenium; @Beforepublic void setUp(){ Selenium selenium = new DefaultSelenium("localhost", 4444, "*iexplore", "http://www.google.ru"); selenium.start(); }@Afterpublic void tearDown() { selenium.stop();} @Testpublic void testNew() throws Exception{selenium.open("/");}}
11:43:36.437 INFO - Checking Resource aliases
11:43:36.437 INFO - Command request: getNewBrowserSession[*iexplore, http://www.
google.ru, ] on session null
11:43:36.437 INFO - creating new remote session
11:43:36.546 INFO - Allocated session 396514abc41647a5bd9acac2f33a5752 for http:
//www.google.ru, launching...
11:43:36.640 INFO - Launching Embedded Internet Explorer...
11:43:37.656 INFO - Launching Internet Explorer HTA...
11:43:40.640 INFO - Got result: OK,396514abc41647a5bd9acac2f33a5752 on session 3
96514abc41647a5bd9acac2f33a5752