Then I see "subject" above "others"

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 footer
Example #2
Then I see logo above search
Example #3
Then I see nav above content, footer
Example #4
Then I see hero above sidebar and footer
Example #5
Then I see top bar above nav, content and footer
Example #6
Then I see heading above subline
Example #7
Then I see nav above content
Example #8
Then I see search above results
Example #9
Then I see banner above body
Example #10
Then I see menu above page
Example #11
Single subject, many targets (comma + "and"):
Then I see heading above subline, list and footer
Example #12
Many subjects, single target:
Then I see heading, subline above list
Example #13
Cartesian — many subjects × many targets:
Then I see heading, subline above list, footer
Example #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