Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

corrected references to name() in navigator docs (should be tag())

  • Loading branch information...
commit 2f7a0da05db54d66deeb5bf73790722cb6c5db2e 1 parent 6f2d171
Rob Fletcher authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/manual/src/chapters/030-navigator.md
View
6 doc/manual/src/chapters/030-navigator.md
@@ -222,7 +222,7 @@ Navigator objects have a `displayed` property that indicates whether the element
## Accessing tag name, attributes, text and classes
-The `name()`, `text()`, `@attribute` and `classes()` methods return the requested content on the _first_ matched content.
+The `tag()`, `text()`, `@attribute` and `classes()` methods return the requested content on the _first_ matched content.
Consider the following HTML…
@@ -233,14 +233,14 @@ Consider the following HTML…
The following assertions are valid…
$("p").text() == "a"
- $("p").name() == "p"
+ $("p").tag() == "p"
$("p").@title == "a"
$("p").classes() == ["a", "para"]
To obtain information about all matched content, you use the Groovy _spread operator_
$("p")*.text() == ["a", "b", "c"]
- $("p")*.name() == ["p", "p", "p"]
+ $("p")*.tag() == ["p", "p", "p"]
$("p")*.@title == ["a", "b", "c"]
$("p")*.classes() == [["a", "para"], ["b", "para"], ["c", "para"]]
Please sign in to comment.
Something went wrong with that request. Please try again.