I need move mouse cursor to element by xpath, but don’t click them. This code doesn’t work. Browser is opened on mainpage and that’s all.
const {Builder, By} = require('selenium-webdriver');
let driver = await new Builder().forBrowser('chrome').build();
class homepage{
async moveToElement() {
// Navigate to Url
await driver.get('https://test.io/');
let gmailLink = driver.findElement(By.xpath('//*[@class="top-navigation__item-link"][1]'));
const actions = driver.actions({async: true});
await actions.move({origin:gmailLink}).perform();
}
}