mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 963162 - Add WebDriver compatible getWindowHandle alias. r=dburns
getCurrentWindowHandle and getWindow are both aliases to this command now.
This commit is contained in:
parent
a66ac9e197
commit
aea63ad964
@ -781,7 +781,7 @@ class Marionette(object):
|
||||
|
||||
"""
|
||||
|
||||
self.window = self._send_message("getCurrentWindowHandle", "value")
|
||||
self.window = self._send_message("getWindowHandle", "value")
|
||||
return self.window
|
||||
|
||||
@property
|
||||
|
@ -1193,7 +1193,7 @@ MarionetteServerConnection.prototype = {
|
||||
*
|
||||
* @return unique window handle (string)
|
||||
*/
|
||||
getCurrentWindowHandle: function MDA_getCurrentWindowHandle() {
|
||||
getWindowHandle: function MDA_getWindowHandle() {
|
||||
this.command_id = this.getCommandId();
|
||||
for (let i in this.browsers) {
|
||||
if (this.curBrowser == this.browsers[i]) {
|
||||
@ -2441,8 +2441,9 @@ MarionetteServerConnection.prototype.requestTypes = {
|
||||
"goBack": MarionetteServerConnection.prototype.goBack,
|
||||
"goForward": MarionetteServerConnection.prototype.goForward,
|
||||
"refresh": MarionetteServerConnection.prototype.refresh,
|
||||
"getCurrentWindowHandle": MarionetteServerConnection.prototype.getCurrentWindowHandle,
|
||||
"getWindow": MarionetteServerConnection.prototype.getCurrentWindowHandle, // deprecated
|
||||
"getWindowHandle": MarionetteServerConnection.prototype.getWindowHandle,
|
||||
"getCurrentWindowHandle": MarionetteServerConnection.prototype.getWindowHandle, // Selenium 2 compat
|
||||
"getWindow": MarionetteServerConnection.prototype.getWindowHandle, // deprecated
|
||||
"getCurrentWindowHandles": MarionetteServerConnection.prototype.getWindowHandles,
|
||||
"getWindows": MarionetteServerConnection.prototype.getWindowHandles, // deprecated
|
||||
"getActiveFrame": MarionetteServerConnection.prototype.getActiveFrame,
|
||||
|
Loading…
Reference in New Issue
Block a user