use of com.github.sergueik.jprotractor.NgWebDriver in project selenium_java by sergueik.
the class NgIgnoreSyncIntegrationTest method testNonAngularIgnoreSync.
// @Ignore
@Test
public void testNonAngularIgnoreSync() {
if (isCIBuild) {
return;
}
NgWebDriver ngDriver = new NgWebDriver(seleniumDriver, true);
ngDriver.navigate().to("http://www.google.com");
long startTime = System.currentTimeMillis();
ngDriver.waitForAngular();
long estimatedTime = System.currentTimeMillis() - startTime;
System.err.println("waitForAngular: " + estimatedTime);
NgWebElement element = ngDriver.findElement(By.cssSelector("input#gs_htif0"));
try {
element.getAttribute("id");
} catch (TimeoutException exception) {
fullStackTrace = org.apache.commons.lang.exception.ExceptionUtils.getFullStackTrace(exception);
System.err.println("TimeoutException thrown: " + fullStackTrace);
return;
}
}
use of com.github.sergueik.jprotractor.NgWebDriver in project selenium_java by sergueik.
the class NgLocalFileIntegrationTest method setup.
@BeforeClass
public static void setup() throws IOException {
sb = new StringBuilder();
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 NgMultiSelectIntegrationTest 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 NgQualityShepherdIntegrationTest 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);
CommonFunctions.setHighlightTimeout(1000);
}
use of com.github.sergueik.jprotractor.NgWebDriver in project selenium_java by sergueik.
the class NgTodoListIntegrationTest 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);
}
Aggregations