You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Hi,
I am converting my protractor tests from Promises to async/await and I found something weird with browser actions click. The problem is that the click() does not execute, but the mouseMove does.
The click() works when test is written as a promise not async/await
Here is the test and the browser.actions function
it('When entering selection state selection toolbar should appear', async () => {
const page = new SingleObjectPage();
await page.get('barchart', 'PWFwr', 'select=clearall');
await page.activateSelectionMode($(barlayer));
await browser.wait(EC.visibilityOf($(SingleObjectPage.selectors.object.confirmButton)), timeout, 'Confirm button did not appear');
});
activateSelectionMode(element) {
return browser.actions()
.mouseMove(element, {
x: 20,
y: 75,
})
.click()
.perform();
}