Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** Settings ***
- Test Teardown Close All Browsers
- *** Test Cases ***
- Select React Dropdown List Value
- Set Selenium Speed 1
- Open Browser http://202.90.154.152:2007/ chrome
- Maximize Browser Window
- Input Text //input[@id="formUsername"] superadmin
- Input Text //input[@id="formPassword"] password
- Click Element //button[@id="sign-in"]
- Maximize Browser Window
- Wait Until Keyword Succeeds 10 10 Click Element //a[@href="#manageLibrariesDropdown"]
- Wait Until Keyword Succeeds 10 10 Click Element //a[@href="/governmentagency"]
- Wait Until Keyword Succeeds 10 10 Click Element //button[@id="govAgencyAddNew"]
- Input Text //div[@id="govAgencyModal"]//input[@id='govAgencyAddAgencyName'] ginagawa mo
- Input Text //div[@id="govAgencyModal"]//input[@id='govAgencyAddShortName'] nakatulog na ako
- Input Text //div[@id="govAgencyModal"]//input[@id='react-select-6-input'] Auth
- Press Key //div[@id="govAgencyModal"]//input[@id='react-select-6-input'] \\13
- Input Text //div[@id="govAgencyModal"]//input[@id='react-select-8-input'] Cordillera
- Press Key //div[@id="govAgencyModal"]//input[@id='react-select-8-input'] \\13
- Input Text //div[@id="govAgencyModal"]//textarea[@id='govAgencyAddDesc'] pano mo nasabi
- Click Element //div[@id="govAgencyModal"]//button[@id='govAgencyAddSubmit']
- *** Keywords ***
- React Select Should Be
- [Arguments] ${loc} ${ExpectedLabel}
- ${SelectedLabel}= Get Text ${loc}
- Should Be Equal ${SelectedLabel} ${ExpectedLabel} React select was expected to be "${ExpectedLabel}" but was ${SelectedLabel}
- ${sample}= FakerLibrary.Random Element ('Administration','Authority','Board')
- Return From Keyword ${sample}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement