Skip to content

windowSendKeys

Rubens Dos Santos Filho edited this page Feb 7, 2019 · 2 revisions

Sends keyboard events to an application with the informed title.

Heads up! This method will consider all opened application in the OS.

Parameters

Attribute Type Name
title string Window title
keys Keys[] Keyboard events or keys
timeout** number Waiting timeout

** optional parameters.

This method returns a Promise with true value or with an Error instance depending if the command was successfully executed or not.

oeAgent.windowSendKeys('Select file', [Keys.T, Keys.E, Keys.S, Keys.T]);
Clone this wiki locally