Can not click on elements inside absolutely positioned elements in Chrome.
The following Java test reproduces this issue:
public class Issue2452 {
public static void main(String[] args) throws Exception {
try {
String driverPath = "/<path>/chromedriver";
System.setProperty("webdriver.chrome.driver", driverPath);
System.setProperty("webdriver.chrome.logfile", "/<>path/ Issue2452 .log");
System.setProperty("webdriver.chrome.verboseLogging", "true");
Map<String, Object> mobileEmulation = new HashMap<>();
mobileEmulation.put("deviceName", "iPhone 8");
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setExperimentalOption("mobileEmulation", mobileEmulation);
ChromeDriver driver = new ChromeDriver(chromeOptions);
driver.get("https://www.shopstyleqa.com/");
Thread.sleep(2000);
WebElement el = driver.findElement(By.tagName("ss-button"));
el.click();
Thread.sleep(2000);
el = driver.findElement(By.tagName("ss-auth-form"));
driver.quit();
} catch (Exception e) {
System.out.println("!!! Exception !!!");
System.out.println(e);
}
}
}
Test fails on the following exception:
...
!!! Exception !!!
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"tag name","selector":"ss-auth-form"}
(Session info: chrome=67.0.3396.99
...
We hit this bug after r545955 was committed.
ChromeDriver bug https://bugs.chromium.org/p/chromedriver/issues/detail?id=2452 was opened to track this issue.
Our ChromeDriver tests use Selenium WebDriver libraries which you can download from https://www.seleniumhq.org/download/
Comment 1 by khachatryan@chromium.org
, Aug 17