Skip to content

Commit a08fa1e

Browse files
committed
[bazel] Fix the build
1 parent 6a3f867 commit a08fa1e

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

java/client/src/org/openqa/selenium/support/locators/RelativeLocator.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,6 @@ public static RelativeBy with(By by) {
100100
return new RelativeBy(by);
101101
}
102102

103-
public static By tagName(String tagName) {
104-
Require.nonNull("Tag name to look for", tagName);
105-
return By.tagName(tagName);
106-
}
107-
108-
public static By xpath(String xpathExpression) {
109-
Require.nonNull("xpath to look for", xpathExpression);
110-
return By.xpath(xpathExpression);
111-
}
112-
113-
public static By cssSelector(String cssSelectorExpression) {
114-
Require.nonNull("css selector to look for", cssSelectorExpression);
115-
return By.cssSelector(cssSelectorExpression);
116-
}
117-
118103
public static class RelativeBy extends By implements By.Remotable {
119104
private final Object root;
120105
private final List<Map<String, Object>> filters;

java/client/test/org/openqa/selenium/support/locators/RelativeLocatorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
import java.util.List;
2626
import java.util.stream.Collectors;
2727

28-
import static java.util.Collections.singletonList;
2928
import static org.assertj.core.api.Assertions.assertThat;
30-
import static org.openqa.selenium.support.locators.RelativeLocator.withTagName;
31-
import static org.openqa.selenium.support.locators.RelativeLocator.withXpath;
32-
import static org.openqa.selenium.support.locators.RelativeLocator.withCssSelector;
29+
import static org.openqa.selenium.By.cssSelector;
30+
import static org.openqa.selenium.By.tagName;
31+
import static org.openqa.selenium.By.xpath;
32+
import static org.openqa.selenium.support.locators.RelativeLocator.with;
3333

3434

3535
public class RelativeLocatorTest extends JUnit4TestBase {

0 commit comments

Comments
 (0)