@@ -18,21 +18,21 @@ Add a series to user's collection (all stamps)
1818 Element Text Should Be css:.image-gallery figcaption [href="/series/2"] ~ .label-success New
1919
2020Add the same series to user's collection again (incomplete series)
21- Go To ${SITE_URL } /series/2
22- Element Text Should Be id:series-status-msg You already have this series. Add another one instance:
23- Input Text id:number-of-stamps 1
24- Submit Form id:add-series-form
21+ Go To ${SITE_URL } /series/2
22+ Element Text Should Be id:series-status-msg You already have this series. Add another one instance:
23+ Input Text id:number-of-stamps 1
24+ Submit Form id:add-series-form
2525 # See https://stackoverflow.com/questions/1604471/how-can-i-find-an-element-by-css-class-with-xpath
26- ${linkXpath } = Catenate SEPARATOR=
27- ... //*[contains(concat(" ", normalize-space(@class), " "), " image-gallery ")]
28- ... //figcaption
29- ... //a[@href="/series/2"]
30- ${successLabelElem } = Set Variable *[contains(concat(" ", normalize-space(@class), " "), " label-success ")]
31- Xpath Should Match X Times xpath:${linkXpath } expectedXpathCount =2
32- Xpath Should Match X Times xpath:${linkXpath } /following-sibling::${successLabelElem } expectedXpathCount =1
33- Element Text Should Be css:.image-gallery figcaption [href="/series/2"] ~ .label-success New
26+ ${linkXpath } = Catenate SEPARATOR=
27+ ... //*[contains(concat(" ", normalize-space(@class), " "), " image-gallery ")]
28+ ... //figcaption
29+ ... //a[@href="/series/2"]
30+ ${successLabelElem } = Set Variable *[contains(concat(" ", normalize-space(@class), " "), " label-success ")]
31+ Page Should Contain Element xpath:${linkXpath } limit =2
32+ Page Should Contain Element xpath:${linkXpath } /following-sibling::${successLabelElem } limit =1
33+ Element Text Should Be css:.image-gallery figcaption [href="/series/2"] ~ .label-success New
3434 # See https://developer.mozilla.org/en-US/docs/Web/CSS/General_sibling_combinator
35- Element Text Should Be css:.image-gallery figcaption [href="/series/2"] ~ .label-default 1 out of 2
35+ Element Text Should Be css:.image-gallery figcaption [href="/series/2"] ~ .label-default 1 out of 2
3636
3737*** Keywords ***
3838Before Test Suite
0 commit comments