🕵️♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chai = require('chai'), | |
assert = chai.assert, | |
expect = chai.expect, | |
webdriverjs = require('webdriverjs'); | |
describe('my webdriverjs tests', function(){ | |
this.timeout(99999999); | |
var client = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webdriverjs = require('webdriverjs'); | |
describe('my webdriverjs tests', function() { | |
var client = {}; | |
jasmine.DEFAULT_TIMEOUT_INTERVAL = 9999999; | |
beforeEach(function() { | |
client = webdriverjs.remote({ desiredCapabilities: {browserName: 'phantomjs'} }); | |
client.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Example feature | |
As a user of webdriverjs | |
I should be able to use different commands | |
to get informations about elements on the page | |
Scenario: Get size of an element | |
Given I go on the website "https://github.com/" | |
When I use getElementSize() on the element ".header-logo-wordmark" | |
Then I should get a width of "89" and height of "32" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var buster = require("buster"), | |
webdriverjs = require('webdriverjs'); | |
buster.testCase("my webdriverjs tests", { | |
'setUp': function() { | |
this.timeout = 9999999; | |
client = webdriverjs.remote({ desiredCapabilities: {browserName: 'phantomjs'} }); | |
client.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webdriverjs = require('webdriverjs'), | |
assert = require('assert'); | |
describe('my webdriverjs tests', function(){ | |
this.timeout(99999999); | |
var client = {}; | |
before(function(){ | |
client = webdriverjs.remote({ desiredCapabilities: {browserName: 'phantomjs'} }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vows = require('vows'), | |
assert = require('assert'), | |
webdriverjs = require('webdriverjs'), | |
fs = require('fs'); | |
var client; | |
// Create a Test Suite | |
vows.describe('my github tests').addBatch({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webdriverjs = require('../index'), | |
client = webdriverjs.remote({ | |
host: 'hub.browserstack.com', | |
port: 80, | |
logLevel: 'silent', | |
desiredCapabilities: { | |
'browser': 'IE', | |
'browser_version': '7.0', | |
'os': 'Windows', | |
'os_version': 'XP', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Google StreetView provides keyboard accessibility to navigate with the arrow keys. | |
* Unfortunately you have to click on the map manually beforehand to activate this. | |
* This script enables that automatically. | |
* | |
* @requires Google Maps API v3 | |
*/ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new GKeyboardHandler(map); | |
var mapContainer = document.getElementById("map_canvas"); | |
GEvent.trigger(document, "click", {srcElement: mapContainer, target: mapContainer, nodeType: 1}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "MyExtension", | |
"version": "0.1", | |
"description": "My awesome chrome extension!", | |
"browser_action": { | |
"default_icon": "icon.png", | |
"default_popup": "index.html" | |
}, | |
"background": { |