Skip to content

Commit cb6e9db

Browse files
committed
correct javascript remote client ui executor to use new promise based execute introduced by 0fa587
Fixes #1521
1 parent d1e9b27 commit cb6e9db

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

javascript/remote/ui/client.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ remote.ui.Client.prototype.getSessionContainer = function() {
172172
*/
173173
remote.ui.Client.prototype.execute_ = function(command) {
174174
this.banner_.setVisible(false);
175-
var fn = goog.bind(this.executor_.execute, this.executor_, command);
176-
return webdriver.promise.checkedNodeCall(fn).
175+
return this.executor_.execute(command).
177176
then(bot.response.checkResponse);
178177
};
179178

@@ -322,7 +321,7 @@ remote.ui.Client.prototype.onLoad_ = function(e) {
322321
remote.ui.Client.prototype.onScreenshot_ = function() {
323322
var session = this.sessionContainer_.getSelectedSession();
324323
if (!session) {
325-
goog.log.warning(this.log_,
324+
goog.log.warning(this.log_,
326325
'Cannot take screenshot; no session selected!');
327326
return;
328327
}

0 commit comments

Comments
 (0)