Skip to content

Commit 5d050fd

Browse files
committed
style
1 parent dcea810 commit 5d050fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dotnet/test/common/ElementAttributeTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void ShouldReturnEmptyAttributeValuesWhenPresentAndTheValueIsActuallyEmpt
7070
{
7171
driver.Url = simpleTestPage;
7272
IWebElement body = driver.FindElement(By.XPath("//body"));
73-
Assert.That(body.GetAttribute("style"), Is.Empty);
73+
Assert.That(body.GetDomAttribute("style"), Is.Empty);
7474
}
7575

7676
[Test]
@@ -275,7 +275,7 @@ public void ShouldGetNumericAtribute()
275275
public void CanReturnATextApproximationOfTheStyleAttribute()
276276
{
277277
driver.Url = javascriptPage;
278-
string style = driver.FindElement(By.Id("red-item")).GetAttribute("style");
278+
string style = driver.FindElement(By.Id("red-item")).GetDomAttribute("style");
279279

280280
Assert.That(style.ToLower(), Does.Contain("background-color"));
281281
}

dotnet/test/ie/IeSpecificTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public void ShouldPropagateSessionCookies()
209209
System.Threading.Thread.Sleep(2000);
210210
string startWindow = driver.CurrentWindowHandle;
211211
driver.SwitchTo().Window("cookiedestwindow");
212-
string bodyStyle = driver.FindElement(By.TagName("body")).GetAttribute("style");
212+
string bodyStyle = driver.FindElement(By.TagName("body")).GetDomAttribute("style");
213213
driver.Close();
214214
driver.SwitchTo().Window(startWindow);
215215
Assert.That(bodyStyle, Does.Contain("BACKGROUND-COLOR: #80ffff").Or.Contain("background-color: rgb(128, 255, 255)"));

0 commit comments

Comments
 (0)