We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9184bf commit d1c8184Copy full SHA for d1c8184
src/Util/Locator.php
@@ -338,11 +338,9 @@ public static function humanReadableString(WebDriverBy|array|string $selector):
338
$locator = $selector[$type];
339
return "{$type} '{$locator}'";
340
}
341
- if (class_exists('\Facebook\WebDriver\WebDriverBy') && $selector instanceof WebDriverBy) {
342
- $type = $selector->getMechanism();
343
- $locator = $selector->getValue();
344
- return "{$type} '{$locator}'";
345
- }
346
- throw new InvalidArgumentException("Unrecognized selector");
+
+ $type = $selector->getMechanism();
+ $locator = $selector->getValue();
+ return "{$type} '{$locator}'";
347
348
0 commit comments