🕵️♂️
This file contains hidden or 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 hidden or 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 hidden or 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'); | |
| module.exports = { | |
| setUp: function (callback) { | |
| client = webdriverjs.remote({ desiredCapabilities: {browserName: 'phantomjs'} }); | |
| client.init(); | |
| callback(); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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({ | |
| desiredCapabilities: { | |
| browserName: 'chrome', | |
| version: '27', | |
| platform: 'XP', | |
| tags: ['examples'], | |
| name: 'This is an example test' | |
| }, | |
| host: 'ondemand.saucelabs.com', |
This file contains hidden or 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 hidden or 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 | |
| */ | |
| /** |