Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

Conversation

@grandvizier
Copy link
Contributor

Both the Firefox and Chrome driver accept the /buttondown call with no post data. With Phantom I was getting this error message:

Phantom failed: [ERROR - 2013-08-29T18:21:21.612Z] RouterReqHand - _handle - Thrown => {
"message": "'undefined' is not an object (evaluating 'req.post.length')",
"line": 702,
"sourceId": 146917728,
"sourceURL": ":/ghostdriver/request_handlers/session_request_handler.js",
"stack": "TypeError: 'undefined' is not an object (evaluating 'req.post.length')\n at :/ghostdriver/request_handlers/session_request_handler.js:702\n at :/ghostdriver/request_handlers/session_request_handler.js:164\n at :/ghostdriver/request_handlers/request_handler.js:61\n at :/ghostdriver/request_handlers/router_request_handler.js:82",
"stackArray": [
{
"sourceURL": ":/ghostdriver/request_handlers/session_request_handler.js",
"line": 702
},
{
"sourceURL": ":/ghostdriver/request_handlers/session_request_handler.js",
"line": 164
},
{
"sourceURL": ":/ghostdriver/request_handlers/request_handler.js",
"line": 61
},
{
"sourceURL": ":/ghostdriver/request_handlers/router_request_handler.js",
"line": 82
}
]
}

** NOTE: I might be wrong, but it seems like the only post data that seems relevant to _postMouseClickCommand() is which mouse button to click, not the "Element ID or an X-Y Offset" as the comments in the code suggest.

detro added a commit that referenced this pull request Sep 2, 2013
click events can work off existing mouse locations - fix a bug when no post data is sent
@detro detro merged commit 66c0e81 into detro:master Sep 2, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants