Search in sources :

Example 1 with WebDriverSteps

use of my.company.steps.WebDriverSteps in project selenium_java by sergueik.

the class SearchTest method setUp.

@Before
public void setUp() throws Exception {
    DesiredCapabilities capabilities = new DesiredCapabilities("firefox", "", Platform.ANY);
    WebDriver seleniumDriver = new FirefoxDriver(capabilities);
    // new ChromeDriver()
    // ChromeDriverManager.getInstance().setup();
    // java.lang.NoClassDefFoundError:
    // org/openqa/selenium/remote/service/DriverService$Builder
    steps = new WebDriverSteps(seleniumDriver);
}
Also used : WebDriver(org.openqa.selenium.WebDriver) RemoteWebDriver(org.openqa.selenium.remote.RemoteWebDriver) WebDriverSteps(my.company.steps.WebDriverSteps) FirefoxDriver(org.openqa.selenium.firefox.FirefoxDriver) DesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities) Before(org.junit.Before)

Example 2 with WebDriverSteps

use of my.company.steps.WebDriverSteps in project selenium_java by sergueik.

the class SearchTest method setUp.

@BeforeMethod
public void setUp() throws Exception {
    steps = new WebDriverSteps(new PhantomJSDriver(new DesiredCapabilities()));
    steps.openMainPage("http://www.tizag.com/htmlT/forms.php");
}
Also used : PhantomJSDriver(org.openqa.selenium.phantomjs.PhantomJSDriver) WebDriverSteps(my.company.steps.WebDriverSteps) DesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

WebDriverSteps (my.company.steps.WebDriverSteps)2 DesiredCapabilities (org.openqa.selenium.remote.DesiredCapabilities)2 Before (org.junit.Before)1 WebDriver (org.openqa.selenium.WebDriver)1 FirefoxDriver (org.openqa.selenium.firefox.FirefoxDriver)1 PhantomJSDriver (org.openqa.selenium.phantomjs.PhantomJSDriver)1 RemoteWebDriver (org.openqa.selenium.remote.RemoteWebDriver)1 BeforeMethod (org.testng.annotations.BeforeMethod)1