Assert a subject locator is above one or more others (absolute page coordinates).
Step pattern
Then (I |we )*see ([a-zA-Z0-9 ,\-]+) above ([a-zA-Z0-9 ,\-]+)Examples
Example #1
Then I see header above footerExample #2
Then I see logo above searchExample #3
Then I see nav above content, footerExample #4
Then I see hero above sidebar and footerExample #5
Then I see top bar above nav, content and footerExample #6
Then I see heading above sublineExample #7
Then I see nav above contentExample #8
Then I see search above resultsExample #9
Then I see banner above bodyExample #10
Then I see menu above pageExample #11
Single subject, many targets (comma + "and"):
Then I see heading above subline, list and footerExample #12
Many subjects, single target:
Then I see heading, subline above listExample #13
Cartesian — many subjects × many targets:
Then I see heading, subline above list, footerExample #14
Combined with inline xpath registration:
When I add "first heading xp" selector for "//h1[1]" xpath selector
Then I see first heading xp above list