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
Post a Comment