We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if (!isset($results['value']['ELEMENT'])) throw new SeleniumNoSuchElementException();
return new WebElement($this, $results['value']['ELEMENT']);#just showing this line for reference
The text was updated successfully, but these errors were encountered:
Ran into the same issue, but instead used
return isset($results['value']['ELEMENT']) ? new WebElement($this, $results['value']['ELEMENT']) : null;
The function is be triggered by waitForElementUntilIsPresent() when used By::id(), so throwing a exception isn't the best solution imo.
Sorry, something went wrong.
No branches or pull requests
added this line
if (!isset($results['value']['ELEMENT'])) throw new SeleniumNoSuchElementException();
I dunno if thats the best error to throw, but its better than leaving it completely unhandled and getting notices.
return new WebElement($this, $results['value']['ELEMENT']);#just showing this line for reference
The text was updated successfully, but these errors were encountered: