Protractor: Click on svg element does not work

Created on 19 Jun 2015  路  7Comments  路  Source: angular/protractor

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?

needs investigation bug

Most helpful comment

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();

All 7 comments

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 :(

Was this page helpful?
0 / 5 - 0 ratings