-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
*/ | ||
export function executeScript(script: string): string { | ||
export function execute(script: string): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should add optional arguments parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we are passing the full script everywhere, and for the sake of simplicity, I left it without arguments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
* it can be single key or an array of keys | ||
* @param keysToSend key, array of keys or string array (chars) to send | ||
*/ | ||
export function sendKeys(keysToSend: SpecialKeys | Array<SpecialKeys> | string | Array<string>): void { | ||
export function keys(keysToSend: SpecialKeys | Array<SpecialKeys> | string | Array<string>): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Send a sequence of key strokes to the active element. You can also use characters like "Left arrow" or "Back space". WebdriverIO will take care of translating them into unicode characters. You’ll find all supported characters here. To do that, the value has to correspond to a key from the table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's your point here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that you can remove keysToSend: SpecialKeys | Array
@FelixZilber well done!! |
BREAKING CHANGE: update BrowserUtils API to match the wdio api
No description provided.