Skip to content

Commit 81a234e

Browse files
committed
required
1 parent b26630d commit 81a234e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dotnet/test/common/ElementAttributeTest.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public void ShouldReturnNullForNonPresentBooleanAttributes()
363363
{
364364
driver.Url = booleanAttributes;
365365
IWebElement element1 = driver.FindElement(By.Id("working"));
366-
Assert.That(element1.GetAttribute("required"), Is.Null);
366+
Assert.That(element1.GetDomAttribute("required"), Is.Null);
367367
IWebElement element2 = driver.FindElement(By.Id("wallace"));
368368
Assert.That(element2.GetAttribute("nowrap"), Is.Null);
369369
}
@@ -373,13 +373,13 @@ public void ShouldReturnTrueForPresentBooleanAttributes()
373373
{
374374
driver.Url = booleanAttributes;
375375
IWebElement element1 = driver.FindElement(By.Id("emailRequired"));
376-
Assert.That(element1.GetAttribute("required"), Is.EqualTo("true"));
376+
Assert.That(element1.GetDomAttribute("required"), Is.EqualTo("true"));
377377
IWebElement element2 = driver.FindElement(By.Id("emptyTextAreaRequired"));
378-
Assert.That(element2.GetAttribute("required"), Is.EqualTo("true"));
378+
Assert.That(element2.GetDomAttribute("required"), Is.EqualTo("true"));
379379
IWebElement element3 = driver.FindElement(By.Id("inputRequired"));
380-
Assert.That(element3.GetAttribute("required"), Is.EqualTo("true"));
380+
Assert.That(element3.GetDomAttribute("required"), Is.EqualTo("true"));
381381
IWebElement element4 = driver.FindElement(By.Id("textAreaRequired"));
382-
Assert.That(element4.GetAttribute("required"), Is.EqualTo("true"));
382+
Assert.That(element4.GetDomAttribute("required"), Is.EqualTo("true"));
383383
IWebElement element5 = driver.FindElement(By.Id("unwrappable"));
384384
Assert.That(element5.GetAttribute("nowrap"), Is.EqualTo("true"));
385385
}

0 commit comments

Comments
 (0)