File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
java/client/src/org/openqa/selenium/support/locators Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ private RelativeBy(Object rootLocator) {
59
59
private RelativeBy (Object rootLocator , List <Map <String , Object >> filters ) {
60
60
if (rootLocator instanceof By ) {
61
61
assertLocatorCanBeSerialized (rootLocator );
62
- rootLocator = asAtomLocatorParameter (( By ) rootLocator );
62
+ rootLocator = asAtomLocatorParameter (rootLocator );
63
63
} else if (rootLocator instanceof Map ) {
64
64
if (((Map <?, ?>) rootLocator ).keySet ().size () != 1 ) {
65
65
throw new IllegalArgumentException (
@@ -158,7 +158,6 @@ public List<WebElement> findElements(SearchContext context) {
158
158
159
159
@ SuppressWarnings ("unchecked" )
160
160
List <WebElement > elements = (List <WebElement >) js .executeScript (FIND_ELEMENTS , this .toJson ());
161
- System .out .println (elements );
162
161
return elements ;
163
162
}
164
163
@@ -215,7 +214,7 @@ private static Object asAtomLocatorParameter(Object object) {
215
214
throw new IllegalArgumentException ("Expected locator to be either an element or a By: " + object );
216
215
}
217
216
218
- assertLocatorCanBeSerialized (( By ) object );
217
+ assertLocatorCanBeSerialized (object );
219
218
220
219
Map <String , Object > raw = JSON .toType (JSON .toJson (object ), MAP_TYPE );
221
220
You can’t perform that action at this time.
0 commit comments