Hello,
I am new to protractor and trying to write following function in one of
page object.
* var page = function(){*
* this.setPagination = function(pagination){*
* var button = "element(by.buttonText(".concat("\'",pagination,"\'","))"); *
* button.click();*
* };*
* });*
however on trying to invoke this method, *page.setPagination(100);*
seeing following error.
*Message:*
* TypeError: Object element(by.buttonText('100')) has no method 'click'*
* Stacktrace:*
* TypeError: Object element(by.buttonText('100')) has no method 'click'*
Same function works, with hardcoding as listed below.
* this.setPagination100 = function(){*
* element(by.buttonText('100')).click();*
*};*
Could you please advise if any correction required to parameterise this
function.
Thanks in advance.
Best Regards,
Raja
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.