Comparing version 0.0.25 to 0.0.26
@@ -345,5 +345,5 @@ <table class="wikitable"> | ||
execute(code, args, cb) -> cb(err, value returned)<br> | ||
execute(code, args, cb) -> cb(err, result)<br> | ||
execute(code, cb) -> cb(err, value returned)<br> | ||
execute(code, cb) -> cb(err, result)<br> | ||
@@ -360,5 +360,5 @@ args: script argument array (optional)<br> | ||
safeExecute(code, args, cb) -> cb(err, value returned)<br> | ||
safeExecute(code, args, cb) -> cb(err, result)<br> | ||
safeExecute(code, cb) -> cb(err, value returned)<br> | ||
safeExecute(code, cb) -> cb(err, result)<br> | ||
@@ -405,5 +405,5 @@ args: script argument array (optional)<br> | ||
executeAsync(code, args, cb) -> cb(err, value returned)<br> | ||
executeAsync(code, args, cb) -> cb(err, result)<br> | ||
executeAsync(code, cb) -> cb(err, value returned)<br> | ||
executeAsync(code, cb) -> cb(err, result)<br> | ||
@@ -420,5 +420,5 @@ args: script argument array (optional)<br> | ||
safeExecuteAsync(code, args, cb) -> cb(err, value returned)<br> | ||
safeExecuteAsync(code, args, cb) -> cb(err, result)<br> | ||
safeExecuteAsync(code, cb) -> cb(err, value returned)<br> | ||
safeExecuteAsync(code, cb) -> cb(err, result)<br> | ||
@@ -861,3 +861,3 @@ args: script argument array (optional)<br> | ||
text(element, cb) -> (err, text)<br> | ||
text(element, cb) -> cb(err, text)<br> | ||
@@ -870,3 +870,3 @@ element: specific element, 'body', or undefined<br> | ||
element.text(cb) -> (err, text)<br> | ||
element.text(cb) -> cb(err, text)<br> | ||
@@ -879,3 +879,3 @@ </p> | ||
textPresent(searchText, element, cb) -> (err, boolean)<br> | ||
textPresent(searchText, element, cb) -> cb(err, boolean)<br> | ||
@@ -890,3 +890,3 @@ element: specific element, 'body', or undefined<br> | ||
element.textPresent(searchText, cb) -> (err, boolean)<br> | ||
element.textPresent(searchText, cb) -> cb(err, boolean)<br> | ||
@@ -893,0 +893,0 @@ <br> |
@@ -43,3 +43,3 @@ //Element object | ||
/** | ||
* element.text(cb) -> (err, text) | ||
* element.text(cb) -> cb(err, text) | ||
* | ||
@@ -54,3 +54,3 @@ * @jsonWire GET /session/:sessionId/element/:id/text | ||
/** | ||
* element.textPresent(searchText, cb) -> (err, boolean) | ||
* element.textPresent(searchText, cb) -> cb(err, boolean) | ||
* | ||
@@ -57,0 +57,0 @@ * @jsonWire GET /session/:sessionId/element/:id/text |
@@ -536,3 +536,3 @@ var EventEmitter = require('events').EventEmitter; | ||
cb = frameRef; | ||
frameRef = undefined; | ||
frameRef = null; | ||
} | ||
@@ -623,4 +623,4 @@ this._jsonWireCall({ | ||
/** | ||
* execute(code, args, cb) -> cb(err, value returned) | ||
* execute(code, cb) -> cb(err, value returned) | ||
* execute(code, args, cb) -> cb(err, result) | ||
* execute(code, cb) -> cb(err, result) | ||
* args: script argument array (optional) | ||
@@ -656,4 +656,4 @@ * | ||
* Execute script using eval(code): | ||
* safeExecute(code, args, cb) -> cb(err, value returned) | ||
* safeExecute(code, cb) -> cb(err, value returned) | ||
* safeExecute(code, args, cb) -> cb(err, result) | ||
* safeExecute(code, cb) -> cb(err, result) | ||
* args: script argument array (optional) | ||
@@ -685,4 +685,4 @@ * | ||
/** | ||
* executeAsync(code, args, cb) -> cb(err, value returned) | ||
* executeAsync(code, cb) -> cb(err, value returned) | ||
* executeAsync(code, args, cb) -> cb(err, result) | ||
* executeAsync(code, cb) -> cb(err, result) | ||
* args: script argument array (optional) | ||
@@ -717,4 +717,4 @@ * | ||
* Execute async script using eval(code): | ||
* safeExecuteAsync(code, args, cb) -> cb(err, value returned) | ||
* safeExecuteAsync(code, cb) -> cb(err, value returned) | ||
* safeExecuteAsync(code, args, cb) -> cb(err, result) | ||
* safeExecuteAsync(code, cb) -> cb(err, result) | ||
* args: script argument array (optional) | ||
@@ -1387,3 +1387,3 @@ * | ||
/** | ||
* text(element, cb) -> (err, text) | ||
* text(element, cb) -> cb(err, text) | ||
* element: specific element, 'body', or undefined | ||
@@ -1407,3 +1407,3 @@ * | ||
* Check if text is present: | ||
* textPresent(searchText, element, cb) -> (err, boolean) | ||
* textPresent(searchText, element, cb) -> cb(err, boolean) | ||
* element: specific element, 'body', or undefined | ||
@@ -1410,0 +1410,0 @@ * |
@@ -5,3 +5,3 @@ { | ||
, "tags" : ["web", "automation", "browser", "javascript"] | ||
, "version" : "0.0.25" | ||
, "version" : "0.0.26" | ||
, "author" : "Adam Christian <adam.christian@gmail.com>" | ||
@@ -19,15 +19,15 @@ , "repository" : | ||
, "dependencies" : { | ||
"async" : "0.1.22" | ||
"async" : "0.1.x" | ||
} | ||
, "devDependencies" : { | ||
"mocha" : "latest" | ||
,"should": "latest" | ||
,"coffee-script": "latest" | ||
,"express": "2.x" | ||
,"imageinfo": "latest" | ||
,"covershot": "latest" | ||
,"nock": "latest" | ||
,"dox": "latest" | ||
,"mu2": "latest" | ||
,"underscore": "latest" | ||
"mocha" : "1.6.x" | ||
,"should": "1.2.x" | ||
,"coffee-script": "1.3.x" | ||
,"express": "3.x" | ||
,"imageinfo": "1.0.x" | ||
,"covershot": "0.1.x" | ||
,"nock": "0.13.x" | ||
,"dox": "0.3.x" | ||
,"mu2": "0.5.x" | ||
,"underscore": "1.4.x" | ||
} | ||
@@ -34,0 +34,0 @@ , "scripts" : { |
@@ -428,5 +428,5 @@ # WD.js -- A light weight WebDriver/Se2 client for node.js | ||
execute(code, args, cb) -> cb(err, value returned)<br> | ||
execute(code, args, cb) -> cb(err, result)<br> | ||
execute(code, cb) -> cb(err, value returned)<br> | ||
execute(code, cb) -> cb(err, result)<br> | ||
@@ -443,5 +443,5 @@ args: script argument array (optional)<br> | ||
safeExecute(code, args, cb) -> cb(err, value returned)<br> | ||
safeExecute(code, args, cb) -> cb(err, result)<br> | ||
safeExecute(code, cb) -> cb(err, value returned)<br> | ||
safeExecute(code, cb) -> cb(err, result)<br> | ||
@@ -488,5 +488,5 @@ args: script argument array (optional)<br> | ||
executeAsync(code, args, cb) -> cb(err, value returned)<br> | ||
executeAsync(code, args, cb) -> cb(err, result)<br> | ||
executeAsync(code, cb) -> cb(err, value returned)<br> | ||
executeAsync(code, cb) -> cb(err, result)<br> | ||
@@ -503,5 +503,5 @@ args: script argument array (optional)<br> | ||
safeExecuteAsync(code, args, cb) -> cb(err, value returned)<br> | ||
safeExecuteAsync(code, args, cb) -> cb(err, result)<br> | ||
safeExecuteAsync(code, cb) -> cb(err, value returned)<br> | ||
safeExecuteAsync(code, cb) -> cb(err, result)<br> | ||
@@ -944,3 +944,3 @@ args: script argument array (optional)<br> | ||
text(element, cb) -> (err, text)<br> | ||
text(element, cb) -> cb(err, text)<br> | ||
@@ -953,3 +953,3 @@ element: specific element, 'body', or undefined<br> | ||
element.text(cb) -> (err, text)<br> | ||
element.text(cb) -> cb(err, text)<br> | ||
@@ -962,3 +962,3 @@ </p> | ||
textPresent(searchText, element, cb) -> (err, boolean)<br> | ||
textPresent(searchText, element, cb) -> cb(err, boolean)<br> | ||
@@ -973,3 +973,3 @@ element: specific element, 'body', or undefined<br> | ||
element.textPresent(searchText, cb) -> (err, boolean)<br> | ||
element.textPresent(searchText, cb) -> cb(err, boolean)<br> | ||
@@ -976,0 +976,0 @@ <br> |
@@ -58,4 +58,4 @@ // Generated by CoffeeScript 1.3.3 | ||
return browser.clickElement(el, function() { | ||
return browser["eval"]("window.location.href", function(err, title) { | ||
assert.ok(~title.indexOf("#"), "Wrong title!"); | ||
return browser["eval"]("window.location.href", function(err, location) { | ||
assert.ok(~location.indexOf("http://"), "Wrong location!"); | ||
return done(null); | ||
@@ -62,0 +62,0 @@ }); |
@@ -36,3 +36,3 @@ // Generated by CoffeeScript 1.3.3 | ||
test = function(browserName) { | ||
test = function(remoteWdConfig, desired) { | ||
var browser, express; | ||
@@ -51,3 +51,3 @@ browser = null; | ||
return it("should create browser", function(done) { | ||
browser = wd.remote({}); | ||
browser = wd.remote(remoteWdConfig); | ||
if (process.env.WD_COV == null) { | ||
@@ -66,6 +66,4 @@ browser.on("status", function(info) { | ||
return it("should initialize browserinit", function(done) { | ||
this.timeout(15000); | ||
return browser.init({ | ||
browserName: browserName | ||
}, function(err) { | ||
this.timeout(45000); | ||
return browser.init(desired, function(err) { | ||
should.not.exist(err); | ||
@@ -78,3 +76,3 @@ return done(null); | ||
return it("should navigate to test page", function(done) { | ||
this.timeout(10000); | ||
this.timeout(15000); | ||
return browser.get("http://127.0.0.1:8181/element-test-page.html", function(err) { | ||
@@ -134,3 +132,3 @@ should.not.exist(err); | ||
}); | ||
describe("getTagName", function() { | ||
describe("element.getTagName", function() { | ||
return it("should get correct tag name", function(done) { | ||
@@ -165,3 +163,3 @@ return async.series([ | ||
}); | ||
describe("isDisplayed", function() { | ||
describe("element.isDisplayed", function() { | ||
return it("should check if elemnt is displayed", function(done) { | ||
@@ -206,3 +204,3 @@ return async.series([ | ||
}); | ||
describe("getComputedCss", function() { | ||
describe("element.getComputedCss", function() { | ||
return it("should retrieve the element computed css", function(done) { | ||
@@ -209,0 +207,0 @@ return async.series([ |
@@ -12,9 +12,9 @@ // Generated by CoffeeScript 1.3.3 | ||
Express.prototype.start = function() { | ||
this.app = express.createServer(); | ||
this.app = express(); | ||
this.app.use(express["static"](__dirname + '/assets')); | ||
return this.app.listen(8181); | ||
return this.server = this.app.listen(8181); | ||
}; | ||
Express.prototype.stop = function() { | ||
return this.app.close(); | ||
return this.server.close(); | ||
}; | ||
@@ -21,0 +21,0 @@ |
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
var async, should, test, wd; | ||
var test; | ||
should = require('should'); | ||
test = require('../common/chain-test-base').test; | ||
async = require('async'); | ||
wd = require('../common/wd-with-cov'); | ||
test = function(browserName) { | ||
var browser; | ||
browser = null; | ||
describe("wd.remote", function() { | ||
return it("should create browser", function(done) { | ||
browser = wd.remote({}); | ||
if (process.env.WD_COV == null) { | ||
browser.on("status", function(info) { | ||
return console.log("\u001b[36m%s\u001b[0m", info); | ||
}); | ||
browser.on("command", function(meth, path) { | ||
return console.log(" > \u001b[33m%s\u001b[0m: %s", meth, path); | ||
}); | ||
} | ||
return done(null); | ||
}); | ||
}); | ||
return describe("chaining", function() { | ||
return it("should work", function(done) { | ||
return browser.chain().init({ | ||
browserName: 'chrome', | ||
tags: ["examples"], | ||
name: "This is an example test" | ||
}).get("http://saucelabs.com/test/guinea-pig").title(function(err, title) { | ||
return title.should.include('I am a page title - Sauce Labs'); | ||
}).elementById('submit', function(err, el) { | ||
return browser.clickElement(el, function(err) { | ||
return should.not.exist.err; | ||
}); | ||
})["eval"]("window.location.href", function(err, href) { | ||
return href.should.include('http'); | ||
}).quit(function(err) { | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}; | ||
describe("wd", function() { | ||
@@ -50,0 +8,0 @@ return describe("local", function() { |
@@ -9,8 +9,12 @@ // Generated by CoffeeScript 1.3.3 | ||
return describe("local", function() { | ||
return describe("element method tests", function() { | ||
return describe("element tests", function() { | ||
describe("using chrome", function() { | ||
return test('chrome'); | ||
return test({}, { | ||
browserName: 'chrome' | ||
}); | ||
}); | ||
return describe("using firefox", function() { | ||
return test('firefox'); | ||
return test({}, { | ||
browserName: 'firefox' | ||
}); | ||
}); | ||
@@ -17,0 +21,0 @@ }); |
@@ -11,6 +11,10 @@ // Generated by CoffeeScript 1.3.3 | ||
describe("using chrome", function() { | ||
return test('chrome'); | ||
return test({}, { | ||
browserName: 'chrome' | ||
}); | ||
}); | ||
return describe("using firefox", function() { | ||
return test('firefox'); | ||
return test({}, { | ||
browserName: 'firefox' | ||
}); | ||
}); | ||
@@ -17,0 +21,0 @@ }); |
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
var Express, async, should, test, wd; | ||
var test; | ||
should = require('should'); | ||
test = require('../common/window-frame-test-base').test; | ||
async = require('async'); | ||
Express = require('../common/express').Express; | ||
wd = require('../common/wd-with-cov'); | ||
test = function(browserName) { | ||
var browser, frames, handles, refreshPage; | ||
browser = null; | ||
handles = {}; | ||
describe("wd.remote", function() { | ||
return it("should create browser", function(done) { | ||
browser = wd.remote({}); | ||
if (process.env.WD_COV == null) { | ||
browser.on("status", function(info) { | ||
return console.log("\u001b[36m%s\u001b[0m", info); | ||
}); | ||
browser.on("command", function(meth, path) { | ||
return console.log(" > \u001b[33m%s\u001b[0m: %s", meth, path); | ||
}); | ||
} | ||
return done(null); | ||
}); | ||
}); | ||
describe("init", function() { | ||
return it("should initialize browserinit", function(done) { | ||
this.timeout(15000); | ||
return browser.init({ | ||
browserName: browserName | ||
}, function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("opening first window", function() { | ||
return it("should open the first window", function(done) { | ||
this.timeout(10000); | ||
return browser.get("http://127.0.0.1:8181/window-test-page.html?window_num=1", function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("setting first window name", function() { | ||
return it("should set the window name", function(done) { | ||
return browser.execute("window.name='window-1'", function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("retrieving first window name", function() { | ||
return it("should be window-1", function(done) { | ||
return browser.windowName(function(err, name) { | ||
should.not.exist(err); | ||
name.should.equal('window-1'); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("retrieving first window handle", function() { | ||
return it("should retrieve handle", function(done) { | ||
return browser.windowHandle(function(err, handle) { | ||
should.not.exist(err); | ||
should.exist(handle); | ||
handle.length.should.be.above(0); | ||
handles['window-1'] = handle; | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("opening second window", function() { | ||
return it("should open the second window", function(done) { | ||
this.timeout(10000); | ||
return browser.newWindow('http://127.0.0.1:8181/window-test-page.html?window_num=2', 'window-2', function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("change focus to second window", function() { | ||
return it("should focus on second window", function(done) { | ||
return browser.window('window-2', function(err) { | ||
should.not.exist(err); | ||
return browser.windowName(function(err, name) { | ||
should.not.exist(err); | ||
name.should.equal('window-2'); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe("retrieving second window handle", function() { | ||
return it("should retrieve handle", function(done) { | ||
return browser.windowHandle(function(err, handle) { | ||
should.not.exist(err); | ||
should.exist(handle); | ||
handle.length.should.be.above(0); | ||
handle.should.not.equal(handles['window-1']); | ||
handles['window-2'] = handle; | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("opening third window", function() { | ||
return it("should open the third window", function(done) { | ||
this.timeout(10000); | ||
return browser.newWindow('http://127.0.0.1:8181/window-test-page.html?window_num=3', 'window-3', function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("change focus to third window", function() { | ||
return it("should focus on third window", function(done) { | ||
return browser.window('window-3', function(err) { | ||
should.not.exist(err); | ||
return browser.windowName(function(err, name) { | ||
should.not.exist(err); | ||
name.should.equal('window-3'); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe("retrieving third window handle", function() { | ||
return it("should retrieve handle", function(done) { | ||
return browser.windowHandle(function(err, handle) { | ||
should.not.exist(err); | ||
should.exist(handle); | ||
handle.length.should.be.above(0); | ||
handle.should.not.equal(handles['window-1']); | ||
handle.should.not.equal(handles['window-2']); | ||
handles['window-3'] = handle; | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("windowHandles", function() { | ||
return it("should retrieve 2 window handles", function(done) { | ||
return browser.windowHandles(function(err, _handles) { | ||
var k, v, _i, _len; | ||
should.not.exist(err); | ||
_handles.should.have.length(3); | ||
for (v = _i = 0, _len = handles.length; _i < _len; v = ++_i) { | ||
k = handles[v]; | ||
_handles.should.include(v); | ||
} | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("change focus to second window using window handle", function() { | ||
return it("should focus on second window", function(done) { | ||
return browser.window(handles['window-2'], function(err) { | ||
should.not.exist(err); | ||
return browser.windowName(function(err, name) { | ||
should.not.exist(err); | ||
name.should.equal('window-2'); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe("closing second window", function() { | ||
return it("should close the second window", function(done) { | ||
return browser.close(function(err) { | ||
should.not.exist(err); | ||
return browser.windowHandles(function(err, _handles) { | ||
should.not.exist(err); | ||
_handles.should.have.length(2); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe("change focus to third window", function() { | ||
return it("should focus on third window", function(done) { | ||
return browser.window('window-3', function(err) { | ||
should.not.exist(err); | ||
return browser.windowName(function(err, name) { | ||
should.not.exist(err); | ||
name.should.equal('window-3'); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe("closing third window", function() { | ||
return it("should close the third window", function(done) { | ||
return browser.close(function(err) { | ||
should.not.exist(err); | ||
return browser.windowHandles(function(err, _handles) { | ||
should.not.exist(err); | ||
_handles.should.have.length(1); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe("change focus to first window", function() { | ||
return it("should focus on first window", function(done) { | ||
return browser.window('window-1', function(err) { | ||
should.not.exist(err); | ||
return browser.windowName(function(err, name) { | ||
should.not.exist(err); | ||
name.should.equal('window-1'); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe("opening window with no name", function() { | ||
return it("should open the third window", function(done) { | ||
this.timeout(10000); | ||
return browser.newWindow('http://127.0.0.1:8181/window-test-page.html?window_num=4', function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
describe("focusing on window with no name handle", function() { | ||
return it("last handle should correspond to latest opened window", function(done) { | ||
return browser.windowHandles(function(err, _handles) { | ||
should.not.exist(err); | ||
_handles.should.have.length(2); | ||
return browser.window(_handles[1], function(err) { | ||
should.not.exist(err); | ||
return browser.url(function(err, url) { | ||
url.should.include("num=4"); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe("closing window with no name", function() { | ||
return it("should close the window with no name", function(done) { | ||
return browser.close(function(err) { | ||
should.not.exist(err); | ||
return browser.windowHandles(function(err, _handles) { | ||
should.not.exist(err); | ||
_handles.should.have.length(1); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe("change focus to first window", function() { | ||
return it("should focus on first window", function(done) { | ||
return browser.window('window-1', function(err) { | ||
should.not.exist(err); | ||
return browser.windowName(function(err, name) { | ||
should.not.exist(err); | ||
name.should.equal('window-1'); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
if (browserName !== 'chrome') { | ||
describe("opening frame test page", function() { | ||
return it("should open the first window", function(done) { | ||
this.timeout(10000); | ||
return browser.get("http://127.0.0.1:8181/frames/index.html", function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
frames = []; | ||
describe("looking for frame elements", function() { | ||
return it("should find frame elements", function(done) { | ||
return browser.elementsByTagName('frame', function(err, _frames) { | ||
should.not.exist(err); | ||
_frames.should.have.length(3); | ||
return async.forEachSeries(_frames, function(frame, done) { | ||
var frameInfo; | ||
frameInfo = { | ||
el: frame.toString() | ||
}; | ||
return async.series([ | ||
function(done) { | ||
return frame.getAttribute('name', function(err, name) { | ||
should.not.exist(err); | ||
frameInfo.name = name; | ||
return done(null); | ||
}); | ||
}, function(done) { | ||
return frame.getAttribute('id', function(err, id) { | ||
should.not.exist(err); | ||
frameInfo.id = id; | ||
return done(null); | ||
}); | ||
} | ||
], function(err) { | ||
should.not.exist(err); | ||
frames.push(frameInfo); | ||
return done(null); | ||
}); | ||
}, function(err) { | ||
var i; | ||
should.not.exist(err); | ||
frames.should.have.length(3); | ||
((function() { | ||
var _i, _len, _results; | ||
_results = []; | ||
for (_i = 0, _len = frames.length; _i < _len; _i++) { | ||
i = frames[_i]; | ||
_results.push(i.name); | ||
} | ||
return _results; | ||
})()).should.eql(['menu', 'main', 'bottom']); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}); | ||
refreshPage = function() { | ||
return describe("refreshing page", function() { | ||
return it("should refresh the page", function(done) { | ||
return browser.refresh(function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}; | ||
describe("selecting default frame", function() { | ||
return it("should select frame menu", function(done) { | ||
return browser.frame(function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
refreshPage(); | ||
describe("selecting frame by number", function() { | ||
return it("should select frame menu", function(done) { | ||
return browser.frame(0, function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
refreshPage(); | ||
describe("selecting frame by id", function() { | ||
return it("should select frame main", function(done) { | ||
return browser.frame(frames[1].id, function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
refreshPage(); | ||
describe("selecting frame by name", function() { | ||
return it("should select frame main", function(done) { | ||
return browser.frame(frames[2].name, function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
} | ||
return describe("quit", function() { | ||
return it("should destroy browser", function(done) { | ||
return browser.quit(function(err) { | ||
should.not.exist(err); | ||
return done(null); | ||
}); | ||
}); | ||
}); | ||
}; | ||
describe("wd", function() { | ||
return describe("local", function() { | ||
return describe("element method tests", function() { | ||
var express; | ||
express = new Express; | ||
before(function(done) { | ||
express.start(); | ||
return done(null); | ||
}); | ||
after(function(done) { | ||
express.stop(); | ||
return done(null); | ||
}); | ||
return describe("window frame test", function() { | ||
describe("using chrome", function() { | ||
return test('chrome'); | ||
return test({}, { | ||
browserName: 'chrome' | ||
}); | ||
}); | ||
return describe("using firefox", function() { | ||
return test('firefox'); | ||
return test({}, { | ||
browserName: 'firefox' | ||
}); | ||
}); | ||
@@ -401,0 +20,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
498802
91
5996
3
19
Updatedasync@0.1.x