Created
September 3, 2015 13:36
-
-
Save dennisreimann/e1acd302e971f47df865 to your computer and use it in GitHub Desktop.
Galen forEach example with nested objects
This file contains hidden or 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
@objects | |
form-row-* .form__row | |
label .form__row__label | |
input .form__row__input | |
= Form = | |
@on small | |
@forEach [form-row-*] as row | |
${row}.label: | |
above ${row}.input | |
@on medium, large | |
@forEach [form-row-*] as row | |
${row}.label: | |
left-of ${row}.input | |
This file contains hidden or 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
= Form = | |
form-row-1.label: | |
above form-row-1.input | |
form-row-1.label.label: | |
-> above form-row-1.label.input | |
-> : Cannot find locator for "form-row-1.label.label" in page spec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@dennisreimann I have just released a new version (2.0.9). In it I have fixed the count function and also the sorting of page objects. Instead of alphabetic search it should perform a search like a human. Please let me know if you find some new weird issues.