Skip to content

Commit

Permalink
Fix broken RelativeLocatorTest (#8424)
Browse files Browse the repository at this point in the history
Co-authored-by: David Burns <[email protected]>
  • Loading branch information
bongosway and AutomatedTester authored Jun 16, 2020
1 parent 6a73b28 commit e86a183
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ private RelativeBy(Object rootLocator) {
}

private RelativeBy(Object rootLocator, List<Map<String, Object>> filters) {
this.root = Require.nonNull("Root locator", rootLocator);

if (rootLocator instanceof By) {
assertLocatorCanBeSerialized(rootLocator);
rootLocator = asAtomLocatorParameter(rootLocator);
Expand All @@ -86,6 +84,7 @@ private RelativeBy(Object rootLocator, List<Map<String, Object>> filters) {
throw new IllegalArgumentException("Root locator must be an element or a locator: " + rootLocator);
}

this.root = Require.nonNull("Root locator", rootLocator);
this.filters = ImmutableList.copyOf(Require.nonNull("Filters", filters));
}

Expand Down

0 comments on commit e86a183

Please sign in to comment.