Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

fix: update-api-to-match-wdio #243

Merged
merged 4 commits into from
Sep 22, 2021
Merged

fix: update-api-to-match-wdio #243

merged 4 commits into from
Sep 22, 2021

Conversation

FelixZilber
Copy link
Collaborator

No description provided.

@FelixZilber FelixZilber requested review from refael-m and AlexeyCL and removed request for refael-m September 12, 2021 22:00
@FelixZilber FelixZilber requested a review from nirgur September 13, 2021 08:33
*/
export function executeScript(script: string): string {
export function execute(script: string): string {
Copy link
Collaborator

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

Copy link
Collaborator Author

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

src/commons/BrowserUtils.ts Show resolved Hide resolved
src/commons/BrowserUtils.ts Outdated Show resolved Hide resolved
src/commons/BrowserUtils.ts Show resolved Hide resolved
src/commons/BrowserUtils.ts Show resolved Hide resolved
* 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 {
Copy link
Collaborator

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.

Copy link
Collaborator Author

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?

Copy link
Collaborator

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

@AlexeyCL
Copy link
Collaborator

@FelixZilber well done!!

@AlexeyCL AlexeyCL assigned FelixZilber and unassigned AlexeyCL Sep 19, 2021
BREAKING CHANGE: update BrowserUtils API to match the wdio api
@FelixZilber FelixZilber enabled auto-merge (squash) September 22, 2021 08:46
@FelixZilber FelixZilber merged commit e594ee7 into master Sep 22, 2021
@FelixZilber FelixZilber deleted the update-api-to-match-wdio branch September 22, 2021 08:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants