Sha256: 9c47a86f0bf63226315b2c89735078f1e3426ae8a01c71720654c76f3686dcff

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 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 argument
    Given I am on the static elements page
    Given 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
    Given I execute the javascript "arguments[0].value = 'abcDEF';" with a text field argument
    Then the text field should contain "abcDEF"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
meeane-page-object-0.1.10 features/javascript.feature
meeane-page-object-0.1.8 features/javascript.feature