Skip to content

Commit b5be6f2

Browse files
committed
textContent
1 parent c4d2cde commit b5be6f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/test/common/ElementAttributeTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public void ShouldReturnHiddenTextForTextContentAttribute()
258258
driver.Url = simpleTestPage;
259259

260260
IWebElement element = driver.FindElement(By.Id("hiddenline"));
261-
string textContent = element.GetAttribute("textContent");
261+
string textContent = element.GetDomProperty("textContent");
262262

263263
Assert.That(textContent, Is.EqualTo("A hidden line of text"));
264264
}

0 commit comments

Comments
 (0)