Sha256: 7384d267571cd030192a7475c21e496ea8002b4bb664011306d47393115db6f2

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

Feature: Handling javascript events

  Background:

  Scenario: Waiting for ajax to complete with jQuery
    Given I am on jQuery example page
    When I ask to compute "2+2"
    Then I should be able to wait for the answer "4"

  Scenario: Waiting for ajax to complete with Prototype
    Given I am on the Prototype example page
    When I ask to compute "2+2"
    Then I should be able to wait for the answer "4"

  Scenario: Executing javascript in the browser
    Given I am on the static elements page
    Given I execute the javascript "return 2 + 2;"
    Then I should get the answer "4"

  Scenario: Executing javascript in the browser with value arugment
    Given I am on the static elements page
    When I execute the javascript "return 2 + Number(arguments[0]);" with an argument of "2"
    Then I should get the answer "4"

  Scenario: Executing javascript in the browser with element argument
    Given I am on the static elements page
    When I execute the javascript "arguments[0].value = 'abcDEF';" with a text field argument
    Then the text field should contain "abcDEF"

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
druid-s-1.0.0 features/javascript.feature
druid-ts-1.2.6 features/javascript.feature
druid-ts-1.2.5 features/javascript.feature
druid-ts-1.2.4 features/javascript.feature
druid-ts-1.2.3 features/javascript.feature
druid-ts-1.2.2 features/javascript.feature
druid-ts-1.2.1 features/javascript.feature
druid-ts-1.2.0 features/javascript.feature