Created
June 6, 2014 14:21
-
-
Save nickrobinson/090c4081d53c523d430c to your computer and use it in GitHub Desktop.
ExtJS_Resource
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
*** Settings *** | |
*** Variables *** | |
${currentWindow} ${EMPTY} | |
*** Keywords *** | |
Click Item By Text | |
[Arguments] ${text} ${windowName}=${currentWindow} | |
Click Element //div[@id = '${windowName}']//div[contains(text(),'${text}')] | |
Click Button by Label | |
[Arguments] ${label} ${windowName}=${currentWindow} | |
Click Element //div[@id = '${windowName}']//span[contains(text(),'${label}')] | |
Click Arrow | |
[Arguments] ${direction} ${windowName}=${currentWindow} | |
[Documentation] Direction should be left, right, up, or down | |
Click Element //div[@id = '${windowName}']//span[contains(@class, \ 'icon-arrow-${direction}')] | |
Click Button and Check for Error | |
[Arguments] ${label} ${windowName}=${currentWindow} | |
Click Element //div[@id = '${windowName}']//span[contains(text(),'${label}')] | |
Run Keyword And Expect Error Successful Save Wait Until Page Contains Element //div[contains(@class, \ 'x-form-invalid-icon')] 3 Successful Save | |
Click Checkbox by Label | |
[Arguments] ${label} ${windowName}=${currentWindow} | |
Click Element //div[@id = '${windowName}']//input[contains(@class, \ 'x-form-checkbox')] | |
Set Active Window | |
[Arguments] ${currentWindowName} | |
${currentWindow}= ${currentWindowName} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment