Updated readme and added install script

This commit is contained in:
witzig 2017-05-16 02:47:35 +02:00
parent c3e9781dc4
commit 43e1cab315
6 changed files with 79 additions and 17 deletions

View file

@ -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();
},