Skip to content

Commit 27e623c

Browse files
committed
src
1 parent bcde363 commit 27e623c

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
@@ -42,7 +42,7 @@ public void ShouldReturnNullWhenGettingSrcAttributeOfInvalidImgTag()
4242
{
4343
driver.Url = simpleTestPage;
4444
IWebElement img = driver.FindElement(By.Id("invalidImgTag"));
45-
string attribute = img.GetAttribute("src");
45+
string attribute = img.GetDomProperty("src");
4646
Assert.That(attribute, Is.Null);
4747
}
4848

@@ -51,7 +51,7 @@ public void ShouldReturnAnAbsoluteUrlWhenGettingSrcAttributeOfAValidImgTag()
5151
{
5252
driver.Url = simpleTestPage;
5353
IWebElement img = driver.FindElement(By.Id("validImgTag"));
54-
string attribute = img.GetAttribute("src");
54+
string attribute = img.GetDomProperty("src");
5555
Assert.That(attribute, Is.EqualTo(EnvironmentManager.Instance.UrlBuilder.WhereIs("icon.gif")));
5656
}
5757

0 commit comments

Comments
 (0)