javascript - Cannot click on an element although it says it's clickable and I can getText() -


i new end end testing. using jasmine , protractor. issue cannot seem click on element should clickable.

here html

<span ng-click="togglesubpanel()" class="ng-binding">click add workspace</span> 

here things have tried

this code prints out: is clickable? true

browser.wait(ec.elementtobeclickable(element(by.css('span[ng-click="togglesubpanel()"]'))), 10000).then(function(isclickable){       console.log('is clickable? ' + isclickable); }); 

and code prints out: click add workspace

element(by.css('span[ng-click="togglesubpanel()"]')).gettext().then(function(text) {             console.log('contentbutton:' + text); }); 

so, know locating element , should clickable. when try:

element(by.css('span[ng-click="togglesubpanel()"]')).click(); 

it doesn't seem anything. supposed open side panel. can manually click , works fine, won't work when automate it. not sure go here.

i've looked @ these answers , none seem answer question:

protractor cannot click element able gettext

protractor : unable click button


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -