File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1255,7 +1255,7 @@ protected function findFields($selector): array
1255
1255
}
1256
1256
1257
1257
if (is_array ($ selector ) || ($ selector instanceof WebDriverBy)) {
1258
- $ fields = $ this ->match ($ this ->webDriver , $ selector );
1258
+ $ fields = $ this ->match ($ this ->getBaseElement () , $ selector );
1259
1259
1260
1260
if (empty ($ fields )) {
1261
1261
throw new ElementNotFound ($ selector );
@@ -1272,20 +1272,20 @@ protected function findFields($selector): array
1272
1272
".//label[contains(normalize-space(string(.)), {$ locator })]//.//*[self::input | self::textarea | self::select][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')] "
1273
1273
// @codingStandardsIgnoreEnd
1274
1274
);
1275
- $ fields = $ this ->webDriver ->findElements (WebDriverBy::xpath ($ xpath ));
1275
+ $ fields = $ this ->getBaseElement () ->findElements (WebDriverBy::xpath ($ xpath ));
1276
1276
if (!empty ($ fields )) {
1277
1277
return $ fields ;
1278
1278
}
1279
1279
1280
1280
// by name
1281
1281
$ xpath = ".//*[self::input | self::textarea | self::select][@name = {$ locator }] " ;
1282
- $ fields = $ this ->webDriver ->findElements (WebDriverBy::xpath ($ xpath ));
1282
+ $ fields = $ this ->getBaseElement () ->findElements (WebDriverBy::xpath ($ xpath ));
1283
1283
if (!empty ($ fields )) {
1284
1284
return $ fields ;
1285
1285
}
1286
1286
1287
1287
// try to match by CSS or XPath
1288
- $ fields = $ this ->match ($ this ->webDriver , $ selector , false );
1288
+ $ fields = $ this ->match ($ this ->getBaseElement () , $ selector , false );
1289
1289
if (!empty ($ fields )) {
1290
1290
return $ fields ;
1291
1291
}
You can’t perform that action at this time.
0 commit comments