Skip to content

Commit

Permalink
[bazel] Fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Mar 23, 2021
1 parent 6a3f867 commit a08fa1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,6 @@ public static RelativeBy with(By by) {
return new RelativeBy(by);
}

public static By tagName(String tagName) {
Require.nonNull("Tag name to look for", tagName);
return By.tagName(tagName);
}

public static By xpath(String xpathExpression) {
Require.nonNull("xpath to look for", xpathExpression);
return By.xpath(xpathExpression);
}

public static By cssSelector(String cssSelectorExpression) {
Require.nonNull("css selector to look for", cssSelectorExpression);
return By.cssSelector(cssSelectorExpression);
}

public static class RelativeBy extends By implements By.Remotable {
private final Object root;
private final List<Map<String, Object>> filters;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
import java.util.List;
import java.util.stream.Collectors;

import static java.util.Collections.singletonList;
import static org.assertj.core.api.Assertions.assertThat;
import static org.openqa.selenium.support.locators.RelativeLocator.withTagName;
import static org.openqa.selenium.support.locators.RelativeLocator.withXpath;
import static org.openqa.selenium.support.locators.RelativeLocator.withCssSelector;
import static org.openqa.selenium.By.cssSelector;
import static org.openqa.selenium.By.tagName;
import static org.openqa.selenium.By.xpath;
import static org.openqa.selenium.support.locators.RelativeLocator.with;


public class RelativeLocatorTest extends JUnit4TestBase {
Expand Down

0 comments on commit a08fa1e

Please sign in to comment.