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
When accessing a website with an anchor, CSS styles for a matching :target do not apply as expected.
Minimal test site:
<!DOCTYPE html> <html> <head> <style> .tab div { display: none; } .tab div:target { display: block; } </style> </head> <body> <div class="tab"> <a id="link" href="#anchor">Link</a> <div id="anchor"> <p>Content</p> </div> </div> </body> </html>
Minimal Java test code:
getWebDriver().get(TEST_URL); getWebDriver().findElement(By.id("link")).click(); System.out.println(getWebDriver().findElement(By.id("anchor")).isDisplayed()); getWebDriver().get(TEST_URL + "#anchor"); System.out.println(getWebDriver().findElement(By.id("anchor")).isDisplayed());
Result: Both times 'false' ist printed.
The text was updated successfully, but these errors were encountered:
Thanks for reporting, fixed in HtmlUnit.
HtmlUnit
Sorry, something went wrong.
asashour
No branches or pull requests
When accessing a website with an anchor, CSS styles for a matching :target do not apply as expected.
Minimal test site:
Minimal Java test code:
Result:
Both times 'false' ist printed.
The text was updated successfully, but these errors were encountered: