marionette-js-logger
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -425,6 +425,8 @@ // remember this is invoked on the device not | ||
function client(device, port, callback) { | ||
// required because marionette bails when there is no callback right now. | ||
var noop = function() {}; | ||
// invoke function in marionette | ||
var string = '(' + remoteScript.toString() + '(' + port + '));'; | ||
device.setContext('chrome'). | ||
executeScript(string). | ||
device.setContext('chrome', noop). | ||
executeScript(string, noop). | ||
setContext('content', callback); | ||
@@ -431,0 +433,0 @@ } |
{ | ||
"name": "marionette-js-logger", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "James Lal [:lightsofapollo]", | ||
@@ -5,0 +5,0 @@ "description": "Realtime host -> desktop logging", |
@@ -29,2 +29,7 @@ # Marionette JS Console plugin | ||
}; | ||
driver.executeScript(function() { | ||
// this works too but more importantly all other console.log's in content work too | ||
console.log(document.location.href); | ||
}); | ||
}); | ||
@@ -31,0 +36,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18606
454
62