Skip to content

Commit 2111689

Browse files
committed
[java] Improving getText javadoc. Fixes SeleniumHQ#5936
1 parent 361e9b3 commit 2111689

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

java/client/src/org/openqa/selenium/WebElement.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,11 @@ public interface WebElement extends SearchContext, TakesScreenshot {
141141
boolean isEnabled();
142142

143143
/**
144-
* Get the visible (i.e. not hidden by CSS) innerText of this element, including sub-elements,
145-
* without any leading or trailing whitespace.
144+
* Get the visible (i.e. not hidden by CSS) text of this element, including sub-elements.
146145
*
147-
* @return The innerText of this element.
146+
* @see <a href="https://w3c.github.io/webdriver/#get-element-text">"Get Element Text" section
147+
* in W3C WebDriver Specification</a>
148+
* @return The visible text of this element.
148149
*/
149150
String getText();
150151

0 commit comments

Comments
 (0)