File tree 3 files changed +5
-5
lines changed
client/src/org/openqa/selenium/remote/locators
server/src/org/openqa/selenium/grid/node/locators
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 25
25
* (essentially {@code {"using": "locator-name", "value": "arguments"}})
26
26
* and calls it in the context of the server.
27
27
*/
28
- public abstract class CustomLocator {
28
+ public interface CustomLocator {
29
29
30
30
/**
31
31
* @return The locator name, which is the value of the {@code using}
32
32
* property of the JSON payload.
33
33
*/
34
- public abstract String getLocatorName ();
34
+ String getLocatorName ();
35
35
36
- public abstract By createBy (Object usingParameter );
36
+ By createBy (Object usingParameter );
37
37
}
Original file line number Diff line number Diff line change 33
33
*/
34
34
35
35
@ AutoService (CustomLocator .class )
36
- public class ById extends CustomLocator {
36
+ public class ById implements CustomLocator {
37
37
@ Override
38
38
public String getLocatorName () {
39
39
return "id" ;
Original file line number Diff line number Diff line change 29
29
*/
30
30
31
31
@ AutoService (CustomLocator .class )
32
- public class ByName extends CustomLocator {
32
+ public class ByName implements CustomLocator {
33
33
@ Override
34
34
public String getLocatorName () {
35
35
return "name" ;
You can’t perform that action at this time.
0 commit comments