Skip to content

Instantly share code, notes, and snippets.

@llonchj
Created July 26, 2015 21:02
Show Gist options
  • Save llonchj/2a0252b56de439c6b01c to your computer and use it in GitHub Desktop.
Save llonchj/2a0252b56de439c6b01c to your computer and use it in GitHub Desktop.
mink test
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
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