Skip to content

Commit 14e859e

Browse files
committed
Fix elementStateProvider, removed web-specific attribute check from it.
1 parent ff55c4a commit 14e859e

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

Aquality.Selenium.Core/src/Aquality.Selenium.Core/Elements/Constants.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

Aquality.Selenium.Core/src/Aquality.Selenium.Core/Elements/ElementStateProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ public bool WaitForNotEnabled(TimeSpan? timeout = null)
6464
return IsElementInDesiredState(element => !IsElementEnabled(element), "NOT ENABLED", timeout);
6565
}
6666

67-
private bool IsElementEnabled(IWebElement element)
67+
protected virtual bool IsElementEnabled(IWebElement element)
6868
{
69-
return element.Enabled && !element.GetAttribute(Attributes.Class).Contains(PopularClassNames.Disabled);
69+
return element.Enabled;
7070
}
7171

7272
private bool IsElementInDesiredState(Func<IWebElement, bool> elementStateCondition, string state, TimeSpan? timeout)

0 commit comments

Comments
 (0)