lib/capybara/selector.rb in capybara-3.28.0 vs lib/capybara/selector.rb in capybara-3.29.0
- old
+ new
@@ -7,9 +7,14 @@
#
# All Selectors below support the listed selector specific filters in addition to the following system-wide filters
# * :id (String, Regexp, XPath::Expression) - Matches the id attribute
# * :class (String, Array<String>, Regexp, XPath::Expression) - Matches the class(es) provided
# * :style (String, Regexp, Hash<String, String>) - Match on elements style
+# * :above (Element) - Match elements above the passed element on the page
+# * :below (Element) - Match elements below the passed element on the page
+# * :left_of (Element) - Match elements left of the passed element on the page
+# * :right_of (Element) - Match elements right of the passed element on the page
+# * :near (Element) - Match elements near (within 50px) the passed element on the page
#
# ### Built-in Selectors
#
# * **:xpath** - Select elements by XPath expression
# * Locator: An XPath expression