javascript - protractor unable to click input='button' value -


i'm new protractor , learning , struck in place. i'm having form submit shown below.

<input type="button" value="sign up" class="btn btn-success btn-small" data-ng-click="chceckme()" /> 

i tried following ways not figure out

element(by.css('.btn-form')).click(); element(by.css('.btn .btn-success .btn-sm .btn-form')).click(); element(by.css('[ng-click="redirectregister()"]')).click(); element.getattribute('login').submit(); 

all of them throws error.....please me out , appreciated.thanks in advance.

nothing has .btn-form class, or ng-click="redirectregister()" attribute, or 'login' attribute. none of selectors correspond remotely element. expect happen?

'.btn .btn-success .btn-sm .btn-form' not list of elements, it's parent > child > child > child selector. want '.btn.btn-success.btn-sm.btn-form' instead.

and chceckme() ?

just try selector makes sense element(by.css('input.btn-success')).


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -