Skip to content

Commit b26630d

Browse files
committed
readonly
1 parent 6fc9b70 commit b26630d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/test/common/ElementAttributeTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ public void ShouldTreatReadonlyAsAValue()
242242
driver.Url = formsPage;
243243

244244
IWebElement element = driver.FindElement(By.Name("readonly"));
245-
string readOnlyAttribute = element.GetAttribute("readonly");
245+
string readOnlyAttribute = element.GetDomAttribute("readonly");
246246

247247
Assert.That(readOnlyAttribute, Is.Not.Null);
248248

249249
IWebElement textInput = driver.FindElement(By.Name("x"));
250-
string notReadOnly = textInput.GetAttribute("readonly");
250+
string notReadOnly = textInput.GetDomAttribute("readonly");
251251

252252
Assert.That(notReadOnly, Is.Null);
253253
}

0 commit comments

Comments
 (0)