Skip to content

Instantly share code, notes, and snippets.

default:
context:
extensions:
Behat\MinkExtension\Extension:
base_url: http://en.wikipedia.org/
default_session: selenium2
javascript_session: selenium2
selenium2:
browser: chrome
wd_host: foo:bar@ondemand.saucelabs.com/wd/hub
@swestcott
swestcott / gist:2732669
Created May 19, 2012 22:47
MinkExtension example
simon@mac:MinkExtension-example (master)$ bin/behat
Feature: Search
In order to see a word definition
As a website user
I need to be able to search for a word
Scenario: Searching for a page that does exist # features/search.feature:6
Given I am on "/wiki/Main_Page" # InheritedFeatureContext::visit()
When I fill in "search" with "Behavior Driven Development" # InheritedFeatureContext::fillField()
And I press "searchButton" # InheritedFeatureContext::pressButton()
public class BuildAllAction implements RootAction {
private static final Logger LOGGER = Logger.getLogger(BuildAllAction.class.getName());
public String getIconFileName() {
return "doesnotexist";
}
public String getDisplayName() {
return "Build All";