ericmckean / chromedriver

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

Clicking <A> element with a block item inside it - fails on Android phone but not tablet emulator #1022

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
ChromeDriver 2.12.301324 (de8ab311bc9374d0ade71f7c167bad61848c7c48)
Chrome for Android 39.0.2171.59
Android Emulator Api level 16+ (jellybean+)

This test fails on phone but not tablet emulators:
https://github.com/SeleniumHQ/selenium/blob/2f97830b7ace1b86b788b685d6b1bcaa30bd
b637/java/client/test/org/openqa/selenium/ClickTest.java#L234

Sending 'click' webdriver command to the following A element (found simply by 
ID) does not result in navigating to xhtmlTest.html :

<a href="xhtmlTest.html" id="embeddedBlock"><span style="display: block;">I 
have a span</span><div>And a div</div><span>And another span</span></a></p>

Screenshot of what the page looks like is attached.

This is chromedriver.log (chromedriver --verbose):

[8.773][INFO]: COMMAND FindElement {
   "using": "id",
   "value": "embeddedBlock"
}
[8.774][DEBUG]: DEVTOOLS EVENT Page.frameStoppedLoading {
   "frameId": "2079.1"
}
[8.774][INFO]: Waiting for pending navigations...
[8.774][INFO]: Done waiting for pending navigations
[8.775][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=13) {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[8.903][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=13) {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": {
            "ELEMENT": "0.6810923176817596-1"
         }
      }
   },
   "wasThrown": false
}
[8.903][INFO]: Waiting for pending navigations...
[8.903][INFO]: Done waiting for pending navigations
[8.903][INFO]: RESPONSE FindElement {
   "ELEMENT": "0.6810923176817596-1"
}
[8.913][INFO]: COMMAND ClickElement {
   "id": "0.6810923176817596-1"
}
[8.914][INFO]: Waiting for pending navigations...
[8.914][INFO]: Done waiting for pending navigations
[8.914][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=14) {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[8.921][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=14) {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": "a"
      }
   },
   "wasThrown": false
}
[8.921][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=15) {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[8.926][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=15) {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": "a"
      }
   },
   "wasThrown": false
}
[8.927][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=16) {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[8.949][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=16) {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": true
      }
   },
   "wasThrown": false
}
[8.949][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=17) {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[8.955][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=17) {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": {
            "height": 1,
            "left": 0,
            "top": -0.4375,
            "width": 0
         }
      }
   },
   "wasThrown": false
}
[8.956][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=18) {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[8.971][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=18) {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": {
            "ceil": {

            },
            "clone": {

            },
            "floor": {

            },
            "round": {

            },
            "scale": {

            },
            "toString": {

            },
            "translate": {

            },
            "x": 8,
            "y": 485.4375
         }
      }
   },
   "wasThrown": false
}
[8.972][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=19) {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[8.987][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=19) {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": {
            "clickable": true,
            "message": "Element's descendant would receive the click. Consider clicking the descendant instead. Descendant: \u003Cspan style=\"display: block;\">...\u003C/span>"
         }
      }
   },
   "wasThrown": false
}
[8.987][DEBUG]: DEVTOOLS COMMAND Input.dispatchMouseEvent (id=20) {
   "button": "none",
   "clickCount": 0,
   "modifiers": 0,
   "type": "mouseMoved",
   "x": 8,
   "y": 485
}
[8.990][DEBUG]: DEVTOOLS RESPONSE Input.dispatchMouseEvent (id=20) {

}
[8.990][DEBUG]: DEVTOOLS COMMAND Input.dispatchMouseEvent (id=21) {
   "button": "left",
   "clickCount": 1,
   "modifiers": 0,
   "type": "mousePressed",
   "x": 8,
   "y": 485
}
[8.994][DEBUG]: DEVTOOLS RESPONSE Input.dispatchMouseEvent (id=21) {

}
[8.994][DEBUG]: DEVTOOLS COMMAND Input.dispatchMouseEvent (id=22) {
   "button": "left",
   "clickCount": 1,
   "modifiers": 0,
   "type": "mouseReleased",
   "x": 8,
   "y": 485
}
[9.005][DEBUG]: DEVTOOLS RESPONSE Input.dispatchMouseEvent (id=22) {

}
[9.005][INFO]: Waiting for pending navigations...
[9.005][INFO]: Done waiting for pending navigations
[9.006][INFO]: RESPONSE ClickElement
[9.017][INFO]: COMMAND GetTitle {

}
[9.017][INFO]: Waiting for pending navigations...
[9.017][INFO]: Done waiting for pending navigations
[9.018][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=23) {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[9.025][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=23) {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": "clicks"
      }
   },
   "wasThrown": false
}
[9.025][INFO]: Waiting for pending navigations...
[9.025][INFO]: Done waiting for pending navigations
[9.025][INFO]: RESPONSE GetTitle "clicks"

Original issue reported on code.google.com by vlotoshn...@gmail.com on 24 Jan 2015 at 3:22

Attachments:

GoogleCodeExporter commented 9 years ago

do you have stand alone program that we can run?

Original comment by andrewch...@chromium.org on 26 Jan 2015 at 11:44

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Tried on both Nexus 4 and Nexus 7 . Issue is reproducible on Nexus 4

Original comment by gmanikp...@chromium.org on 3 Apr 2015 at 10:59