[ACA-990] framework improvements (#96)

* refactoring

* e2e API improvements

* forgot one file
This commit is contained in:
Adina Parpalita
2017-11-28 22:02:47 +02:00
committed by Cilibiu Bogdan
parent 1dade550a1
commit 79f8ec33a9
18 changed files with 184 additions and 151 deletions

View File

@@ -47,7 +47,11 @@ export class Menu extends Component {
return this.getItemByLabel(label).getAttribute('title');
}
clicktNthItem(nth: number): promise.Promise<void> {
getItemsCount(): promise.Promise<number> {
return this.items.count();
}
clickNthItem(nth: number): promise.Promise<void> {
return this.getNthItem(nth).click();
}