Updated readme and added install script
This commit is contained in:
parent
c3e9781dc4
commit
43e1cab315
6 changed files with 79 additions and 17 deletions
|
@ -7,15 +7,14 @@ const until = webdriver.until;
|
|||
|
||||
module.exports = driver => ({
|
||||
driver,
|
||||
url: '/',
|
||||
elements: {},
|
||||
|
||||
element(key) {
|
||||
return this.driver.findElement(By.css(this.elements[key] || key));
|
||||
},
|
||||
|
||||
navigate() {
|
||||
this.driver.navigate().to(config.baseUrl + this.url);
|
||||
navigate(path) {
|
||||
this.driver.navigate().to(config.baseUrl + (path || this.url));
|
||||
return this.waitUntilVisible();
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue