mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
17 lines
449 B
JavaScript
17 lines
449 B
JavaScript
const webdriver = require('selenium-webdriver');
|
|
const By = webdriver.By;
|
|
const until = webdriver.until;
|
|
|
|
module.exports = class E2ETestPage {
|
|
constructor(driver, url) {
|
|
this.url = url;
|
|
this.driver = driver;
|
|
}
|
|
|
|
navigate() {
|
|
this.driver.navigate().to(this.url);
|
|
this.driver.wait(until.elementLocated(By.css('.hydrated')));
|
|
return this.driver.wait(until.elementIsVisible(this.driver.findElement(By.css('.hydrated'))));
|
|
}
|
|
}
|