我有一个简单的页面对象方法:
page.prototype.copyLink = function() {
this.visit("https://myWebsite.com");
this.login(); // once logged in, presented with list of elements
return {
firstCampaign: this.find('#el-1').getText(), //returns a promise
secondCampaign: this.find('#el-2).ge