【发布时间】:2016-02-20 13:05:48
【问题描述】:
返回一个动作与返回页面对象中的整个函数有什么区别?
this.download = function() {
element(by.id('modal-download-button')).click();
return this;
};
VS
this.download = function() {
return element(by.id('modal-download-button')).click();
};
【问题讨论】:
标签: selenium webdriver protractor angularjs-e2e pageobjects