We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fc9b70 commit b26630dCopy full SHA for b26630d
dotnet/test/common/ElementAttributeTest.cs
@@ -242,12 +242,12 @@ public void ShouldTreatReadonlyAsAValue()
242
driver.Url = formsPage;
243
244
IWebElement element = driver.FindElement(By.Name("readonly"));
245
- string readOnlyAttribute = element.GetAttribute("readonly");
+ string readOnlyAttribute = element.GetDomAttribute("readonly");
246
247
Assert.That(readOnlyAttribute, Is.Not.Null);
248
249
IWebElement textInput = driver.FindElement(By.Name("x"));
250
- string notReadOnly = textInput.GetAttribute("readonly");
+ string notReadOnly = textInput.GetDomAttribute("readonly");
251
252
Assert.That(notReadOnly, Is.Null);
253
}
0 commit comments