Protractor: Issues with browser.actions().mouseMove() after upgrading from 1.x to 2.x

Created on 10 Jul 2015  路  5Comments  路  Source: angular/protractor

I'm getting this error:

UnknownError: null
at new bot.Error ...
From: Task: ActionSequence.perform ...

when I try to run this code:

browser.actions().mouseMove(browser.findElement(protractor.By.css(selector))).perform();

Worked fine in 1.x for me but now not working in 2.x. Any ideas?

needs more info

Most helpful comment

I am using Protractor 4.0.8 and 2.5.2 Jasmine framework(Integrated with Visual Studio) however the below syntax is not working.

browser.actions().mouseMove(element(by.css('a[href*="task/search"]'))).perform();

Please can someone provide your help in making this work

All 5 comments

Not sure. Could you show me more of the stacktrace? And are you sure the only difference is 1.x -> 2.x? Are you able to create a minimal reproduction?

does this work for you

browser.actions().mouseMove(element(by.css(selector))).perform();

@bvasilchik

That works great! Thanks. Looks like it just isn't supporting legacy commands anymore?

I am using Protractor 4.0.8 and 2.5.2 Jasmine framework(Integrated with Visual Studio) however the below syntax is not working.

browser.actions().mouseMove(element(by.css('a[href*="task/search"]'))).perform();

Please can someone provide your help in making this work

@Arav4prot Did you get solution for this?

Was this page helpful?
0 / 5 - 0 ratings