Hi I've created all my tests using Selenium IDE and have now started to export them to JavaScript Mocha to have them running in travis.
The tests run fine in selenium ide and I can export them, but when I run it it says "TypeError: driver.actions(...).moveToElement is not a function".
it('Console Page should work', async function() {
await driver.get("https://myurl.com/")
await driver.manage().window().setRect(1536, 824)
await driver.findElement(By.id("loginLink")).click()
{
const element = await driver.findElement(By.id("Password"))
await driver.actions({ bridge: true }).moveToElement(element).clickAndHold().perform() // this line fails
}
package dependancies:
"dependencies": {
"chai": "^4.2.0",
"mocha": "^7.1.2",
"chromedriver": "^81.0.4044.138",
"selenium-webdriver": "^4.0.0-alpha.7"
}