File tree Expand file tree Collapse file tree 2 files changed +4
-19
lines changed
src/org/openqa/selenium/support/locators
test/org/openqa/selenium/support/locators Expand file tree Collapse file tree 2 files changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -100,21 +100,6 @@ public static RelativeBy with(By by) {
100
100
return new RelativeBy (by );
101
101
}
102
102
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
-
118
103
public static class RelativeBy extends By implements By .Remotable {
119
104
private final Object root ;
120
105
private final List <Map <String , Object >> filters ;
Original file line number Diff line number Diff line change 25
25
import java .util .List ;
26
26
import java .util .stream .Collectors ;
27
27
28
- import static java .util .Collections .singletonList ;
29
28
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 ;
33
33
34
34
35
35
public class RelativeLocatorTest extends JUnit4TestBase {
You can’t perform that action at this time.
0 commit comments