Sha256: 7ab4f73f7e7ba0aad19fcc5aa9e2d395cb5a5684f8228617e5a02bc08c38e312

Contents?: true

Size: 1.07 KB

Versions: 21

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 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

21 entries across 21 versions & 4 rubygems

Version Path
page-object-1.2.0 features/javascript.feature
page-object-1.1.1 features/javascript.feature
page_object-1.1.3 features/javascript.feature
page_object-1.1.2 features/javascript.feature
page_object-1.1.1 features/javascript.feature
page-object-1.1.0 features/javascript.feature
page-object-lds-0.0.14 features/javascript.feature
page-object-lds-0.0.13 features/javascript.feature
page-object-lds-0.0.12 features/javascript.feature
page-object-lds-0.0.11 features/javascript.feature
page-object-lds-0.0.1 features/javascript.feature
page-object-1.0.3 features/javascript.feature
meeane-page-object-0.1.11 features/javascript.feature
page-object-1.0.2 features/javascript.feature
page-object-1.0.1 features/javascript.feature
page-object-1.0 features/javascript.feature
page-object-0.9.8 features/javascript.feature
page-object-0.9.7 features/javascript.feature
page-object-0.9.6 features/javascript.feature
page-object-0.9.5 features/javascript.feature