Wait before click

This commit is contained in:
Chi Vinh Le
2017-10-30 13:11:41 +01:00
parent 5f5c64870a
commit 12a71fa117
+2
View File
@@ -23,11 +23,13 @@ module.exports = {
embed: {
commands: [{
getProfileSection: function() {
this.waitForElementVisible('@profileTabButton');
this.click('@profileTabButton');
this.expect.section('@profile').to.be.present;
return this.section.profile;
},
getCommentsSection: function() {
this.waitForElementVisible('@commentsTabButton');
this.click('@commentsTabButton');
this.expect.section('@comments').to.be.present;
return this.section.comments;