Assert one or more named locators are visible.
Step pattern
Then (I |we )*see visible ([a-zA-Z0-9 ,\-]+)Examples
Example #1
Then I see visible headerExample #2
Then I see visible nav, footerExample #3
Then I see visible logo and searchExample #4
Then I see visible ctaExample #5
Then I see visible hero, content and sidebarExample #6
Then I see visible menuExample #7
Then I see visible search buttonExample #8
Then I see visible bannerExample #9
Then I see visible footerExample #10
Then I see visible top bar, nav and contentExample #11
Mix of components, inline CSS, inline XPath — all resolve:
When I add "page heading" selector for "h1" css selector
And I add "first para" selector for "//p[1]" xpath selector
Then I see visible page heading, first paraExample #12
After breakpoint resize — assert still visible:
Given I am viewing the site on a xs screen
Then I see visible heading, listExample #13
After loading a selector file — names from file are visible:
When I add selectors from "homepage-selectors.json" file
Then I see visible homepage heading, homepage first heading