angularjs - Protractor: Click on SVG element not work -


i testing angularjs app using protractor.

i need test click on svg element.

protractor can find element, can run click on element, after click nothing happens.

it should change page after click.

the code is

el=element(by.xpath('(//*[local-name()="g" ]//*[local-name() = "rect"])[1]'))     browser.actions().mousemove(el.getwebelement()).click().perform(); 

i agree @alecxe suggested in comment. should calling click() on element itself:

var el = element(by.xpath('(//*[local-name()="g" ]//*[local-name() = "rect"])[1]')); el.click(); 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -