Skip to content

Commit

Permalink
docs: add sendKeys to docs (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Aug 18, 2023
1 parent f8250e8 commit 5be4889
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Once you have an element ID, you can run these commands as well:
|Command|Parameters|Description|
|-------|----------|-----------|
|`click`|`elementId`|Check whether the element represented by `elementId` is marked as focused in the source XML. If not, determine which remote keypress will move the focus closer to the desired element. Repeat this process until the element is focused, and press the 'Select' button.|
|`sendKeys`|string|Set the given value to the element|

A note about stale element references: when you attempt to `click` an element, the driver will retrieve the current app source XML, and attempt to re-find the element based on the original locator criteria. If the find results in an XML node that matches the element reference, all is well. If not, the driver understands the element hierarchy to have changed and will respond with a Stale Element Exception.

Expand Down

0 comments on commit 5be4889

Please sign in to comment.