Skip to content

Commit d18fcc7

Browse files
sevasevajleyba
authored andcommitted
WebDriverJS compatibility changes for Selenium 2.41
Signed-off-by: Jason Leyba <jmleyba@gmail.com>
1 parent b1d0842 commit d18fcc7

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Diff for: javascript/webdriver/command.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ webdriver.CommandName = {
199199
// optional for these commands.
200200
CLICK: 'mouseClick',
201201
DOUBLE_CLICK: 'mouseDoubleClick',
202-
MOUSE_DOWN: 'mouseDown',
203-
MOUSE_UP: 'mouseUp',
204-
MOVE_TO: 'mouseMove',
202+
MOUSE_DOWN: 'mouseButtonDown',
203+
MOUSE_UP: 'mouseButtonUp',
204+
MOVE_TO: 'mouseMoveTo',
205205
SEND_KEYS_TO_ACTIVE_ELEMENT: 'sendKeysToActiveElement',
206206

207207
// These belong to the Advanced Touch API

Diff for: javascript/webdriver/firefoxdomexecutor.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,9 @@ webdriver.FirefoxDomExecutor.prototype.execute = function(command, callback) {
113113
command.getName() != webdriver.CommandName.SWITCH_TO_FRAME) {
114114
parameters['id'] = parameters['id']['ELEMENT'];
115115
}
116-
117116
var json = goog.json.serialize({
118117
'name': command.getName(),
119-
'sessionId': {
120-
'value': parameters['sessionId']
121-
},
118+
'sessionId': parameters['sessionId'],
122119
'parameters': parameters
123120
});
124121
this.docElement_.setAttribute(

0 commit comments

Comments
 (0)