-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added type conversion to `Promise To`
- Loading branch information
Showing
7 changed files
with
58 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
*** Settings *** | ||
Resource imports.resource | ||
|
||
Test Setup New Page ${WAIT_URL} | ||
|
||
|
||
*** Test Cases *** | ||
Promise To With Type Conversion | ||
${promise}= Promise To Click id=victim button=left | ||
Select Options By id=dropdown value True enabled | ||
Click id=submit noWaitAfter=True | ||
Wait For ${promise} | ||
|
||
Promise To Convert Type | ||
${promise}= Promise To Click id=clickWithOptions left clickCount=4 delay=200 ms | ||
Go To ${LOGIN_URL} | ||
Wait For ${promise} | ||
Get Text id=click_count == 4 | ||
Get Text id=mouse_delay_time validate int(value) > 100 and int(value) < 300 | ||
Get Text id=mouse_button == left |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
*** Settings *** | ||
Library Browser | ||
|
||
|
||
*** Test Cases *** | ||
Test | ||
New Browser chromium headless=False | ||
New Context | ||
New Page https://robotframework.org/code | ||
${p} Promise To Click text="log.html" left position_x=10 position_y=5 | ||
Click "Run" | ||
Wait For ${p} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters