| Summary: | There is nothing happens after click() on elements inside of <footer> html using Selenium WebDriver. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Kate Sym <symonovakateryna> | ||||
| Component: | WebDriver | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED DUPLICATE | ||||||
| Severity: | Major | CC: | bburg, f-gu | ||||
| Priority: | P2 | ||||||
| Version: | Safari 13 | ||||||
| Hardware: | Mac | ||||||
| OS: | macOS 10.15 | ||||||
| Attachments: |
|
||||||
|
Description
Kate Sym
2020-05-29 05:29:33 PDT
This occurs when the element is located off-screen when the page loads; click() works fine for elements that are already on screen but if it requires scrolling, it will scroll but not click.
Here's a full example demonstrating this:
public static void main(String[] args) {
WebDriver driver = new SafariDriver();
driver.manage().window().fullscreen();
driver.get("https://github.com/SeleniumHQ/selenium/issues?q=safari");
driver.findElement(By.cssSelector("a[data-ga-click='Footer, go to help, text:help']")).click();
System.out.println("Expected: 'https://help.github.com/'\nActual : '" + driver.getCurrentUrl() + "'");
driver.close();
}
(In reply to f-gu from comment #1) > This occurs when the element is located off-screen when the page loads; > click() works fine for elements that are already on screen but if it > requires scrolling, it will scroll but not click. This sounds exactly like a bug addressed in <https://bugs.webkit.org/show_bug.cgi?id=208232>. Please try using Safari Technology Preview 109+, Safari 14 betas, or the macOS Big Sur beta to verify it's been fixed. *** This bug has been marked as a duplicate of bug 208232 *** |