diff --git a/dotnet/test/common/ElementAttributeTest.cs b/dotnet/test/common/ElementAttributeTest.cs index a308a72c71af6..452324b7c5e9a 100644 --- a/dotnet/test/common/ElementAttributeTest.cs +++ b/dotnet/test/common/ElementAttributeTest.cs @@ -429,7 +429,7 @@ public void GetAttributeOfUserDefinedProperty() { driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIs("userDefinedProperty.html"); IWebElement element = driver.FindElement(By.Id("d")); - Assert.That(element.GetAttribute("dynamicProperty"), Is.EqualTo("sampleValue")); + Assert.That(element.GetDomProperty("dynamicProperty"), Is.EqualTo("sampleValue")); } [Test]