I am trying to execute a click on a DOM element contained inside an SVG.
The code is:
browser.actions().mouseMove(el.getWebElement()).click().perform();
I saw that mouse move on the element, the click is executed, but nothing happens. After the click it should access another page, but it does not work.
Any help?
Does el.click() work?
no, it does not
When are going to add support for it? Is there any plan/date?
For now I solved it using raw Selenium (it requires to use actions() method), like so
browser.actions().click(element.all(by.css('...')).get(0).getWebElement()).perform();
@bitliner : can we enable this again, this seems like a more common problem now. We should not fallback to selenium but have support in protractor for this.
Thank you @bytexro , I think protractor have many other things that are common but that are ignored. Looking forward to see the new API in protractor.
On protractor 4.0.11 looks like raw selenium does not work neither .
It might be also a problem of my svg, but the selector is correct. Quite weird :(
Most helpful comment
For now I solved it using raw Selenium (it requires to use actions() method), like so