All Downloads are FREE. Search and download functionalities are using the official Maven repository.

init.samples.google.Google.meta Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show 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: I should find a Gwen page

    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"
     When I click link 1
     Then the current URL should match regex ".+[G|g]wen.*"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy