Created
July 26, 2015 21:02
-
-
Save llonchj/2a0252b56de439c6b01c to your computer and use it in GitHub Desktop.
mink test
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: Browsing Google | |
Scenario: Search | |
Given I browse "https://www.google.com/" | |
And I am on "/" | |
When I fill in "input[name='q']" with "Hello" | |
And I press "button[name='btnG']" | |
#And I wait 5 seconds | |
Then I should see 10 "div[class='g']" elements | |
Scenario: Home | |
Given I browse "https://www.google.com/" | |
When I am on "/" | |
Then I should see "Google" in the "h1" element | |
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 mink = require('cucumber-mink'); | |
// Local Chrome | |
var parameters = { | |
driver: { | |
logLevel: 'silent', | |
desiredCapabilities: { | |
browserName: 'chrome' | |
}, | |
port: 4444 | |
} | |
}; | |
module.exports = function () { | |
mink.init(this, parameters); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment