Skip to content
New issue

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

driver.findElement() and element.findElement() must throw NoSuchElementException if element is not found. #101

Open
BorisOsipov opened this issue Nov 11, 2024 · 0 comments · May be fixed by #108
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@BorisOsipov
Copy link

    @Test
    public void notExistShouldThrowNoSuchElementException() {
        var driver = new PlaywrightiumDriver();
        final String url = "https://testpages.eviltester.com/styled/basic-html-form-test.html";
        driver.get(url);
        WebElement element = driver.findElement(By.name("#not-existing"));
    }

This test must fail, but it passes.

@asolntsev asolntsev added bug Something isn't working help wanted Extra attention is needed labels Nov 11, 2024
BorisOsipov added a commit to BorisOsipov/playwrightium that referenced this issue Nov 13, 2024
…NoSuchElementException if element is not found.
BorisOsipov added a commit to BorisOsipov/playwrightium that referenced this issue Nov 14, 2024
…InvalidSelectorException if selector incorrect
BorisOsipov added a commit to BorisOsipov/playwrightium that referenced this issue Nov 14, 2024
…InvalidSelectorException if selector incorrect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
2 participants