ericmckean / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

Mobile Emulation : Chromedriver update from 2.11 to 2.12 has broken click functionality in sencha apps #993

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Issue Description:
When using mobile emulation on our sencha app, after updating to chromedriver 
2.12 I cannot click on elements. There is no exception thrown.

Steps to reproduce (if relevant, you MUST provide a simplified html page or
link to public site):
- This can be reproduced on the example sites on the sencha dev pages, this 
will do the job - 
"http://dev.sencha.com/deploy/touch/examples/production/kitchensink"

@Test
    public void testChromeEmulationKitchenSink() throws Exception {

        String url = startStandaloneServer();

        System.setProperty(CHROMEDRIVER_ENV_VARIABLE, CHROMEDRIVER_DEFAULT_PATH);
        System.setProperty("webdriver.chrome.logfile", "c:\\temp\\chromedriver2.log");

        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities = DesiredCapabilities.chrome();

        Map<String, Object> chromeOptions = new HashMap<String, Object>();
        List<String> argList = new ArrayList<String>();

        Map<String, String> mobileEmulation = new HashMap<String, String>();
        mobileEmulation.put(ChromeEmulationType.DEVICE_NAME_DICT_KEY, "Samsung Galaxy S4");
        chromeOptions.put(ChromeEmulationType.MOBILE_EMULATION_EXP_PREFS_KEY, mobileEmulation);
        chromeOptions.put(ChromeEmulationType.MOBILE_EMULATION_EXP_PREFS_KEY, mobileEmulation);
        capabilities.setCapability(org.openqa.selenium.chrome.ChromeOptions.CAPABILITY, chromeOptions);

        RemoteWebDriver driver = null;

        try {

            driver = new RemoteWebDriver(new URL(url), capabilities);

            driver.get("http://dev.sencha.com/deploy/touch/examples/production/kitchensink");

            System.out.println(driver.findElementById("ext-element-23").getText());
            driver.findElementById("ext-element-23").click();

            Thread.sleep(1);

        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            driver.quit();
            seleniumServer.stop();

        }

    }

-----Other helpful tips:
Attach your chromedriver log with verbose logging enabled (see
http://goo.gl/5Sx8mC for how to do this).
Sorry, it wont seem to allow me attach the log from the above test.
I can correctly .getText(), .isDisplayed() etc but clicking is a problem. the 
same test above works fine on Chromedriver 2.11

Original issue reported on code.google.com by darra.gr...@gmail.com on 8 Dec 2014 at 11:21

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago
Issue is reproducible with latest chromedriver 2.14.313457.

Original comment by ssudunag...@chromium.org on 12 Mar 2015 at 7:22