New issue
Advanced search Search tips

Issue 875311 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Can not click on elements inside absolutely positioned elements in Chrome

Project Member Reported by khachatryan@chromium.org, Aug 17

Issue description

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/

 
Labels: -Pri-2 Pri-1
Labels: M-70

Sign in to add a comment