init.features.samples.google.Google.meta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwen-web Show documentation
Show all versions of gwen-web Show documentation
Web automation engine for Gwen
The newest version!
@Sample
Feature: Google search meta
@StepDef
@Context
Scenario: I have Google in my browser
Gwen will match the name of this step def to the first step
in the feature above and evaluate the steps that follow. These
steps are matched against predefined steps in the Gwen Web DSL
to perform browser operations for you at runtime.
Given I start a new browser
When I navigate to "https://www.google.com"
Then the page title should be "Google"
@StepDef
@Action
Scenario: I do a search for ""
Gwen will match the name of this step def to the second
step in the feature above and assign the parameter to the
value provided at the matching location. Gwen will then evaluate the
steps below and resolve any $ references to that value.
Given the search field can be located by name "q"
When I enter "$" in the search field
Then the page title should contain "$"
@StepDef
@Assertion
Scenario: at least one result should be displayed
Gwen will match the name of this step def to the last
step in the feature above and evaluate the steps that follow.
Given link 1 can be located by css selector ".g a"
Then link 1 should be displayed
© 2015 - 2024 Weber Informatics LLC | Privacy Policy