File tree 1 file changed +6
-6
lines changed
src/test/robotframework/country/creation
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,12 @@ Log Out
53
53
Submit Form id=logout-form
54
54
55
55
Country Field Should Be
56
- [Documentation] Verify the selection of the select list that is using selectize.js
57
- [Arguments] ${value }
56
+ [Documentation] Verify the selection of the select list that is using selectize.js
57
+ [Arguments] ${value }
58
58
# We can't use "List Selection Should Be" because
59
59
# 1) it doesn't work with invisible elements (and selectize.js makes field invisible)
60
60
# 2) selectize.js dynamically creates list of countries only when we're clicking on the field
61
- Click Element id=country-selectized
62
- ${fieldXpath } = Set Variable
63
- ... // *[contains(@class, "selectize-dropdown-content")]/*[text() = " ${ value } " ]
64
- Xpath Should Match X Times xpath=${fieldXpath } expectedXpathCount=1
61
+ Click Element id=country-selectized
62
+ ${dropdownXpath } = Set Variable //*[contains(@class, "selectize-dropdown-content")]
63
+ Wait Until Page Contains Element xpath= ${ dropdownXpath } / *[contains(@class, "option") ]
64
+ Xpath Should Match X Times xpath=${dropdownXpath } /*[text() = " ${ value } "] expectedXpathCount=1
You can’t perform that action at this time.
0 commit comments