Click svg element for pusher breaks on latest firefox (v.34)

I am testing the latest version of Protractor in different browsers. In this test spec, I want to right click on an svg element to trigger a specific event at a given point in the svg. To click on this item I use this function

function rightClick(svgElement) {
  scrollToElement(svgElement).then(function () {   
            browser.actions()
                .mouseMove(svgElement)
                .click(protractor.Button.RIGHT)
                .perform();
  });
}

      

I am running the test on different selenium hubs with different browsers. The test passes for all browsers (chrome, firefox27, ie11 + 10), except firefox34. When I look at the test, I can notice that the mouse is hovering over the svg element (because the element is highlighted), but after right clicking, it opens the firefox context menu instead of calling the eventlistener.

Another important point is that the test is failing.

I have tried different workarounds such as doing right click with two different browsers. () (The first to move around the element and the second to right click).

I also tried to click on coordinate items ... but nothing worked

To prevent errors caused by permissions, I maximize windows and scroll at 75px offset to prevent browser pop-ups.

+3


source to share





All Articles