Skip to content

Commit 85b9594

Browse files
committed
Fix the Equals method for locator list
1 parent ce0717d commit 85b9594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Boa.Constrictor.Selenium/Tasks/SwitchFrame.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public override void PerformAs(IActor actor, IWebDriver driver)
111111
/// <param name="obj">The other object.</param>
112112
public override bool Equals(object obj) =>
113113
obj is SwitchFrame frame &&
114-
Locators.Equals(frame.Locators) &&
114+
Locators.SequenceEqual(frame.Locators) &&
115115
StartFromCurrentLocation == frame.StartFromCurrentLocation &&
116116
UseDefaultContent == frame.UseDefaultContent;
117117

0 commit comments

Comments
 (0)