use of com.github.sergueik.jprotractor.NgWebDriver in project selenium_java by sergueik.
the class NgSliderIntegrationTest method setup.
@BeforeClass
public static void setup() throws IOException {
isCIBuild = CommonFunctions.checkEnvironment();
seleniumDriver = CommonFunctions.getSeleniumDriver();
seleniumDriver.manage().window().setSize(new Dimension(width, height));
seleniumDriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS).implicitlyWait(implicitWait, TimeUnit.SECONDS).setScriptTimeout(10, TimeUnit.SECONDS);
wait = new WebDriverWait(seleniumDriver, flexibleWait);
wait.pollingEvery(pollingInterval, TimeUnit.MILLISECONDS);
actions = new Actions(seleniumDriver);
ngDriver = new NgWebDriver(seleniumDriver);
}
use of com.github.sergueik.jprotractor.NgWebDriver in project selenium_java by sergueik.
the class NgSvgIntegrationTest method setup.
@BeforeClass
public static void setup() throws IOException {
sb = new StringBuilder();
// Send all output to the Appendable object sb
formatter = new Formatter(sb, Locale.US);
isCIBuild = CommonFunctions.checkEnvironment();
seleniumDriver = CommonFunctions.getSeleniumDriver();
seleniumDriver.manage().window().setSize(new Dimension(width, height));
seleniumDriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS).implicitlyWait(implicitWait, TimeUnit.SECONDS).setScriptTimeout(10, TimeUnit.SECONDS);
wait = new WebDriverWait(seleniumDriver, flexibleWait);
wait.pollingEvery(pollingInterval, TimeUnit.MILLISECONDS);
actions = new Actions(seleniumDriver);
ngDriver = new NgWebDriver(seleniumDriver);
}
use of com.github.sergueik.jprotractor.NgWebDriver in project selenium_java by sergueik.
the class NgCalculatorIntegrationTest method setup.
@BeforeClass
public static void setup() throws IOException {
isCIBuild = CommonFunctions.checkEnvironment();
seleniumDriver = CommonFunctions.getSeleniumDriver();
seleniumDriver.manage().window().setSize(new Dimension(width, height));
seleniumDriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS).implicitlyWait(implicitWait, TimeUnit.SECONDS).setScriptTimeout(10, TimeUnit.SECONDS);
wait = new WebDriverWait(seleniumDriver, flexibleWait);
wait.pollingEvery(pollingInterval, TimeUnit.MILLISECONDS);
actions = new Actions(seleniumDriver);
ngDriver = new NgWebDriver(seleniumDriver);
}
use of com.github.sergueik.jprotractor.NgWebDriver in project selenium_java by sergueik.
the class NgCssContainingTextTest method setup.
@BeforeClass
public static void setup() throws IOException {
isCIBuild = CommonFunctions.checkEnvironment();
seleniumDriver = CommonFunctions.getSeleniumDriver();
seleniumDriver.manage().window().setSize(new Dimension(width, height));
seleniumDriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS).implicitlyWait(implicitWait, TimeUnit.SECONDS).setScriptTimeout(10, TimeUnit.SECONDS);
wait = new WebDriverWait(seleniumDriver, flexibleWait);
wait.pollingEvery(pollingInterval, TimeUnit.MILLISECONDS);
actions = new Actions(seleniumDriver);
ngDriver = new NgWebDriver(seleniumDriver);
}
use of com.github.sergueik.jprotractor.NgWebDriver in project selenium_java by sergueik.
the class PageObjectFactoryTest method setUp.
@Before
public void setUp() {
// Create a new instance of a driver
System.setProperty("webdriver.chrome.driver", osName.toLowerCase().startsWith("windows") ? new File("c:/java/selenium/chromedriver.exe").getAbsolutePath() : resolveEnvVars(chromeDriverPath));
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
driver = new ChromeDriver(capabilities);
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
ngDriver = new NgWebDriver(driver);
// Navigate to the page
ngDriver.get(baseUrl);
ngDriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}
Aggregations