This commit is contained in:
Belen Curcio
2017-11-08 11:49:32 -03:00
parent a2470fa01b
commit e9bd5703f1
3 changed files with 37 additions and 13 deletions
+13
View File
@@ -46,6 +46,19 @@ module.exports = {
this.switchWindow(handle);
});
},
logout() {
const embedStream = this.page.embedStream();
const embed = embedStream
.navigate()
.getEmbedSection();
embed
.waitForElementVisible('@commentsTabButton')
.click('@commentsTabButton')
.waitForElementVisible('@logoutButton')
.click('@logoutButton');
}
}],
url: function() {
return this.api.launchUrl;