Skip to content

Commit 5cc33b8

Browse files
committed
Fixing logic error in .NET support library's RetryingElementLocatorFactory
Fixes issue #8595.
1 parent b4fcbe4 commit 5cc33b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: dotnet/src/support/PageObjects/RetryingElementLocatorFactory.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public ReadOnlyCollection<IWebElement> LocateElements(ISearchContext searchConte
140140
collection.AddRange(list);
141141
}
142142

143-
timeoutReached = collection.Count == 0 && DateTime.Now > endTime;
143+
timeoutReached = collection.Count != 0 || DateTime.Now > endTime;
144144
if (!timeoutReached)
145145
{
146146
Thread.Sleep(this.pollingInterval);

0 commit comments

Comments
 (0)