Open TatyanaMartynyuk opened 4 years ago
I want to use Robotjs to click on ESCAPE on the keyboard, when Selenium Webdriver opens Upload an image dialog from a web browser.
Based on the documentation, it should work with
const robot = require('robotjs'); robot.keyTap('escape');
I think I'm missing something while using Robotjs, because it does not click on ESCAPE.
const robot = require('robotjs');
const uploadButton = await driver.findElement(By.id('capture')); uploadButton.click(); robot.keyTap('escape'); await driver.findElement(By.id('nextButton').click();
I want to use Robotjs in my e2e tests, in cases where Selenium Webdriver has no power to proceed.
I'm trying to do the same operation, I need to close the windows OS file selector window, but it is not working.
I want to use Robotjs to click on ESCAPE on the keyboard, when Selenium Webdriver opens Upload an image dialog from a web browser.
Expected Behavior
Based on the documentation, it should work with
Current Behavior
I think I'm missing something while using Robotjs, because it does not click on ESCAPE.
Steps to Reproduce (for bugs)
const robot = require('robotjs');
Context
I want to use Robotjs in my e2e tests, in cases where Selenium Webdriver has no power to proceed.
Your Environment