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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -