Skip to content

Commit

Permalink
WebDriverJS compatibility changes for Selenium 2.41
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Leyba <jmleyba@gmail.com>
  • Loading branch information
sevaseva authored and jleyba committed Apr 30, 2014
1 parent b1d0842 commit d18fcc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions javascript/webdriver/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ webdriver.CommandName = {
// optional for these commands.
CLICK: 'mouseClick',
DOUBLE_CLICK: 'mouseDoubleClick',
MOUSE_DOWN: 'mouseDown',
MOUSE_UP: 'mouseUp',
MOVE_TO: 'mouseMove',
MOUSE_DOWN: 'mouseButtonDown',
MOUSE_UP: 'mouseButtonUp',
MOVE_TO: 'mouseMoveTo',
SEND_KEYS_TO_ACTIVE_ELEMENT: 'sendKeysToActiveElement',

// These belong to the Advanced Touch API
Expand Down
5 changes: 1 addition & 4 deletions javascript/webdriver/firefoxdomexecutor.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,9 @@ webdriver.FirefoxDomExecutor.prototype.execute = function(command, callback) {
command.getName() != webdriver.CommandName.SWITCH_TO_FRAME) {
parameters['id'] = parameters['id']['ELEMENT'];
}

var json = goog.json.serialize({
'name': command.getName(),
'sessionId': {
'value': parameters['sessionId']
},
'sessionId': parameters['sessionId'],
'parameters': parameters
});
this.docElement_.setAttribute(
Expand Down

0 comments on commit d18fcc7

Please sign in to comment.