zena 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +80 -25
- data/Rakefile +2 -2
- data/app/controllers/columns_controller.rb +2 -2
- data/app/controllers/nodes_controller.rb +22 -29
- data/app/controllers/user_sessions_controller.rb +35 -10
- data/app/controllers/users_controller.rb +2 -2
- data/app/controllers/versions_controller.rb +2 -2
- data/app/models/group.rb +15 -1
- data/app/models/node.rb +109 -8
- data/app/models/role.rb +4 -0
- data/app/models/site.rb +64 -58
- data/app/models/template.rb +1 -1
- data/app/models/user.rb +135 -29
- data/app/models/user_session.rb +0 -1
- data/app/models/virtual_class.rb +11 -6
- data/app/views/columns/_form.html.erb +3 -1
- data/app/views/columns/_li.html.erb +1 -1
- data/app/views/columns/create.rjs +1 -1
- data/app/views/groups/_form.rhtml +16 -13
- data/app/views/relations/_form.erb +18 -6
- data/app/views/sites/_form.erb +12 -6
- data/app/views/users/_form.rhtml +23 -8
- data/app/views/users/_li.rhtml +14 -3
- data/app/views/users/index.rhtml +1 -1
- data/app/views/virtual_classes/_form.erb +12 -2
- data/app/views/zafu/default/Node-+login.zafu +8 -1
- data/app/views/zafu/default/Node-+search.zafu +1 -1
- data/bricks/acls/lib/bricks/acls.rb +1 -0
- data/bricks/acls/zena/migrate/20130903150356_longer_names_for_acl.rb +9 -0
- data/bricks/acls/zena/test/integration/acl_integration_test.rb +2 -2
- data/bricks/currency/lib/bricks/currency.rb +120 -0
- data/bricks/currency/zena/test/unit/currency_test.rb +43 -0
- data/bricks/fs_skin/lib/bricks/fs_skin.rb +1 -1
- data/bricks/fs_skin/zena/skins/blog/Node-+search.zafu +1 -1
- data/bricks/fs_skin/zena/skins/blog/Node.zafu +1 -1
- data/bricks/fs_skin/zena/test/unit/fs_skin_view_test.rb +35 -0
- data/bricks/pdf/lib/bricks/pdf.rb +1 -1
- data/bricks/sphinx/lib/bricks/sphinx.rb +2 -0
- data/bricks/sphinx/zena/init.rb +14 -0
- data/bricks/tags/zena/test/zafu/tags.yml +5 -1
- data/bricks/worker/lib/bricks/worker.rb +3 -2
- data/bricks/zena/zena/migrate/20130829093753_add_versioned_flag_to_column.rb +10 -0
- data/bricks/zena/zena/migrate/20130903084909_count_login_attempts.rb +11 -0
- data/bricks/zena/zena/migrate/20131104153126_index_fullpath.rb +10 -0
- data/bricks/zena/zena/migrate/20131104210011_rebuild_fullpath_after_change.rb +10 -0
- data/bricks/zena/zena/migrate/20131105160420_add_skin_id_to_sites.rb +9 -0
- data/bricks/zena/zena/migrate/20131105175822_add_profile_to_users.rb +11 -0
- data/bricks/zena/zena/migrate/20140213120038_fix_idx_scope.rb +13 -0
- data/bricks/zena/zena/migrate/20140628140247_add_site_readonly.rb +9 -0
- data/config/bricks.yml +8 -4
- data/config/gems.yml +5 -3
- data/db/init/base/skins/default/Node-+login.zafu +8 -1
- data/db/init/base/skins/default/Node-+search.zafu +1 -1
- data/lib/bricks/loader.rb +5 -5
- data/lib/gettext_strings.rb +3 -0
- data/lib/tasks/zena.rake +25 -22
- data/lib/zafu/process/context.rb +4 -0
- data/lib/zena/acts/secure_node.rb +3 -3
- data/lib/zena/app.rb +1 -0
- data/lib/zena/deploy.rb +1 -1
- data/lib/zena/deploy/template.rb +1 -1
- data/lib/zena/foxy_parser.rb +5 -2
- data/lib/zena/info.rb +1 -1
- data/lib/zena/site_worker.rb +2 -2
- data/lib/zena/test_controller.rb +5 -2
- data/lib/zena/use/action.rb +9 -2
- data/lib/zena/use/ajax.rb +20 -4
- data/lib/zena/use/ancestry.rb +89 -15
- data/lib/zena/use/authlogic.rb +8 -2
- data/lib/zena/use/context.rb +1 -0
- data/lib/zena/use/display.rb +1 -97
- data/lib/zena/use/forms.rb +28 -8
- data/lib/zena/use/html_tags.rb +16 -7
- data/lib/zena/use/i18n.rb +1 -1
- data/lib/zena/use/prop_eval.rb +6 -1
- data/lib/zena/use/query_node.rb +69 -4
- data/lib/zena/use/recursion.rb +1 -1
- data/lib/zena/use/refactor.rb +5 -2
- data/lib/zena/use/relations.rb +1 -0
- data/lib/zena/use/rendering.rb +7 -4
- data/lib/zena/use/test_helper.rb +8 -4
- data/lib/zena/use/upload.rb +14 -0
- data/lib/zena/use/urls.rb +39 -23
- data/lib/zena/use/version_hash.rb +5 -2
- data/lib/zena/use/workflow.rb +116 -70
- data/lib/zena/use/zafu_eval.rb +41 -0
- data/lib/zena/use/zafu_safe_definitions.rb +1 -0
- data/lib/zena/use/zafu_templates.rb +32 -26
- data/lib/zena/use/zazen.rb +8 -7
- data/locale/app.pot +5 -1
- data/locale/de/LC_MESSAGES/zena.mo +0 -0
- data/locale/de/zena.po +385 -281
- data/locale/en/LC_MESSAGES/zena.mo +0 -0
- data/locale/en/zena.po +378 -271
- data/locale/fr/LC_MESSAGES/zena.mo +0 -0
- data/locale/fr/zena.po +387 -272
- data/locale/it/LC_MESSAGES/zena.mo +0 -0
- data/locale/it/zena.po +433 -404
- data/locale/zena.pot +362 -268
- data/public/javascripts/grid.js +280 -104
- data/public/javascripts/zena.js +43 -15
- data/public/stylesheets/admin.css +8 -2
- data/public/stylesheets/grid.css +5 -2
- data/public/stylesheets/popup.css +1 -1
- data/test/fixtures/files/TestNode.zafu +51 -0
- data/test/functional/nodes_controller_test.rb +20 -5
- data/test/functional/user_sessions_controller_test.rb +41 -6
- data/test/functional/users_controller_test.rb +1 -2
- data/test/integration/navigation_test.rb +22 -4
- data/test/integration/query_node/basic.yml +7 -0
- data/test/integration/query_node/complex.yml +1 -1
- data/test/integration/query_node/errors.yml +1 -1
- data/test/integration/query_node/filters.yml +34 -1
- data/test/integration/query_node/relations.yml +6 -13
- data/test/integration/query_node_test.rb +22 -3
- data/test/integration/zafu_compiler/action.yml +1 -1
- data/test/integration/zafu_compiler/alias_site.yml +52 -0
- data/test/integration/zafu_compiler/complex.yml +1 -1
- data/test/integration/zafu_compiler/complex_ok.yml +5 -5
- data/test/integration/zafu_compiler/context.yml +1 -1
- data/test/integration/zafu_compiler/display.yml +56 -5
- data/test/integration/zafu_compiler/forms.yml +35 -2
- data/test/integration/zafu_compiler/meta.yml +4 -0
- data/test/integration/zafu_compiler/rubyless.yml +1 -1
- data/test/integration/zafu_compiler/safe_definitions.yml +4 -0
- data/test/integration/zafu_compiler/security.yml +10 -0
- data/test/integration/zafu_compiler/site.yml +5 -1
- data/test/integration/zafu_compiler/urls.yml +8 -2
- data/test/integration/zafu_compiler/zafu_attributes.yml +2 -1
- data/test/integration/zafu_compiler/zazen.yml +4 -0
- data/test/integration/zafu_compiler_test.rb +47 -4
- data/test/selenium/Grid/grid1.rsel +8 -8
- data/test/sites/complex/sites.yml +2 -2
- data/test/sites/complex/users.yml +1 -0
- data/test/sites/zena/columns.yml +4 -0
- data/test/sites/zena/sites.yml +1 -0
- data/test/sites/zena/users.yml +1 -0
- data/test/unit/node_test.rb +53 -5
- data/test/unit/note_test.rb +1 -1
- data/test/unit/relation_proxy_test.rb +20 -0
- data/test/unit/role_test.rb +2 -0
- data/test/unit/site_test.rb +28 -6
- data/test/unit/user_test.rb +332 -1
- data/test/unit/virtual_class_test.rb +55 -0
- data/test/unit/workflow_test.rb +175 -0
- data/test/unit/zena/use/ancestry_test.rb +52 -10
- data/test/unit/zena/use/prop_eval_test.rb +44 -0
- data/test/unit/zena/use/rendering_test.rb +48 -2
- data/test/unit/zena/use/upload_test.rb +15 -13
- data/test/unit/zena/use/urls_test.rb +1 -0
- data/vendor/plugins/ar_mysql_full_text/lib/ar_mysql_full_text.rb +39 -25
- data/zena.gemspec +69 -307
- metadata +143 -368
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run 2.tmCommand +0 -24
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Context.tmCommand +0 -58
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Focused Should.tmCommand +0 -88
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run.tmCommand +0 -27
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/YAML to Shoulda.tmCommand +0 -23
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Context.tmPreferences +0 -19
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Should.tmPreferences +0 -19
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory attributes for.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory build.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define with class.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_next.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_sequence.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_bad_value.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_contains.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_does_not_contain.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_good_value.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_same_elements.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_save.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_sent_email.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_valid.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/association.tmSnippet +0 -17
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/attribute.tmSnippet +0 -17
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/before_should block.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block get.tmSnippet +0 -22
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block post.tmSnippet +0 -23
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block with setup.tmSnippet +0 -25
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/setup.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block with before proc.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_allow_values_for.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_assign_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful denied.tmSnippet +0 -20
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful.tmSnippet +0 -20
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_belong_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change by.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change from to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_at_least.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_in_range.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_is.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_value_in_range.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_eventually.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_filter_params.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_and_belong_to_many.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_class_methods.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_column.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_columns.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_index.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_indices.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_instance_methods.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_many.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_named_scope.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_one.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_readonly_attributes.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_mass_assignment_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_values_for.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_assign_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_change.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_set_the_flash.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_redirect_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_a_form.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_template.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_with_layout.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_without_layout.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with_content_type.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_return_from_session.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_route.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_set_the_flash_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_acceptance_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_numericality_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_presence_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of with scope.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/catch_exception.rb +0 -39
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/run_script.rb +0 -104
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/stdin_dialog.rb +0 -14
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/test.rb +0 -17
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/todo.txt +0 -13
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/bin/yaml_to_shoulda.rb +0 -25
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Syntaxes/Ruby on Rails (Shoulda).tmLanguage +0 -166
- data/vendor/TextMate/Ruby Shoulda.tmbundle/info.plist +0 -304
- data/vendor/TextMate/Zena.tmbundle/Commands/Run all yaml tests.tmCommand +0 -37
- data/vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand +0 -52
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/catch_exception.rb +0 -39
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/run_script.rb +0 -118
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/stdin_dialog.rb +0 -14
- data/vendor/TextMate/Zena.tmbundle/info.plist +0 -17
- data/vendor/plugins/selenium-on-rails/CHANGELOG +0 -125
- data/vendor/plugins/selenium-on-rails/LICENSE-2.0.txt +0 -202
- data/vendor/plugins/selenium-on-rails/README.md +0 -202
- data/vendor/plugins/selenium-on-rails/Rakefile +0 -38
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumController.html +0 -265
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumHelper.html +0 -148
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails.html +0 -126
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/FixtureLoader.html +0 -231
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/PartialsSupport.html +0 -195
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/Paths.html +0 -295
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/RSelenese.html +0 -219
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/Renderer.html +0 -156
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/Selenese.html +0 -179
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/SuiteRenderer.html +0 -223
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/TestBuilder.html +0 -441
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/TestBuilderAccessors.html +0 -3098
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/TestBuilderActions.html +0 -2080
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/TestBuilderUserAccessors.html +0 -116
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/TestBuilderUserActions.html +0 -116
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRailsConfig.html +0 -150
- data/vendor/plugins/selenium-on-rails/doc/files/CHANGELOG.html +0 -422
- data/vendor/plugins/selenium-on-rails/doc/files/README.html +0 -321
- data/vendor/plugins/selenium-on-rails/doc/files/lib/controllers/selenium_controller_rb.html +0 -108
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_helper_rb.html +0 -101
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/acceptance_test_runner_rb.html +0 -222
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/fixture_loader_rb.html +0 -109
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/partials_support_rb.html +0 -111
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/paths_rb.html +0 -101
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/renderer_rb.html +0 -101
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/rselenese_rb.html +0 -118
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/selenese_rb.html +0 -101
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/suite_renderer_rb.html +0 -101
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/test_builder_accessors_rb.html +0 -114
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/test_builder_actions_rb.html +0 -113
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/test_builder_rb.html +0 -120
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails_config_rb.html +0 -108
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails_rb.html +0 -115
- data/vendor/plugins/selenium-on-rails/doc/fr_class_index.html +0 -42
- data/vendor/plugins/selenium-on-rails/doc/fr_file_index.html +0 -43
- data/vendor/plugins/selenium-on-rails/doc/fr_method_index.html +0 -182
- data/vendor/plugins/selenium-on-rails/doc/index.html +0 -24
- data/vendor/plugins/selenium-on-rails/doc/rdoc-style.css +0 -208
- data/vendor/plugins/selenium-on-rails/generators/selenium/USAGE +0 -19
- data/vendor/plugins/selenium-on-rails/generators/selenium/selenium_generator.rb +0 -50
- data/vendor/plugins/selenium-on-rails/generators/selenium/templates/rhtml.rhtml +0 -16
- data/vendor/plugins/selenium-on-rails/generators/selenium/templates/rselenese.rhtml +0 -14
- data/vendor/plugins/selenium-on-rails/generators/selenium/templates/selenese.rhtml +0 -11
- data/vendor/plugins/selenium-on-rails/init.rb +0 -15
- data/vendor/plugins/selenium-on-rails/lib/controllers/selenium_controller.rb +0 -122
- data/vendor/plugins/selenium-on-rails/lib/controllers/switch_environment_controller.rb +0 -16
- data/vendor/plugins/selenium-on-rails/lib/selenium_helper.rb +0 -8
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails.rb +0 -11
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/acceptance_test_runner.rb +0 -215
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/fixture_loader.rb +0 -57
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/partials_support.rb +0 -36
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/paths.rb +0 -61
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/renderer.rb +0 -20
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/rselenese.rb +0 -44
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/selenese.rb +0 -87
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/suite_renderer.rb +0 -56
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder.rb +0 -116
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder_accessors.rb +0 -1002
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder_actions.rb +0 -514
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder_user_accessors.rb.example +0 -91
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder_user_actions.rb.example +0 -24
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails_config.rb +0 -30
- data/vendor/plugins/selenium-on-rails/lib/views/layouts/layout.rhtml +0 -18
- data/vendor/plugins/selenium-on-rails/lib/views/record.rhtml +0 -5
- data/vendor/plugins/selenium-on-rails/lib/views/selenium_helper.rb +0 -9
- data/vendor/plugins/selenium-on-rails/lib/views/setup.rhtml +0 -67
- data/vendor/plugins/selenium-on-rails/lib/views/test_suite.rhtml +0 -26
- data/vendor/plugins/selenium-on-rails/routes.rb +0 -24
- data/vendor/plugins/selenium-on-rails/selenium-core/Blank.html +0 -7
- data/vendor/plugins/selenium-on-rails/selenium-core/InjectedRemoteRunner.html +0 -8
- data/vendor/plugins/selenium-on-rails/selenium-core/RemoteRunner.html +0 -110
- data/vendor/plugins/selenium-on-rails/selenium-core/SeleniumLog.html +0 -109
- data/vendor/plugins/selenium-on-rails/selenium-core/TestPrompt.html +0 -145
- data/vendor/plugins/selenium-on-rails/selenium-core/TestRunner-splash.html +0 -55
- data/vendor/plugins/selenium-on-rails/selenium-core/TestRunner.hta +0 -177
- data/vendor/plugins/selenium-on-rails/selenium-core/TestRunner.html +0 -177
- data/vendor/plugins/selenium-on-rails/selenium-core/domviewer/butmin.gif +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/domviewer/butplus.gif +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/domviewer/domviewer.css +0 -298
- data/vendor/plugins/selenium-on-rails/selenium-core/domviewer/domviewer.html +0 -16
- data/vendor/plugins/selenium-on-rails/selenium-core/domviewer/selenium-domviewer.js +0 -205
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/all.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/continue.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/continue_disabled.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/pause.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/pause_disabled.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/selected.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/step.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/step_disabled.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/iedoc-core.xml +0 -1759
- data/vendor/plugins/selenium-on-rails/selenium-core/iedoc.xml +0 -1800
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/cssQuery/cssQuery-p.js +0 -6
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/cssQuery/src/cssQuery-level2.js +0 -142
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/cssQuery/src/cssQuery-level3.js +0 -150
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/cssQuery/src/cssQuery-standard.js +0 -53
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/cssQuery/src/cssQuery.js +0 -356
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/prototype.js +0 -2006
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/builder.js +0 -101
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/controls.js +0 -815
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/dragdrop.js +0 -915
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/effects.js +0 -958
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/scriptaculous.js +0 -47
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/slider.js +0 -283
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/unittest.js +0 -383
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/snapsie.js +0 -91
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/find_matching_child.js +0 -69
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/htmlutils.js +0 -1616
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/injection.html +0 -72
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-api.js +0 -3184
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-browserbot.js +0 -2300
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-browserdetect.js +0 -153
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-commandhandlers.js +0 -377
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-executionloop.js +0 -175
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-logging.js +0 -148
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-remoterunner.js +0 -695
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-testrunner.js +0 -1362
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-version.js +0 -5
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/ui-doc.html +0 -803
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/ui-element.js +0 -1537
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/ui-map-sample.js +0 -979
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/user-extensions.js +0 -3
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/user-extensions.js.sample +0 -75
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/xmlextras.js +0 -153
- data/vendor/plugins/selenium-on-rails/selenium-core/selenium-logo.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/selenium-test.css +0 -43
- data/vendor/plugins/selenium-on-rails/selenium-core/selenium.css +0 -316
- data/vendor/plugins/selenium-on-rails/selenium-core/xpath/dom.js +0 -566
- data/vendor/plugins/selenium-on-rails/selenium-core/xpath/javascript-xpath-0.1.11.js +0 -2816
- data/vendor/plugins/selenium-on-rails/selenium-core/xpath/util.js +0 -549
- data/vendor/plugins/selenium-on-rails/selenium-core/xpath/xmltoken.js +0 -149
- data/vendor/plugins/selenium-on-rails/selenium-core/xpath/xpath.js +0 -2450
- data/vendor/plugins/selenium-on-rails/tasks/test_acceptance.rake +0 -8
- data/vendor/plugins/selenium-on-rails/test/fixtures/config.yml +0 -37
- data/vendor/plugins/selenium-on-rails/test/fixtures/selenium.yml +0 -27
- data/vendor/plugins/selenium-on-rails/test/paths_test.rb +0 -72
- data/vendor/plugins/selenium-on-rails/test/renderer_test.rb +0 -157
- data/vendor/plugins/selenium-on-rails/test/rselenese_test.rb +0 -708
- data/vendor/plugins/selenium-on-rails/test/selenese_test.rb +0 -242
- data/vendor/plugins/selenium-on-rails/test/selenium_controller_test.rb +0 -67
- data/vendor/plugins/selenium-on-rails/test/selenium_on_rails_config_test.rb +0 -43
- data/vendor/plugins/selenium-on-rails/test/selenium_support_test.rb +0 -35
- data/vendor/plugins/selenium-on-rails/test/setup_test.rb +0 -31
- data/vendor/plugins/selenium-on-rails/test/suite_renderer_test.rb +0 -109
- data/vendor/plugins/selenium-on-rails/test/switch_environment_controller_test.rb +0 -17
- data/vendor/plugins/selenium-on-rails/test/test_builder_functions_authortest.rb +0 -51
- data/vendor/plugins/selenium-on-rails/test/test_helper.rb +0 -101
- data/vendor/plugins/selenium-on-rails/test_data/_partial.rsel +0 -1
- data/vendor/plugins/selenium-on-rails/test_data/own_layout.html +0 -12
- data/vendor/plugins/selenium-on-rails/test_data/partials/_html.html +0 -6
- data/vendor/plugins/selenium-on-rails/test_data/partials/_nesting.rsel +0 -2
- data/vendor/plugins/selenium-on-rails/test_data/partials/_rhtml.rhtml +0 -6
- data/vendor/plugins/selenium-on-rails/test_data/partials/_rsel.rsel +0 -1
- data/vendor/plugins/selenium-on-rails/test_data/partials/_sel.sel +0 -5
- data/vendor/plugins/selenium-on-rails/test_data/partials/all_partials.rsel +0 -5
- data/vendor/plugins/selenium-on-rails/test_data/rhtml.rhtml +0 -7
- data/vendor/plugins/selenium-on-rails/test_data/rselenese.rsel +0 -8
- data/vendor/plugins/selenium-on-rails/test_data/selenese.sel +0 -7
- data/vendor/plugins/selenium-on-rails/test_data/suite_one/subsuite/suite_one_subsuite_testcase.sel +0 -1
- data/vendor/plugins/selenium-on-rails/test_data/suite_one/suite_one_testcase1.sel +0 -1
- data/vendor/plugins/selenium-on-rails/test_data/suite_one/suite_one_testcase2.sel +0 -1
- data/vendor/plugins/selenium-on-rails/test_data/suite_two/suite_two_testcase.sel +0 -1
|
@@ -1,441 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
-
<head>
|
|
8
|
-
<title>Class: SeleniumOnRails::TestBuilder</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
-
<script type="text/javascript">
|
|
13
|
-
// <![CDATA[
|
|
14
|
-
|
|
15
|
-
function popupCode( url ) {
|
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function toggleCode( id ) {
|
|
20
|
-
if ( document.getElementById )
|
|
21
|
-
elem = document.getElementById( id );
|
|
22
|
-
else if ( document.all )
|
|
23
|
-
elem = eval( "document.all." + id );
|
|
24
|
-
else
|
|
25
|
-
return false;
|
|
26
|
-
|
|
27
|
-
elemStyle = elem.style;
|
|
28
|
-
|
|
29
|
-
if ( elemStyle.display != "block" ) {
|
|
30
|
-
elemStyle.display = "block"
|
|
31
|
-
} else {
|
|
32
|
-
elemStyle.display = "none"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Make codeblocks hidden by default
|
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
-
|
|
41
|
-
// ]]>
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
</head>
|
|
45
|
-
<body>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div id="classHeader">
|
|
50
|
-
<table class="header-table">
|
|
51
|
-
<tr class="top-aligned-row">
|
|
52
|
-
<td><strong>Class</strong></td>
|
|
53
|
-
<td class="class-name-in-header">SeleniumOnRails::TestBuilder</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr class="top-aligned-row">
|
|
56
|
-
<td><strong>In:</strong></td>
|
|
57
|
-
<td>
|
|
58
|
-
<a href="../../files/lib/selenium_on_rails/test_builder_rb.html">
|
|
59
|
-
lib/selenium_on_rails/test_builder.rb
|
|
60
|
-
</a>
|
|
61
|
-
<br />
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
|
|
65
|
-
<tr class="top-aligned-row">
|
|
66
|
-
<td><strong>Parent:</strong></td>
|
|
67
|
-
<td>
|
|
68
|
-
Object
|
|
69
|
-
</td>
|
|
70
|
-
</tr>
|
|
71
|
-
</table>
|
|
72
|
-
</div>
|
|
73
|
-
<!-- banner header -->
|
|
74
|
-
|
|
75
|
-
<div id="bodyContent">
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<div id="contextContent">
|
|
80
|
-
|
|
81
|
-
<div id="description">
|
|
82
|
-
<p>
|
|
83
|
-
Builds Selenium test <a href="TestBuilder.html#M000150">table</a> using a
|
|
84
|
-
high-level Ruby interface. Normally invoked through <a
|
|
85
|
-
href="RSelenese.html">SeleniumOnRails::RSelenese</a>.
|
|
86
|
-
</p>
|
|
87
|
-
<p>
|
|
88
|
-
See <a
|
|
89
|
-
href="TestBuilderActions.html">SeleniumOnRails::TestBuilderActions</a> for
|
|
90
|
-
the available actions and <a
|
|
91
|
-
href="TestBuilderAccessors.html">SeleniumOnRails::TestBuilderAccessors</a>
|
|
92
|
-
for the available checks.
|
|
93
|
-
</p>
|
|
94
|
-
<p>
|
|
95
|
-
For more information on the commands supported by <a
|
|
96
|
-
href="TestBuilder.html">TestBuilder</a>, see the Selenium Commands
|
|
97
|
-
Documentation at <a
|
|
98
|
-
href="http://release.openqa.org/selenium-core/nightly/reference.html">release.openqa.org/selenium-core/nightly/reference.html</a>.
|
|
99
|
-
</p>
|
|
100
|
-
|
|
101
|
-
</div>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
<div id="method-list">
|
|
107
|
-
<h3 class="section-bar">Methods</h3>
|
|
108
|
-
|
|
109
|
-
<div class="name-list">
|
|
110
|
-
<a href="#M000156">collection_arg</a>
|
|
111
|
-
<a href="#M000151">command</a>
|
|
112
|
-
<a href="#M000153">command_and_wait</a>
|
|
113
|
-
<a href="#M000152">command_verbatim</a>
|
|
114
|
-
<a href="#M000148">exactize</a>
|
|
115
|
-
<a href="#M000154">make_command_waiting</a>
|
|
116
|
-
<a href="#M000149">new</a>
|
|
117
|
-
<a href="#M000147">selenize</a>
|
|
118
|
-
<a href="#M000150">table</a>
|
|
119
|
-
<a href="#M000155">url_arg</a>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
|
-
</div>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
<!-- if includes -->
|
|
127
|
-
<div id="includes">
|
|
128
|
-
<h3 class="section-bar">Included Modules</h3>
|
|
129
|
-
|
|
130
|
-
<div id="includes-list">
|
|
131
|
-
<span class="include-name"><a href="TestBuilderActions.html">SeleniumOnRails::TestBuilderActions</a></span>
|
|
132
|
-
<span class="include-name"><a href="TestBuilderAccessors.html">SeleniumOnRails::TestBuilderAccessors</a></span>
|
|
133
|
-
<span class="include-name"><a href="TestBuilderUserActions.html">SeleniumOnRails::TestBuilderUserActions</a></span>
|
|
134
|
-
<span class="include-name"><a href="TestBuilderUserAccessors.html">SeleniumOnRails::TestBuilderUserAccessors</a></span>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
|
|
138
|
-
<div id="section">
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
<!-- if method_list -->
|
|
148
|
-
<div id="methods">
|
|
149
|
-
<h3 class="section-bar">Public Class methods</h3>
|
|
150
|
-
|
|
151
|
-
<div id="method-M000149" class="method-detail">
|
|
152
|
-
<a name="M000149"></a>
|
|
153
|
-
|
|
154
|
-
<div class="method-heading">
|
|
155
|
-
<a href="#M000149" class="method-signature">
|
|
156
|
-
<span class="method-name">new</span><span class="method-args">(view)</span>
|
|
157
|
-
</a>
|
|
158
|
-
</div>
|
|
159
|
-
|
|
160
|
-
<div class="method-description">
|
|
161
|
-
<p>
|
|
162
|
-
Create a <a href="TestBuilder.html#M000149">new</a> <a
|
|
163
|
-
href="TestBuilder.html">TestBuilder</a> for <em>view</em>.
|
|
164
|
-
</p>
|
|
165
|
-
<p><a class="source-toggle" href="#"
|
|
166
|
-
onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
|
|
167
|
-
<div class="method-source-code" id="M000149-source">
|
|
168
|
-
<pre>
|
|
169
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 47</span>
|
|
170
|
-
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">view</span>
|
|
171
|
-
48: <span class="ruby-ivar">@view</span> = <span class="ruby-identifier">view</span>
|
|
172
|
-
49: <span class="ruby-ivar">@output</span> = <span class="ruby-value str">''</span>
|
|
173
|
-
50: <span class="ruby-ivar">@xml</span> = <span class="ruby-constant">Builder</span><span class="ruby-operator">::</span><span class="ruby-constant">XmlMarkup</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">:indent</span> =<span class="ruby-operator">></span> <span class="ruby-value">2</span>, <span class="ruby-identifier">:target</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@output</span>
|
|
174
|
-
51: <span class="ruby-keyword kw">end</span>
|
|
175
|
-
</pre>
|
|
176
|
-
</div>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
|
|
180
|
-
<div id="method-M000147" class="method-detail">
|
|
181
|
-
<a name="M000147"></a>
|
|
182
|
-
|
|
183
|
-
<div class="method-heading">
|
|
184
|
-
<a href="#M000147" class="method-signature">
|
|
185
|
-
<span class="method-name">selenize</span><span class="method-args">(str)</span>
|
|
186
|
-
</a>
|
|
187
|
-
</div>
|
|
188
|
-
|
|
189
|
-
<div class="method-description">
|
|
190
|
-
<p>
|
|
191
|
-
Convert <em>str</em> to a Selenium <a
|
|
192
|
-
href="TestBuilder.html#M000151">command</a> name.
|
|
193
|
-
</p>
|
|
194
|
-
<p><a class="source-toggle" href="#"
|
|
195
|
-
onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
|
|
196
|
-
<div class="method-source-code" id="M000147-source">
|
|
197
|
-
<pre>
|
|
198
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 36</span>
|
|
199
|
-
36: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">selenize</span> <span class="ruby-identifier">str</span>
|
|
200
|
-
37: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">camelize</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^[A-Z]/</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">downcase</span> }
|
|
201
|
-
38: <span class="ruby-keyword kw">end</span>
|
|
202
|
-
</pre>
|
|
203
|
-
</div>
|
|
204
|
-
</div>
|
|
205
|
-
</div>
|
|
206
|
-
|
|
207
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
|
208
|
-
|
|
209
|
-
<div id="method-M000151" class="method-detail">
|
|
210
|
-
<a name="M000151"></a>
|
|
211
|
-
|
|
212
|
-
<div class="method-heading">
|
|
213
|
-
<a href="#M000151" class="method-signature">
|
|
214
|
-
<span class="method-name">command</span><span class="method-args">(cmd, target=nil, value=nil)</span>
|
|
215
|
-
</a>
|
|
216
|
-
</div>
|
|
217
|
-
|
|
218
|
-
<div class="method-description">
|
|
219
|
-
<p>
|
|
220
|
-
Add a <a href="TestBuilder.html#M000149">new</a> test <a
|
|
221
|
-
href="TestBuilder.html#M000151">command</a> using <em>cmd</em>,
|
|
222
|
-
<em>target</em> and <em>value</em>.
|
|
223
|
-
</p>
|
|
224
|
-
<p><a class="source-toggle" href="#"
|
|
225
|
-
onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
|
|
226
|
-
<div class="method-source-code" id="M000151-source">
|
|
227
|
-
<pre>
|
|
228
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 62</span>
|
|
229
|
-
62: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">command</span> <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">target</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>
|
|
230
|
-
63: <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">tr</span> <span class="ruby-keyword kw">do</span>
|
|
231
|
-
64: <span class="ruby-identifier">_tdata</span> <span class="ruby-identifier">cmd</span>
|
|
232
|
-
65: <span class="ruby-identifier">_tdata</span> <span class="ruby-identifier">target</span>
|
|
233
|
-
66: <span class="ruby-identifier">_tdata</span> <span class="ruby-identifier">value</span>
|
|
234
|
-
67: <span class="ruby-keyword kw">end</span>
|
|
235
|
-
68: <span class="ruby-keyword kw">end</span>
|
|
236
|
-
</pre>
|
|
237
|
-
</div>
|
|
238
|
-
</div>
|
|
239
|
-
</div>
|
|
240
|
-
|
|
241
|
-
<div id="method-M000153" class="method-detail">
|
|
242
|
-
<a name="M000153"></a>
|
|
243
|
-
|
|
244
|
-
<div class="method-heading">
|
|
245
|
-
<a href="#M000153" class="method-signature">
|
|
246
|
-
<span class="method-name">command_and_wait</span><span class="method-args">(cmd, target=nil, value=nil)</span>
|
|
247
|
-
</a>
|
|
248
|
-
</div>
|
|
249
|
-
|
|
250
|
-
<div class="method-description">
|
|
251
|
-
<p>
|
|
252
|
-
Same as <em><a href="TestBuilder.html#M000151">command</a></em> but add
|
|
253
|
-
<em>AndWait</em> to the name of <em>cmd</em>.
|
|
254
|
-
</p>
|
|
255
|
-
<p><a class="source-toggle" href="#"
|
|
256
|
-
onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
|
|
257
|
-
<div class="method-source-code" id="M000153-source">
|
|
258
|
-
<pre>
|
|
259
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 73</span>
|
|
260
|
-
73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">command_and_wait</span> <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">target</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>
|
|
261
|
-
74: <span class="ruby-identifier">command_verbatim</span> <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'AndWait'</span>, <span class="ruby-identifier">target</span>, <span class="ruby-identifier">value</span>
|
|
262
|
-
75: <span class="ruby-keyword kw">end</span>
|
|
263
|
-
</pre>
|
|
264
|
-
</div>
|
|
265
|
-
</div>
|
|
266
|
-
</div>
|
|
267
|
-
|
|
268
|
-
<div id="method-M000152" class="method-detail">
|
|
269
|
-
<a name="M000152"></a>
|
|
270
|
-
|
|
271
|
-
<div class="method-heading">
|
|
272
|
-
<span class="method-name">command_verbatim</span><span class="method-args">(cmd, target=nil, value=nil)</span>
|
|
273
|
-
</div>
|
|
274
|
-
|
|
275
|
-
<div class="method-description">
|
|
276
|
-
<p>
|
|
277
|
-
Alias for <a href="TestBuilder.html#M000151">command</a>
|
|
278
|
-
</p>
|
|
279
|
-
</div>
|
|
280
|
-
</div>
|
|
281
|
-
|
|
282
|
-
<div id="method-M000148" class="method-detail">
|
|
283
|
-
<a name="M000148"></a>
|
|
284
|
-
|
|
285
|
-
<div class="method-heading">
|
|
286
|
-
<a href="#M000148" class="method-signature">
|
|
287
|
-
<span class="method-name">exactize</span><span class="method-args">(pattern)</span>
|
|
288
|
-
</a>
|
|
289
|
-
</div>
|
|
290
|
-
|
|
291
|
-
<div class="method-description">
|
|
292
|
-
<p>
|
|
293
|
-
Prepends <em>pattern</em> with ‘exact:’ if it would be
|
|
294
|
-
considered containing string-match pattern otherwise.
|
|
295
|
-
</p>
|
|
296
|
-
<p><a class="source-toggle" href="#"
|
|
297
|
-
onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
|
|
298
|
-
<div class="method-source-code" id="M000148-source">
|
|
299
|
-
<pre>
|
|
300
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 42</span>
|
|
301
|
-
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exactize</span> <span class="ruby-identifier">pattern</span>
|
|
302
|
-
43: <span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">':'</span>) <span class="ruby-operator">?</span> <span class="ruby-node">"exact:#{pattern}"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">pattern</span>
|
|
303
|
-
44: <span class="ruby-keyword kw">end</span>
|
|
304
|
-
</pre>
|
|
305
|
-
</div>
|
|
306
|
-
</div>
|
|
307
|
-
</div>
|
|
308
|
-
|
|
309
|
-
<div id="method-M000154" class="method-detail">
|
|
310
|
-
<a name="M000154"></a>
|
|
311
|
-
|
|
312
|
-
<div class="method-heading">
|
|
313
|
-
<a href="#M000154" class="method-signature">
|
|
314
|
-
<span class="method-name">make_command_waiting</span><span class="method-args">() {|| ...}</span>
|
|
315
|
-
</a>
|
|
316
|
-
</div>
|
|
317
|
-
|
|
318
|
-
<div class="method-description">
|
|
319
|
-
<p>
|
|
320
|
-
Re routes commands in the provided block to <a
|
|
321
|
-
href="TestBuilder.html#M000153">command_and_wait</a> instead of <a
|
|
322
|
-
href="TestBuilder.html#M000151">command</a>.
|
|
323
|
-
</p>
|
|
324
|
-
<p><a class="source-toggle" href="#"
|
|
325
|
-
onclick="toggleCode('M000154-source');return false;">[Source]</a></p>
|
|
326
|
-
<div class="method-source-code" id="M000154-source">
|
|
327
|
-
<pre>
|
|
328
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 79</span>
|
|
329
|
-
79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_command_waiting</span>
|
|
330
|
-
80: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:alias_method</span>, <span class="ruby-identifier">:command</span>, <span class="ruby-identifier">:command_and_wait</span>
|
|
331
|
-
81: <span class="ruby-keyword kw">yield</span>
|
|
332
|
-
82: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:alias_method</span>, <span class="ruby-identifier">:command</span>, <span class="ruby-identifier">:command_verbatim</span>
|
|
333
|
-
83: <span class="ruby-keyword kw">end</span>
|
|
334
|
-
</pre>
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
|
-
</div>
|
|
338
|
-
|
|
339
|
-
<div id="method-M000150" class="method-detail">
|
|
340
|
-
<a name="M000150"></a>
|
|
341
|
-
|
|
342
|
-
<div class="method-heading">
|
|
343
|
-
<a href="#M000150" class="method-signature">
|
|
344
|
-
<span class="method-name">table</span><span class="method-args">(title) {|self| ...}</span>
|
|
345
|
-
</a>
|
|
346
|
-
</div>
|
|
347
|
-
|
|
348
|
-
<div class="method-description">
|
|
349
|
-
<p>
|
|
350
|
-
Add a <a href="TestBuilder.html#M000149">new</a> <a
|
|
351
|
-
href="TestBuilder.html#M000150">table</a> of tests, and return the HTML.
|
|
352
|
-
</p>
|
|
353
|
-
<p><a class="source-toggle" href="#"
|
|
354
|
-
onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
|
|
355
|
-
<div class="method-source-code" id="M000150-source">
|
|
356
|
-
<pre>
|
|
357
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 54</span>
|
|
358
|
-
54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table</span> <span class="ruby-identifier">title</span>
|
|
359
|
-
55: <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">table</span> <span class="ruby-keyword kw">do</span>
|
|
360
|
-
56: <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">tr</span> <span class="ruby-keyword kw">do</span> <span class="ruby-ivar">@xml</span>.<span class="ruby-identifier">th</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">:colspan</span> =<span class="ruby-operator">></span> <span class="ruby-value">3</span>) <span class="ruby-keyword kw">end</span>
|
|
361
|
-
57: <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">self</span>
|
|
362
|
-
58: <span class="ruby-keyword kw">end</span>
|
|
363
|
-
59: <span class="ruby-keyword kw">end</span>
|
|
364
|
-
</pre>
|
|
365
|
-
</div>
|
|
366
|
-
</div>
|
|
367
|
-
</div>
|
|
368
|
-
|
|
369
|
-
<h3 class="section-bar">Protected Instance methods</h3>
|
|
370
|
-
|
|
371
|
-
<div id="method-M000156" class="method-detail">
|
|
372
|
-
<a name="M000156"></a>
|
|
373
|
-
|
|
374
|
-
<div class="method-heading">
|
|
375
|
-
<a href="#M000156" class="method-signature">
|
|
376
|
-
<span class="method-name">collection_arg</span><span class="method-args">(arg)</span>
|
|
377
|
-
</a>
|
|
378
|
-
</div>
|
|
379
|
-
|
|
380
|
-
<div class="method-description">
|
|
381
|
-
<p>
|
|
382
|
-
If <em>arg</em> is an array formats <em>arg</em> to a textual
|
|
383
|
-
representation. Otherwise return unchanged.
|
|
384
|
-
</p>
|
|
385
|
-
<p><a class="source-toggle" href="#"
|
|
386
|
-
onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
|
|
387
|
-
<div class="method-source-code" id="M000156-source">
|
|
388
|
-
<pre>
|
|
389
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 95</span>
|
|
390
|
-
95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collection_arg</span> <span class="ruby-identifier">arg</span>
|
|
391
|
-
96: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Array</span>
|
|
392
|
-
97: <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/[\\,]/</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-node">"\\#{s}"</span> } }.<span class="ruby-identifier">join</span>(<span class="ruby-value str">','</span>)
|
|
393
|
-
98: <span class="ruby-keyword kw">else</span>
|
|
394
|
-
99: <span class="ruby-identifier">arg</span>
|
|
395
|
-
100: <span class="ruby-keyword kw">end</span>
|
|
396
|
-
101: <span class="ruby-keyword kw">end</span>
|
|
397
|
-
</pre>
|
|
398
|
-
</div>
|
|
399
|
-
</div>
|
|
400
|
-
</div>
|
|
401
|
-
|
|
402
|
-
<div id="method-M000155" class="method-detail">
|
|
403
|
-
<a name="M000155"></a>
|
|
404
|
-
|
|
405
|
-
<div class="method-heading">
|
|
406
|
-
<a href="#M000155" class="method-signature">
|
|
407
|
-
<span class="method-name">url_arg</span><span class="method-args">(url)</span>
|
|
408
|
-
</a>
|
|
409
|
-
</div>
|
|
410
|
-
|
|
411
|
-
<div class="method-description">
|
|
412
|
-
<p>
|
|
413
|
-
If <em>url</em> is a string, return unchanged. Otherwise, pass it to
|
|
414
|
-
ActionView#UrlHelper#url_for.
|
|
415
|
-
</p>
|
|
416
|
-
<p><a class="source-toggle" href="#"
|
|
417
|
-
onclick="toggleCode('M000155-source');return false;">[Source]</a></p>
|
|
418
|
-
<div class="method-source-code" id="M000155-source">
|
|
419
|
-
<pre>
|
|
420
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder.rb, line 89</span>
|
|
421
|
-
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_arg</span> <span class="ruby-identifier">url</span>
|
|
422
|
-
90: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">String</span>) <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">url</span> <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">exactize</span>(<span class="ruby-ivar">@view</span>.<span class="ruby-identifier">url_for</span>(<span class="ruby-identifier">url</span>)) <span class="ruby-keyword kw">end</span>
|
|
423
|
-
91: <span class="ruby-keyword kw">end</span>
|
|
424
|
-
</pre>
|
|
425
|
-
</div>
|
|
426
|
-
</div>
|
|
427
|
-
</div>
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
</div>
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
</div>
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
<div id="validator-badges">
|
|
437
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
438
|
-
</div>
|
|
439
|
-
|
|
440
|
-
</body>
|
|
441
|
-
</html>
|
|
@@ -1,3098 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
-
<head>
|
|
8
|
-
<title>Module: SeleniumOnRails::TestBuilderAccessors</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
-
<script type="text/javascript">
|
|
13
|
-
// <![CDATA[
|
|
14
|
-
|
|
15
|
-
function popupCode( url ) {
|
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function toggleCode( id ) {
|
|
20
|
-
if ( document.getElementById )
|
|
21
|
-
elem = document.getElementById( id );
|
|
22
|
-
else if ( document.all )
|
|
23
|
-
elem = eval( "document.all." + id );
|
|
24
|
-
else
|
|
25
|
-
return false;
|
|
26
|
-
|
|
27
|
-
elemStyle = elem.style;
|
|
28
|
-
|
|
29
|
-
if ( elemStyle.display != "block" ) {
|
|
30
|
-
elemStyle.display = "block"
|
|
31
|
-
} else {
|
|
32
|
-
elemStyle.display = "none"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Make codeblocks hidden by default
|
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
-
|
|
41
|
-
// ]]>
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
</head>
|
|
45
|
-
<body>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div id="classHeader">
|
|
50
|
-
<table class="header-table">
|
|
51
|
-
<tr class="top-aligned-row">
|
|
52
|
-
<td><strong>Module</strong></td>
|
|
53
|
-
<td class="class-name-in-header">SeleniumOnRails::TestBuilderAccessors</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr class="top-aligned-row">
|
|
56
|
-
<td><strong>In:</strong></td>
|
|
57
|
-
<td>
|
|
58
|
-
<a href="../../files/lib/selenium_on_rails/test_builder_accessors_rb.html">
|
|
59
|
-
lib/selenium_on_rails/test_builder_accessors.rb
|
|
60
|
-
</a>
|
|
61
|
-
<br />
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
|
|
65
|
-
</table>
|
|
66
|
-
</div>
|
|
67
|
-
<!-- banner header -->
|
|
68
|
-
|
|
69
|
-
<div id="bodyContent">
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<div id="contextContent">
|
|
74
|
-
|
|
75
|
-
<div id="description">
|
|
76
|
-
<p>
|
|
77
|
-
The accessors available for <a
|
|
78
|
-
href="TestBuilder.html">SeleniumOnRails::TestBuilder</a> tests.
|
|
79
|
-
</p>
|
|
80
|
-
<p>
|
|
81
|
-
For each <tt>store_foo</tt> there‘s <tt>assert_foo</tt>,
|
|
82
|
-
<tt>assert_not_foo</tt>, <tt>verify_foo</tt>, <tt>verify_not_foo</tt>,
|
|
83
|
-
<tt>wait_for_foo</tt>, <tt>wait_for_not_foo</tt>.
|
|
84
|
-
</p>
|
|
85
|
-
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
<div id="method-list">
|
|
92
|
-
<h3 class="section-bar">Methods</h3>
|
|
93
|
-
|
|
94
|
-
<div class="name-list">
|
|
95
|
-
<a href="#M000100">store_absolute_location</a>
|
|
96
|
-
<a href="#M000097">store_alert</a>
|
|
97
|
-
<a href="#M000091">store_alert_present</a>
|
|
98
|
-
<a href="#M000134">store_all_buttons</a>
|
|
99
|
-
<a href="#M000136">store_all_fields</a>
|
|
100
|
-
<a href="#M000135">store_all_links</a>
|
|
101
|
-
<a href="#M000088">store_all_window_ids</a>
|
|
102
|
-
<a href="#M000089">store_all_window_names</a>
|
|
103
|
-
<a href="#M000090">store_all_window_titles</a>
|
|
104
|
-
<a href="#M000122">store_attribute</a>
|
|
105
|
-
<a href="#M000092">store_attribute_from_all_windows</a>
|
|
106
|
-
<a href="#M000104">store_body_text</a>
|
|
107
|
-
<a href="#M000108">store_checked</a>
|
|
108
|
-
<a href="#M000098">store_confirmation</a>
|
|
109
|
-
<a href="#M000094">store_confirmation_present</a>
|
|
110
|
-
<a href="#M000095">store_cookie</a>
|
|
111
|
-
<a href="#M000096">store_cursor_position</a>
|
|
112
|
-
<a href="#M000133">store_editable</a>
|
|
113
|
-
<a href="#M000127">store_element_height</a>
|
|
114
|
-
<a href="#M000128">store_element_index</a>
|
|
115
|
-
<a href="#M000130">store_element_position_left</a>
|
|
116
|
-
<a href="#M000131">store_element_position_top</a>
|
|
117
|
-
<a href="#M000125">store_element_present</a>
|
|
118
|
-
<a href="#M000129">store_element_width</a>
|
|
119
|
-
<a href="#M000086">store_error_on_next</a>
|
|
120
|
-
<a href="#M000107">store_eval</a>
|
|
121
|
-
<a href="#M000138">store_expression</a>
|
|
122
|
-
<a href="#M000087">store_failure_on_next</a>
|
|
123
|
-
<a href="#M000137">store_html_source</a>
|
|
124
|
-
<a href="#M000101">store_location</a>
|
|
125
|
-
<a href="#M000132">store_log_messages</a>
|
|
126
|
-
<a href="#M000102">store_mouse_speed</a>
|
|
127
|
-
<a href="#M000123">store_ordered</a>
|
|
128
|
-
<a href="#M000099">store_prompt</a>
|
|
129
|
-
<a href="#M000093">store_prompt_present</a>
|
|
130
|
-
<a href="#M000121">store_select_options</a>
|
|
131
|
-
<a href="#M000110">store_selected</a>
|
|
132
|
-
<a href="#M000111">store_selected_id</a>
|
|
133
|
-
<a href="#M000112">store_selected_ids</a>
|
|
134
|
-
<a href="#M000113">store_selected_index</a>
|
|
135
|
-
<a href="#M000114">store_selected_indexes</a>
|
|
136
|
-
<a href="#M000115">store_selected_label</a>
|
|
137
|
-
<a href="#M000116">store_selected_labels</a>
|
|
138
|
-
<a href="#M000120">store_selected_options</a>
|
|
139
|
-
<a href="#M000117">store_selected_value</a>
|
|
140
|
-
<a href="#M000118">store_selected_values</a>
|
|
141
|
-
<a href="#M000119">store_something_selected</a>
|
|
142
|
-
<a href="#M000109">store_table</a>
|
|
143
|
-
<a href="#M000106">store_text</a>
|
|
144
|
-
<a href="#M000124">store_text_present</a>
|
|
145
|
-
<a href="#M000103">store_title</a>
|
|
146
|
-
<a href="#M000105">store_value</a>
|
|
147
|
-
<a href="#M000126">store_visible</a>
|
|
148
|
-
<a href="#M000139">store_whether_this_frame_match_frame_expression</a>
|
|
149
|
-
<a href="#M000140">store_whether_this_window_match_window_expression</a>
|
|
150
|
-
</div>
|
|
151
|
-
</div>
|
|
152
|
-
|
|
153
|
-
</div>
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
<!-- if includes -->
|
|
157
|
-
|
|
158
|
-
<div id="section">
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
<!-- if method_list -->
|
|
168
|
-
<div id="methods">
|
|
169
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
|
170
|
-
|
|
171
|
-
<div id="method-M000100" class="method-detail">
|
|
172
|
-
<a name="M000100"></a>
|
|
173
|
-
|
|
174
|
-
<div class="method-heading">
|
|
175
|
-
<a href="#M000100" class="method-signature">
|
|
176
|
-
<span class="method-name">store_absolute_location</span><span class="method-args">(variable_name)</span>
|
|
177
|
-
</a>
|
|
178
|
-
</div>
|
|
179
|
-
|
|
180
|
-
<div class="method-description">
|
|
181
|
-
<p>
|
|
182
|
-
Gets the absolute URL of the current page.
|
|
183
|
-
</p>
|
|
184
|
-
<p>
|
|
185
|
-
Related Assertions, automatically generated:
|
|
186
|
-
</p>
|
|
187
|
-
<ul>
|
|
188
|
-
<li><tt>assert_absolute_location(pattern)</tt>
|
|
189
|
-
|
|
190
|
-
</li>
|
|
191
|
-
<li><tt>assert_not_absolute_location(pattern)</tt>
|
|
192
|
-
|
|
193
|
-
</li>
|
|
194
|
-
<li><tt>verify_absolute_location_present(pattern)</tt>
|
|
195
|
-
|
|
196
|
-
</li>
|
|
197
|
-
<li><tt>verify_not_absolute_location(pattern)</tt>
|
|
198
|
-
|
|
199
|
-
</li>
|
|
200
|
-
<li><tt>wait_for_absolute_location(pattern)</tt>
|
|
201
|
-
|
|
202
|
-
</li>
|
|
203
|
-
<li><tt>wait_for_not_absolute_location(pattern)</tt>
|
|
204
|
-
|
|
205
|
-
</li>
|
|
206
|
-
</ul>
|
|
207
|
-
<p><a class="source-toggle" href="#"
|
|
208
|
-
onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
|
|
209
|
-
<div class="method-source-code" id="M000100-source">
|
|
210
|
-
<pre>
|
|
211
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 246</span>
|
|
212
|
-
246: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_absolute_location</span> <span class="ruby-identifier">variable_name</span>
|
|
213
|
-
247: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAbsoluteLocation'</span>, <span class="ruby-identifier">variable_name</span>
|
|
214
|
-
248: <span class="ruby-keyword kw">end</span>
|
|
215
|
-
</pre>
|
|
216
|
-
</div>
|
|
217
|
-
</div>
|
|
218
|
-
</div>
|
|
219
|
-
|
|
220
|
-
<div id="method-M000097" class="method-detail">
|
|
221
|
-
<a name="M000097"></a>
|
|
222
|
-
|
|
223
|
-
<div class="method-heading">
|
|
224
|
-
<a href="#M000097" class="method-signature">
|
|
225
|
-
<span class="method-name">store_alert</span><span class="method-args">(variable_name)</span>
|
|
226
|
-
</a>
|
|
227
|
-
</div>
|
|
228
|
-
|
|
229
|
-
<div class="method-description">
|
|
230
|
-
<p>
|
|
231
|
-
Retrieves the message of a JavaScript alert generated during the previous
|
|
232
|
-
action, or fail if there were no alerts.
|
|
233
|
-
</p>
|
|
234
|
-
<p>
|
|
235
|
-
Getting an alert has the same effect as manually clicking OK. If an alert
|
|
236
|
-
is generated but you do not get/verify it, the next Selenium action will
|
|
237
|
-
fail.
|
|
238
|
-
</p>
|
|
239
|
-
<p>
|
|
240
|
-
NOTE: under Selenium, JavaScript alerts will NOT pop up a visible alert
|
|
241
|
-
dialog.
|
|
242
|
-
</p>
|
|
243
|
-
<p>
|
|
244
|
-
NOTE: Selenium does NOT support JavaScript alerts that are generated in a
|
|
245
|
-
page‘s <tt>onload()</tt> event handler. In this case a visible dialog
|
|
246
|
-
WILL be generated and Selenium will hang until someone manually clicks OK.
|
|
247
|
-
</p>
|
|
248
|
-
<p>
|
|
249
|
-
Related Assertions, automatically generated:
|
|
250
|
-
</p>
|
|
251
|
-
<ul>
|
|
252
|
-
<li><tt>assert_alert(pattern)</tt>
|
|
253
|
-
|
|
254
|
-
</li>
|
|
255
|
-
<li><tt>assert_not_alert(pattern)</tt>
|
|
256
|
-
|
|
257
|
-
</li>
|
|
258
|
-
<li><tt>verify_alert_present(pattern)</tt>
|
|
259
|
-
|
|
260
|
-
</li>
|
|
261
|
-
<li><tt>verify_not_alert(pattern)</tt>
|
|
262
|
-
|
|
263
|
-
</li>
|
|
264
|
-
<li><tt>wait_for_alert(pattern)</tt>
|
|
265
|
-
|
|
266
|
-
</li>
|
|
267
|
-
<li><tt>wait_for_not_alert(pattern)</tt>
|
|
268
|
-
|
|
269
|
-
</li>
|
|
270
|
-
</ul>
|
|
271
|
-
<p><a class="source-toggle" href="#"
|
|
272
|
-
onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
|
|
273
|
-
<div class="method-source-code" id="M000097-source">
|
|
274
|
-
<pre>
|
|
275
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 183</span>
|
|
276
|
-
183: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_alert</span> <span class="ruby-identifier">variable_name</span>
|
|
277
|
-
184: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAlert'</span>, <span class="ruby-identifier">variable_name</span>
|
|
278
|
-
185: <span class="ruby-keyword kw">end</span>
|
|
279
|
-
</pre>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
</div>
|
|
283
|
-
|
|
284
|
-
<div id="method-M000091" class="method-detail">
|
|
285
|
-
<a name="M000091"></a>
|
|
286
|
-
|
|
287
|
-
<div class="method-heading">
|
|
288
|
-
<a href="#M000091" class="method-signature">
|
|
289
|
-
<span class="method-name">store_alert_present</span><span class="method-args">(variable_name)</span>
|
|
290
|
-
</a>
|
|
291
|
-
</div>
|
|
292
|
-
|
|
293
|
-
<div class="method-description">
|
|
294
|
-
<p>
|
|
295
|
-
Has an alert occurred?
|
|
296
|
-
</p>
|
|
297
|
-
<p>
|
|
298
|
-
Related Assertions, automatically generated:
|
|
299
|
-
</p>
|
|
300
|
-
<ul>
|
|
301
|
-
<li><tt>assert_alert_present</tt>
|
|
302
|
-
|
|
303
|
-
</li>
|
|
304
|
-
<li><tt>assert_alert_not_present</tt>
|
|
305
|
-
|
|
306
|
-
</li>
|
|
307
|
-
<li><tt>verify_alert_present</tt>
|
|
308
|
-
|
|
309
|
-
</li>
|
|
310
|
-
<li><tt>verify_alert_not_present</tt>
|
|
311
|
-
|
|
312
|
-
</li>
|
|
313
|
-
<li><tt>wait_for_alert_present</tt>
|
|
314
|
-
|
|
315
|
-
</li>
|
|
316
|
-
<li><tt>wait_for_alert_not_present</tt>
|
|
317
|
-
|
|
318
|
-
</li>
|
|
319
|
-
</ul>
|
|
320
|
-
<p><a class="source-toggle" href="#"
|
|
321
|
-
onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
|
|
322
|
-
<div class="method-source-code" id="M000091-source">
|
|
323
|
-
<pre>
|
|
324
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 89</span>
|
|
325
|
-
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_alert_present</span> <span class="ruby-identifier">variable_name</span>
|
|
326
|
-
90: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAlertPresent'</span>, <span class="ruby-identifier">variable_name</span>
|
|
327
|
-
91: <span class="ruby-keyword kw">end</span>
|
|
328
|
-
</pre>
|
|
329
|
-
</div>
|
|
330
|
-
</div>
|
|
331
|
-
</div>
|
|
332
|
-
|
|
333
|
-
<div id="method-M000134" class="method-detail">
|
|
334
|
-
<a name="M000134"></a>
|
|
335
|
-
|
|
336
|
-
<div class="method-heading">
|
|
337
|
-
<a href="#M000134" class="method-signature">
|
|
338
|
-
<span class="method-name">store_all_buttons</span><span class="method-args">(variable_name)</span>
|
|
339
|
-
</a>
|
|
340
|
-
</div>
|
|
341
|
-
|
|
342
|
-
<div class="method-description">
|
|
343
|
-
<p>
|
|
344
|
-
Returns the IDs of all buttons on the page.
|
|
345
|
-
</p>
|
|
346
|
-
<p>
|
|
347
|
-
If a given button has no ID, it will appear as "" in this array.
|
|
348
|
-
</p>
|
|
349
|
-
<p>
|
|
350
|
-
The <tt>pattern</tt> for the automatically generated assertions can either
|
|
351
|
-
take an array or a pattern.
|
|
352
|
-
</p>
|
|
353
|
-
<pre>
|
|
354
|
-
assert_all_buttons ['but1', 'but2']
|
|
355
|
-
assert_all_buttons 'but?,but?*'
|
|
356
|
-
</pre>
|
|
357
|
-
<p>
|
|
358
|
-
Related Assertions, automatically generated:
|
|
359
|
-
</p>
|
|
360
|
-
<ul>
|
|
361
|
-
<li><tt>assert_all_buttons(pattern)</tt>
|
|
362
|
-
|
|
363
|
-
</li>
|
|
364
|
-
<li><tt>assert_not_all_buttons(pattern)</tt>
|
|
365
|
-
|
|
366
|
-
</li>
|
|
367
|
-
<li><tt>verify_all_buttons(pattern)</tt>
|
|
368
|
-
|
|
369
|
-
</li>
|
|
370
|
-
<li><tt>verify_not_all_buttons(pattern)</tt>
|
|
371
|
-
|
|
372
|
-
</li>
|
|
373
|
-
<li><tt>wait_for_all_buttons(pattern)</tt>
|
|
374
|
-
|
|
375
|
-
</li>
|
|
376
|
-
<li><tt>wait_for_not_all_buttons(pattern)</tt>
|
|
377
|
-
|
|
378
|
-
</li>
|
|
379
|
-
</ul>
|
|
380
|
-
<p><a class="source-toggle" href="#"
|
|
381
|
-
onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
|
|
382
|
-
<div class="method-source-code" id="M000134-source">
|
|
383
|
-
<pre>
|
|
384
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 754</span>
|
|
385
|
-
754: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_buttons</span> <span class="ruby-identifier">variable_name</span>
|
|
386
|
-
755: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllButtons'</span>, <span class="ruby-identifier">variable_name</span>
|
|
387
|
-
756: <span class="ruby-keyword kw">end</span>
|
|
388
|
-
</pre>
|
|
389
|
-
</div>
|
|
390
|
-
</div>
|
|
391
|
-
</div>
|
|
392
|
-
|
|
393
|
-
<div id="method-M000136" class="method-detail">
|
|
394
|
-
<a name="M000136"></a>
|
|
395
|
-
|
|
396
|
-
<div class="method-heading">
|
|
397
|
-
<a href="#M000136" class="method-signature">
|
|
398
|
-
<span class="method-name">store_all_fields</span><span class="method-args">(variable_name)</span>
|
|
399
|
-
</a>
|
|
400
|
-
</div>
|
|
401
|
-
|
|
402
|
-
<div class="method-description">
|
|
403
|
-
<p>
|
|
404
|
-
Returns the IDs of all input fields on the page.
|
|
405
|
-
</p>
|
|
406
|
-
<p>
|
|
407
|
-
If a given field has no ID, it will appear as "" in this array.
|
|
408
|
-
</p>
|
|
409
|
-
<p>
|
|
410
|
-
The <tt>pattern</tt> for the automatically generated assertions can either
|
|
411
|
-
take an array or a pattern.
|
|
412
|
-
</p>
|
|
413
|
-
<pre>
|
|
414
|
-
assert_all_fields ['field1', 'field2']
|
|
415
|
-
assert_all_fields 'field?,field?*'
|
|
416
|
-
</pre>
|
|
417
|
-
<p>
|
|
418
|
-
Related Assertions, automatically generated:
|
|
419
|
-
</p>
|
|
420
|
-
<ul>
|
|
421
|
-
<li><tt>assert_all_fields(pattern)</tt>
|
|
422
|
-
|
|
423
|
-
</li>
|
|
424
|
-
<li><tt>assert_not_all_fields(pattern)</tt>
|
|
425
|
-
|
|
426
|
-
</li>
|
|
427
|
-
<li><tt>verify_all_fields(pattern)</tt>
|
|
428
|
-
|
|
429
|
-
</li>
|
|
430
|
-
<li><tt>verify_not_all_fields(pattern)</tt>
|
|
431
|
-
|
|
432
|
-
</li>
|
|
433
|
-
<li><tt>wait_for_all_fields(pattern)</tt>
|
|
434
|
-
|
|
435
|
-
</li>
|
|
436
|
-
<li><tt>wait_for_not_all_fields(pattern)</tt>
|
|
437
|
-
|
|
438
|
-
</li>
|
|
439
|
-
</ul>
|
|
440
|
-
<p><a class="source-toggle" href="#"
|
|
441
|
-
onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
|
|
442
|
-
<div class="method-source-code" id="M000136-source">
|
|
443
|
-
<pre>
|
|
444
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 794</span>
|
|
445
|
-
794: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_fields</span> <span class="ruby-identifier">variable_name</span>
|
|
446
|
-
795: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllFields'</span>, <span class="ruby-identifier">variable_name</span>
|
|
447
|
-
796: <span class="ruby-keyword kw">end</span>
|
|
448
|
-
</pre>
|
|
449
|
-
</div>
|
|
450
|
-
</div>
|
|
451
|
-
</div>
|
|
452
|
-
|
|
453
|
-
<div id="method-M000135" class="method-detail">
|
|
454
|
-
<a name="M000135"></a>
|
|
455
|
-
|
|
456
|
-
<div class="method-heading">
|
|
457
|
-
<a href="#M000135" class="method-signature">
|
|
458
|
-
<span class="method-name">store_all_links</span><span class="method-args">(variable_name)</span>
|
|
459
|
-
</a>
|
|
460
|
-
</div>
|
|
461
|
-
|
|
462
|
-
<div class="method-description">
|
|
463
|
-
<p>
|
|
464
|
-
Returns the IDs of all links on the page.
|
|
465
|
-
</p>
|
|
466
|
-
<p>
|
|
467
|
-
If a given link has no ID, it will appear as "" in this array.
|
|
468
|
-
</p>
|
|
469
|
-
<p>
|
|
470
|
-
The <tt>pattern</tt> for the automatically generated assertions can either
|
|
471
|
-
take an array or a pattern.
|
|
472
|
-
</p>
|
|
473
|
-
<pre>
|
|
474
|
-
assert_all_links ['link1', 'link2']
|
|
475
|
-
assert_all_links 'link?,link?*'
|
|
476
|
-
</pre>
|
|
477
|
-
<p>
|
|
478
|
-
Related Assertions, automatically generated:
|
|
479
|
-
</p>
|
|
480
|
-
<ul>
|
|
481
|
-
<li><tt>assert_all_links(pattern)</tt>
|
|
482
|
-
|
|
483
|
-
</li>
|
|
484
|
-
<li><tt>assert_not_all_links(pattern)</tt>
|
|
485
|
-
|
|
486
|
-
</li>
|
|
487
|
-
<li><tt>verify_all_links(pattern)</tt>
|
|
488
|
-
|
|
489
|
-
</li>
|
|
490
|
-
<li><tt>verify_not_all_links(pattern)</tt>
|
|
491
|
-
|
|
492
|
-
</li>
|
|
493
|
-
<li><tt>wait_for_all_links(pattern)</tt>
|
|
494
|
-
|
|
495
|
-
</li>
|
|
496
|
-
<li><tt>wait_for_not_all_links(pattern)</tt>
|
|
497
|
-
|
|
498
|
-
</li>
|
|
499
|
-
</ul>
|
|
500
|
-
<p><a class="source-toggle" href="#"
|
|
501
|
-
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
|
502
|
-
<div class="method-source-code" id="M000135-source">
|
|
503
|
-
<pre>
|
|
504
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 774</span>
|
|
505
|
-
774: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_links</span> <span class="ruby-identifier">variable_name</span>
|
|
506
|
-
775: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllLinks'</span>, <span class="ruby-identifier">variable_name</span>
|
|
507
|
-
776: <span class="ruby-keyword kw">end</span>
|
|
508
|
-
</pre>
|
|
509
|
-
</div>
|
|
510
|
-
</div>
|
|
511
|
-
</div>
|
|
512
|
-
|
|
513
|
-
<div id="method-M000088" class="method-detail">
|
|
514
|
-
<a name="M000088"></a>
|
|
515
|
-
|
|
516
|
-
<div class="method-heading">
|
|
517
|
-
<a href="#M000088" class="method-signature">
|
|
518
|
-
<span class="method-name">store_all_window_ids</span><span class="method-args">(variable_name)</span>
|
|
519
|
-
</a>
|
|
520
|
-
</div>
|
|
521
|
-
|
|
522
|
-
<div class="method-description">
|
|
523
|
-
<p>
|
|
524
|
-
Returns the IDs of all windows that the browser knows about.
|
|
525
|
-
</p>
|
|
526
|
-
<p>
|
|
527
|
-
Related Assertions, automatically generated:
|
|
528
|
-
</p>
|
|
529
|
-
<ul>
|
|
530
|
-
<li><tt>assertAllWindowIds(pattern)</tt>
|
|
531
|
-
|
|
532
|
-
</li>
|
|
533
|
-
<li><tt>assertNotAllWindowIds(pattern)</tt>
|
|
534
|
-
|
|
535
|
-
</li>
|
|
536
|
-
<li><tt>verifyAllWindowIds(pattern)</tt>
|
|
537
|
-
|
|
538
|
-
</li>
|
|
539
|
-
<li><tt>verifyNotAllWindowIds(pattern)</tt>
|
|
540
|
-
|
|
541
|
-
</li>
|
|
542
|
-
<li><tt>waitForAllWindowIds(pattern)</tt>
|
|
543
|
-
|
|
544
|
-
</li>
|
|
545
|
-
<li><tt>waitForNotAllWindowIds(pattern)</tt>
|
|
546
|
-
|
|
547
|
-
</li>
|
|
548
|
-
</ul>
|
|
549
|
-
<p><a class="source-toggle" href="#"
|
|
550
|
-
onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
|
|
551
|
-
<div class="method-source-code" id="M000088-source">
|
|
552
|
-
<pre>
|
|
553
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 50</span>
|
|
554
|
-
50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_window_ids</span> <span class="ruby-identifier">variable_name</span>
|
|
555
|
-
51: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllWindowIds'</span>, <span class="ruby-identifier">variable_name</span>
|
|
556
|
-
52: <span class="ruby-keyword kw">end</span>
|
|
557
|
-
</pre>
|
|
558
|
-
</div>
|
|
559
|
-
</div>
|
|
560
|
-
</div>
|
|
561
|
-
|
|
562
|
-
<div id="method-M000089" class="method-detail">
|
|
563
|
-
<a name="M000089"></a>
|
|
564
|
-
|
|
565
|
-
<div class="method-heading">
|
|
566
|
-
<a href="#M000089" class="method-signature">
|
|
567
|
-
<span class="method-name">store_all_window_names</span><span class="method-args">(variable_name)</span>
|
|
568
|
-
</a>
|
|
569
|
-
</div>
|
|
570
|
-
|
|
571
|
-
<div class="method-description">
|
|
572
|
-
<p>
|
|
573
|
-
Returns the names of all windows that the browser knows about.
|
|
574
|
-
</p>
|
|
575
|
-
<p>
|
|
576
|
-
Related Assertions, automatically generated:
|
|
577
|
-
</p>
|
|
578
|
-
<ul>
|
|
579
|
-
<li><tt>assertAllWindowNames(pattern)</tt>
|
|
580
|
-
|
|
581
|
-
</li>
|
|
582
|
-
<li><tt>assertNotAllWindowNames(pattern)</tt>
|
|
583
|
-
|
|
584
|
-
</li>
|
|
585
|
-
<li><tt>verifyAllWindowNames(pattern)</tt>
|
|
586
|
-
|
|
587
|
-
</li>
|
|
588
|
-
<li><tt>verifyNotAllWindowNames(pattern)</tt>
|
|
589
|
-
|
|
590
|
-
</li>
|
|
591
|
-
<li><tt>waitForAllWindowNames(pattern)</tt>
|
|
592
|
-
|
|
593
|
-
</li>
|
|
594
|
-
<li><tt>waitForNotAllWindowNames(pattern)</tt>
|
|
595
|
-
|
|
596
|
-
</li>
|
|
597
|
-
</ul>
|
|
598
|
-
<p><a class="source-toggle" href="#"
|
|
599
|
-
onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
|
|
600
|
-
<div class="method-source-code" id="M000089-source">
|
|
601
|
-
<pre>
|
|
602
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 63</span>
|
|
603
|
-
63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_window_names</span> <span class="ruby-identifier">variable_name</span>
|
|
604
|
-
64: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllWindowNames'</span>, <span class="ruby-identifier">variable_name</span>
|
|
605
|
-
65: <span class="ruby-keyword kw">end</span>
|
|
606
|
-
</pre>
|
|
607
|
-
</div>
|
|
608
|
-
</div>
|
|
609
|
-
</div>
|
|
610
|
-
|
|
611
|
-
<div id="method-M000090" class="method-detail">
|
|
612
|
-
<a name="M000090"></a>
|
|
613
|
-
|
|
614
|
-
<div class="method-heading">
|
|
615
|
-
<a href="#M000090" class="method-signature">
|
|
616
|
-
<span class="method-name">store_all_window_titles</span><span class="method-args">(variable_name)</span>
|
|
617
|
-
</a>
|
|
618
|
-
</div>
|
|
619
|
-
|
|
620
|
-
<div class="method-description">
|
|
621
|
-
<p>
|
|
622
|
-
Returns the titles of all windows that the browser knows about.
|
|
623
|
-
</p>
|
|
624
|
-
<p>
|
|
625
|
-
Related Assertions, automatically generated:
|
|
626
|
-
</p>
|
|
627
|
-
<ul>
|
|
628
|
-
<li><tt>assertAllWindowTitles(pattern)</tt>
|
|
629
|
-
|
|
630
|
-
</li>
|
|
631
|
-
<li><tt>assertNotAllWindowTitles(pattern)</tt>
|
|
632
|
-
|
|
633
|
-
</li>
|
|
634
|
-
<li><tt>verifyAllWindowTitles(pattern)</tt>
|
|
635
|
-
|
|
636
|
-
</li>
|
|
637
|
-
<li><tt>verifyNotAllWindowTitles(pattern)</tt>
|
|
638
|
-
|
|
639
|
-
</li>
|
|
640
|
-
<li><tt>waitForAllWindowTitles(pattern)</tt>
|
|
641
|
-
|
|
642
|
-
</li>
|
|
643
|
-
<li><tt>waitForNotAllWindowTitles(pattern)</tt>
|
|
644
|
-
|
|
645
|
-
</li>
|
|
646
|
-
</ul>
|
|
647
|
-
<p><a class="source-toggle" href="#"
|
|
648
|
-
onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
|
|
649
|
-
<div class="method-source-code" id="M000090-source">
|
|
650
|
-
<pre>
|
|
651
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 76</span>
|
|
652
|
-
76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_all_window_titles</span> <span class="ruby-identifier">variable_name</span>
|
|
653
|
-
77: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAllWindowTitles'</span>, <span class="ruby-identifier">variable_name</span>
|
|
654
|
-
78: <span class="ruby-keyword kw">end</span>
|
|
655
|
-
</pre>
|
|
656
|
-
</div>
|
|
657
|
-
</div>
|
|
658
|
-
</div>
|
|
659
|
-
|
|
660
|
-
<div id="method-M000122" class="method-detail">
|
|
661
|
-
<a name="M000122"></a>
|
|
662
|
-
|
|
663
|
-
<div class="method-heading">
|
|
664
|
-
<a href="#M000122" class="method-signature">
|
|
665
|
-
<span class="method-name">store_attribute</span><span class="method-args">(locator, attribute_name, variable_name)</span>
|
|
666
|
-
</a>
|
|
667
|
-
</div>
|
|
668
|
-
|
|
669
|
-
<div class="method-description">
|
|
670
|
-
<p>
|
|
671
|
-
Gets the value of an element attribute.
|
|
672
|
-
</p>
|
|
673
|
-
<p>
|
|
674
|
-
Related Assertions, automatically generated:
|
|
675
|
-
</p>
|
|
676
|
-
<ul>
|
|
677
|
-
<li><tt>assert_attribute(locator, attribute_name, pattern)</tt>
|
|
678
|
-
|
|
679
|
-
</li>
|
|
680
|
-
<li><tt>assert_not_attribute(locator, attribute_name, pattern)</tt>
|
|
681
|
-
|
|
682
|
-
</li>
|
|
683
|
-
<li><tt>verify_attribute_present(locator, attribute_name, pattern)</tt>
|
|
684
|
-
|
|
685
|
-
</li>
|
|
686
|
-
<li><tt>verify_not_attribute(locator, attribute_name, pattern)</tt>
|
|
687
|
-
|
|
688
|
-
</li>
|
|
689
|
-
<li><tt>wait_for_attribute(locator, attribute_name, pattern)</tt>
|
|
690
|
-
|
|
691
|
-
</li>
|
|
692
|
-
<li><tt>wait_for_not_attribute(locator, attribute_name, pattern)</tt>
|
|
693
|
-
|
|
694
|
-
</li>
|
|
695
|
-
</ul>
|
|
696
|
-
<p><a class="source-toggle" href="#"
|
|
697
|
-
onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
|
|
698
|
-
<div class="method-source-code" id="M000122-source">
|
|
699
|
-
<pre>
|
|
700
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 577</span>
|
|
701
|
-
577: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_attribute</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">attribute_name</span>, <span class="ruby-identifier">variable_name</span>
|
|
702
|
-
578: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAttribute'</span>, <span class="ruby-node">"#{locator}@#{attribute_name}"</span>, <span class="ruby-identifier">variable_name</span>
|
|
703
|
-
579: <span class="ruby-keyword kw">end</span>
|
|
704
|
-
</pre>
|
|
705
|
-
</div>
|
|
706
|
-
</div>
|
|
707
|
-
</div>
|
|
708
|
-
|
|
709
|
-
<div id="method-M000092" class="method-detail">
|
|
710
|
-
<a name="M000092"></a>
|
|
711
|
-
|
|
712
|
-
<div class="method-heading">
|
|
713
|
-
<a href="#M000092" class="method-signature">
|
|
714
|
-
<span class="method-name">store_attribute_from_all_windows</span><span class="method-args">(attribute_name, variable_name)</span>
|
|
715
|
-
</a>
|
|
716
|
-
</div>
|
|
717
|
-
|
|
718
|
-
<div class="method-description">
|
|
719
|
-
<p>
|
|
720
|
-
Returns every instance of some attribute from all known windows.
|
|
721
|
-
</p>
|
|
722
|
-
<p>
|
|
723
|
-
Related Assertions, automatically generated:
|
|
724
|
-
</p>
|
|
725
|
-
<ul>
|
|
726
|
-
<li><tt>assert_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
727
|
-
|
|
728
|
-
</li>
|
|
729
|
-
<li><tt>assert_not_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
730
|
-
|
|
731
|
-
</li>
|
|
732
|
-
<li><tt>verify_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
733
|
-
|
|
734
|
-
</li>
|
|
735
|
-
<li><tt>verify_not_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
736
|
-
|
|
737
|
-
</li>
|
|
738
|
-
<li><tt>wait_for_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
739
|
-
|
|
740
|
-
</li>
|
|
741
|
-
<li><tt>wait_for_not_attribute_from_all_windows(attribute_name, pattern)</tt>
|
|
742
|
-
|
|
743
|
-
</li>
|
|
744
|
-
</ul>
|
|
745
|
-
<p><a class="source-toggle" href="#"
|
|
746
|
-
onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
|
|
747
|
-
<div class="method-source-code" id="M000092-source">
|
|
748
|
-
<pre>
|
|
749
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 102</span>
|
|
750
|
-
102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_attribute_from_all_windows</span> <span class="ruby-identifier">attribute_name</span>, <span class="ruby-identifier">variable_name</span>
|
|
751
|
-
103: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeAttributeFromAllWindows'</span>, <span class="ruby-identifier">attribute_name</span>, <span class="ruby-identifier">variable_name</span>
|
|
752
|
-
104: <span class="ruby-keyword kw">end</span>
|
|
753
|
-
</pre>
|
|
754
|
-
</div>
|
|
755
|
-
</div>
|
|
756
|
-
</div>
|
|
757
|
-
|
|
758
|
-
<div id="method-M000104" class="method-detail">
|
|
759
|
-
<a name="M000104"></a>
|
|
760
|
-
|
|
761
|
-
<div class="method-heading">
|
|
762
|
-
<a href="#M000104" class="method-signature">
|
|
763
|
-
<span class="method-name">store_body_text</span><span class="method-args">(variable_name)</span>
|
|
764
|
-
</a>
|
|
765
|
-
</div>
|
|
766
|
-
|
|
767
|
-
<div class="method-description">
|
|
768
|
-
<p>
|
|
769
|
-
Gets the entire text of the page.
|
|
770
|
-
</p>
|
|
771
|
-
<p>
|
|
772
|
-
Related Assertions, automatically generated:
|
|
773
|
-
</p>
|
|
774
|
-
<ul>
|
|
775
|
-
<li><tt>assert_body_text(pattern)</tt>
|
|
776
|
-
|
|
777
|
-
</li>
|
|
778
|
-
<li><tt>assert_not_body_text(pattern)</tt>
|
|
779
|
-
|
|
780
|
-
</li>
|
|
781
|
-
<li><tt>verify_body_text_present(pattern)</tt>
|
|
782
|
-
|
|
783
|
-
</li>
|
|
784
|
-
<li><tt>verify_not_body_text(pattern)</tt>
|
|
785
|
-
|
|
786
|
-
</li>
|
|
787
|
-
<li><tt>wait_for_body_text(pattern)</tt>
|
|
788
|
-
|
|
789
|
-
</li>
|
|
790
|
-
<li><tt>wait_for_not_body_text(pattern)</tt>
|
|
791
|
-
|
|
792
|
-
</li>
|
|
793
|
-
</ul>
|
|
794
|
-
<p><a class="source-toggle" href="#"
|
|
795
|
-
onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
|
|
796
|
-
<div class="method-source-code" id="M000104-source">
|
|
797
|
-
<pre>
|
|
798
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 300</span>
|
|
799
|
-
300: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_body_text</span> <span class="ruby-identifier">variable_name</span>
|
|
800
|
-
301: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeBodyText'</span>, <span class="ruby-identifier">variable_name</span>
|
|
801
|
-
302: <span class="ruby-keyword kw">end</span>
|
|
802
|
-
</pre>
|
|
803
|
-
</div>
|
|
804
|
-
</div>
|
|
805
|
-
</div>
|
|
806
|
-
|
|
807
|
-
<div id="method-M000108" class="method-detail">
|
|
808
|
-
<a name="M000108"></a>
|
|
809
|
-
|
|
810
|
-
<div class="method-heading">
|
|
811
|
-
<a href="#M000108" class="method-signature">
|
|
812
|
-
<span class="method-name">store_checked</span><span class="method-args">(locator, variable_name)</span>
|
|
813
|
-
</a>
|
|
814
|
-
</div>
|
|
815
|
-
|
|
816
|
-
<div class="method-description">
|
|
817
|
-
<p>
|
|
818
|
-
Gets whether a toggle-button (checkbox/radio) is checked. Fails if the
|
|
819
|
-
specified element doesn‘t exist or isn‘t a toggle-button.
|
|
820
|
-
</p>
|
|
821
|
-
<p>
|
|
822
|
-
Related Assertions, automatically generated:
|
|
823
|
-
</p>
|
|
824
|
-
<ul>
|
|
825
|
-
<li><tt>assert_checked(locator)</tt>
|
|
826
|
-
|
|
827
|
-
</li>
|
|
828
|
-
<li><tt>assert_not_checked(locator)</tt>
|
|
829
|
-
|
|
830
|
-
</li>
|
|
831
|
-
<li><tt>verify_checked_present(locator)</tt>
|
|
832
|
-
|
|
833
|
-
</li>
|
|
834
|
-
<li><tt>verify_not_checked(locator)</tt>
|
|
835
|
-
|
|
836
|
-
</li>
|
|
837
|
-
<li><tt>wait_for_checked(locator)</tt>
|
|
838
|
-
|
|
839
|
-
</li>
|
|
840
|
-
<li><tt>wait_for_not_checked(locator)</tt>
|
|
841
|
-
|
|
842
|
-
</li>
|
|
843
|
-
</ul>
|
|
844
|
-
<p><a class="source-toggle" href="#"
|
|
845
|
-
onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
|
|
846
|
-
<div class="method-source-code" id="M000108-source">
|
|
847
|
-
<pre>
|
|
848
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 370</span>
|
|
849
|
-
370: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_checked</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
850
|
-
371: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeChecked'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
851
|
-
372: <span class="ruby-keyword kw">end</span>
|
|
852
|
-
</pre>
|
|
853
|
-
</div>
|
|
854
|
-
</div>
|
|
855
|
-
</div>
|
|
856
|
-
|
|
857
|
-
<div id="method-M000098" class="method-detail">
|
|
858
|
-
<a name="M000098"></a>
|
|
859
|
-
|
|
860
|
-
<div class="method-heading">
|
|
861
|
-
<a href="#M000098" class="method-signature">
|
|
862
|
-
<span class="method-name">store_confirmation</span><span class="method-args">(variable_name)</span>
|
|
863
|
-
</a>
|
|
864
|
-
</div>
|
|
865
|
-
|
|
866
|
-
<div class="method-description">
|
|
867
|
-
<p>
|
|
868
|
-
Retrieves the message of a JavaScript confirmation dialog generated during
|
|
869
|
-
the previous action.
|
|
870
|
-
</p>
|
|
871
|
-
<p>
|
|
872
|
-
By default, the confirm function will return <tt>true</tt>, having the same
|
|
873
|
-
effect as manually clicking OK. This can be changed by prior execution of
|
|
874
|
-
the <tt>choose_cancel_on_next_confirmation</tt> command. If a confirmation
|
|
875
|
-
is generated but you do not get/verify it, the next Selenium action will
|
|
876
|
-
fail.
|
|
877
|
-
</p>
|
|
878
|
-
<p>
|
|
879
|
-
NOTE: under Selenium, JavaScript confirmations will NOT pop up a visible
|
|
880
|
-
dialog.
|
|
881
|
-
</p>
|
|
882
|
-
<p>
|
|
883
|
-
NOTE: Selenium does NOT support JavaScript confirmations that are generated
|
|
884
|
-
in a page‘s <tt>onload()</tt> event handler. In this case a visible
|
|
885
|
-
dialog WILL be generated and Selenium will hang until you manually click
|
|
886
|
-
OK.
|
|
887
|
-
</p>
|
|
888
|
-
<p>
|
|
889
|
-
Related Assertions, automatically generated:
|
|
890
|
-
</p>
|
|
891
|
-
<ul>
|
|
892
|
-
<li><tt>assert_confirmation(pattern)</tt>
|
|
893
|
-
|
|
894
|
-
</li>
|
|
895
|
-
<li><tt>assert_not_confirmation(pattern)</tt>
|
|
896
|
-
|
|
897
|
-
</li>
|
|
898
|
-
<li><tt>verify_confirmation_present(pattern)</tt>
|
|
899
|
-
|
|
900
|
-
</li>
|
|
901
|
-
<li><tt>verify_not_confirmation(pattern)</tt>
|
|
902
|
-
|
|
903
|
-
</li>
|
|
904
|
-
<li><tt>wait_for_confirmation(pattern)</tt>
|
|
905
|
-
|
|
906
|
-
</li>
|
|
907
|
-
<li><tt>wait_for_not_confirmation(pattern)</tt>
|
|
908
|
-
|
|
909
|
-
</li>
|
|
910
|
-
</ul>
|
|
911
|
-
<p><a class="source-toggle" href="#"
|
|
912
|
-
onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
|
|
913
|
-
<div class="method-source-code" id="M000098-source">
|
|
914
|
-
<pre>
|
|
915
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 209</span>
|
|
916
|
-
209: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_confirmation</span> <span class="ruby-identifier">variable_name</span>
|
|
917
|
-
210: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeConfirmation'</span>, <span class="ruby-identifier">variable_name</span>
|
|
918
|
-
211: <span class="ruby-keyword kw">end</span>
|
|
919
|
-
</pre>
|
|
920
|
-
</div>
|
|
921
|
-
</div>
|
|
922
|
-
</div>
|
|
923
|
-
|
|
924
|
-
<div id="method-M000094" class="method-detail">
|
|
925
|
-
<a name="M000094"></a>
|
|
926
|
-
|
|
927
|
-
<div class="method-heading">
|
|
928
|
-
<a href="#M000094" class="method-signature">
|
|
929
|
-
<span class="method-name">store_confirmation_present</span><span class="method-args">(variable_name)</span>
|
|
930
|
-
</a>
|
|
931
|
-
</div>
|
|
932
|
-
|
|
933
|
-
<div class="method-description">
|
|
934
|
-
<p>
|
|
935
|
-
Has <tt>confirm()</tt> been called?
|
|
936
|
-
</p>
|
|
937
|
-
<p>
|
|
938
|
-
Related Assertions, automatically generated:
|
|
939
|
-
</p>
|
|
940
|
-
<ul>
|
|
941
|
-
<li><tt>assert_confirmation_present</tt>
|
|
942
|
-
|
|
943
|
-
</li>
|
|
944
|
-
<li><tt>assert_confirmation_not_present</tt>
|
|
945
|
-
|
|
946
|
-
</li>
|
|
947
|
-
<li><tt>verify_confirmation_present</tt>
|
|
948
|
-
|
|
949
|
-
</li>
|
|
950
|
-
<li><tt>verify_confirmation_not_present</tt>
|
|
951
|
-
|
|
952
|
-
</li>
|
|
953
|
-
<li><tt>wait_for_confirmation_present</tt>
|
|
954
|
-
|
|
955
|
-
</li>
|
|
956
|
-
<li><tt>wait_for_confirmation_not_present</tt>
|
|
957
|
-
|
|
958
|
-
</li>
|
|
959
|
-
</ul>
|
|
960
|
-
<p><a class="source-toggle" href="#"
|
|
961
|
-
onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
|
|
962
|
-
<div class="method-source-code" id="M000094-source">
|
|
963
|
-
<pre>
|
|
964
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 128</span>
|
|
965
|
-
128: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_confirmation_present</span> <span class="ruby-identifier">variable_name</span>
|
|
966
|
-
129: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeConfirmationPresent'</span>, <span class="ruby-identifier">variable_name</span>
|
|
967
|
-
130: <span class="ruby-keyword kw">end</span>
|
|
968
|
-
</pre>
|
|
969
|
-
</div>
|
|
970
|
-
</div>
|
|
971
|
-
</div>
|
|
972
|
-
|
|
973
|
-
<div id="method-M000095" class="method-detail">
|
|
974
|
-
<a name="M000095"></a>
|
|
975
|
-
|
|
976
|
-
<div class="method-heading">
|
|
977
|
-
<a href="#M000095" class="method-signature">
|
|
978
|
-
<span class="method-name">store_cookie</span><span class="method-args">(variable_name)</span>
|
|
979
|
-
</a>
|
|
980
|
-
</div>
|
|
981
|
-
|
|
982
|
-
<div class="method-description">
|
|
983
|
-
<p>
|
|
984
|
-
Return all cookies of the current page under test.
|
|
985
|
-
</p>
|
|
986
|
-
<p>
|
|
987
|
-
Related Assertions, automatically generated:
|
|
988
|
-
</p>
|
|
989
|
-
<ul>
|
|
990
|
-
<li><tt>assert_cookie(pattern)</tt>
|
|
991
|
-
|
|
992
|
-
</li>
|
|
993
|
-
<li><tt>assert_not_cookie(pattern)</tt>
|
|
994
|
-
|
|
995
|
-
</li>
|
|
996
|
-
<li><tt>verify_cookie(pattern)</tt>
|
|
997
|
-
|
|
998
|
-
</li>
|
|
999
|
-
<li><tt>verify_not_cookie(pattern)</tt>
|
|
1000
|
-
|
|
1001
|
-
</li>
|
|
1002
|
-
<li><tt>wait_for_cookie(pattern)</tt>
|
|
1003
|
-
|
|
1004
|
-
</li>
|
|
1005
|
-
<li><tt>wait_for_not_cookie(pattern)</tt>
|
|
1006
|
-
|
|
1007
|
-
</li>
|
|
1008
|
-
</ul>
|
|
1009
|
-
<p><a class="source-toggle" href="#"
|
|
1010
|
-
onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
|
|
1011
|
-
<div class="method-source-code" id="M000095-source">
|
|
1012
|
-
<pre>
|
|
1013
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 141</span>
|
|
1014
|
-
141: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_cookie</span> <span class="ruby-identifier">variable_name</span>
|
|
1015
|
-
142: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeCookie'</span>, <span class="ruby-identifier">variable_name</span>
|
|
1016
|
-
143: <span class="ruby-keyword kw">end</span>
|
|
1017
|
-
</pre>
|
|
1018
|
-
</div>
|
|
1019
|
-
</div>
|
|
1020
|
-
</div>
|
|
1021
|
-
|
|
1022
|
-
<div id="method-M000096" class="method-detail">
|
|
1023
|
-
<a name="M000096"></a>
|
|
1024
|
-
|
|
1025
|
-
<div class="method-heading">
|
|
1026
|
-
<a href="#M000096" class="method-signature">
|
|
1027
|
-
<span class="method-name">store_cursor_position</span><span class="method-args">(locator, variable_name)</span>
|
|
1028
|
-
</a>
|
|
1029
|
-
</div>
|
|
1030
|
-
|
|
1031
|
-
<div class="method-description">
|
|
1032
|
-
<p>
|
|
1033
|
-
Retrieves the text cursor position in the given input element or textarea;
|
|
1034
|
-
beware, this may not work perfectly on all browsers.
|
|
1035
|
-
</p>
|
|
1036
|
-
<p>
|
|
1037
|
-
This method will fail if the specified element isn‘t an input element
|
|
1038
|
-
or textarea, or there is no cursor in the element.
|
|
1039
|
-
</p>
|
|
1040
|
-
<p>
|
|
1041
|
-
Related Assertions, automatically generated:
|
|
1042
|
-
</p>
|
|
1043
|
-
<ul>
|
|
1044
|
-
<li><tt>assert_cursor_position(locator, pattern)</tt>
|
|
1045
|
-
|
|
1046
|
-
</li>
|
|
1047
|
-
<li><tt>assert_not_cursor_position(locator, pattern)</tt>
|
|
1048
|
-
|
|
1049
|
-
</li>
|
|
1050
|
-
<li><tt>verify_cursor_position(locator, pattern)</tt>
|
|
1051
|
-
|
|
1052
|
-
</li>
|
|
1053
|
-
<li><tt>verify_not_cursor_position(locator, pattern)</tt>
|
|
1054
|
-
|
|
1055
|
-
</li>
|
|
1056
|
-
<li><tt>wait_for_cursor_position(locator, pattern)</tt>
|
|
1057
|
-
|
|
1058
|
-
</li>
|
|
1059
|
-
<li><tt>wait_for_not_cursor_position(locator, pattern)</tt>
|
|
1060
|
-
|
|
1061
|
-
</li>
|
|
1062
|
-
</ul>
|
|
1063
|
-
<p><a class="source-toggle" href="#"
|
|
1064
|
-
onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
|
|
1065
|
-
<div class="method-source-code" id="M000096-source">
|
|
1066
|
-
<pre>
|
|
1067
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 158</span>
|
|
1068
|
-
158: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_cursor_position</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1069
|
-
159: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeCursorPosition'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1070
|
-
160: <span class="ruby-keyword kw">end</span>
|
|
1071
|
-
</pre>
|
|
1072
|
-
</div>
|
|
1073
|
-
</div>
|
|
1074
|
-
</div>
|
|
1075
|
-
|
|
1076
|
-
<div id="method-M000133" class="method-detail">
|
|
1077
|
-
<a name="M000133"></a>
|
|
1078
|
-
|
|
1079
|
-
<div class="method-heading">
|
|
1080
|
-
<a href="#M000133" class="method-signature">
|
|
1081
|
-
<span class="method-name">store_editable</span><span class="method-args">(locator, variable_name)</span>
|
|
1082
|
-
</a>
|
|
1083
|
-
</div>
|
|
1084
|
-
|
|
1085
|
-
<div class="method-description">
|
|
1086
|
-
<p>
|
|
1087
|
-
Determines whether the specified input element is editable, i.e.
|
|
1088
|
-
hasn‘t been disabled. This method will fail if the specified element
|
|
1089
|
-
isn‘t an input element.
|
|
1090
|
-
</p>
|
|
1091
|
-
<p>
|
|
1092
|
-
Related Assertions, automatically generated:
|
|
1093
|
-
</p>
|
|
1094
|
-
<ul>
|
|
1095
|
-
<li><tt>assert_editable(locator)</tt>
|
|
1096
|
-
|
|
1097
|
-
</li>
|
|
1098
|
-
<li><tt>assert_not_editable(locator)</tt>
|
|
1099
|
-
|
|
1100
|
-
</li>
|
|
1101
|
-
<li><tt>verify_editable(locator)</tt>
|
|
1102
|
-
|
|
1103
|
-
</li>
|
|
1104
|
-
<li><tt>verify_not_editable(locator)</tt>
|
|
1105
|
-
|
|
1106
|
-
</li>
|
|
1107
|
-
<li><tt>wait_for_editable(locator)</tt>
|
|
1108
|
-
|
|
1109
|
-
</li>
|
|
1110
|
-
<li><tt>wait_for_not_editable(locator)</tt>
|
|
1111
|
-
|
|
1112
|
-
</li>
|
|
1113
|
-
</ul>
|
|
1114
|
-
<p><a class="source-toggle" href="#"
|
|
1115
|
-
onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
|
|
1116
|
-
<div class="method-source-code" id="M000133-source">
|
|
1117
|
-
<pre>
|
|
1118
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 734</span>
|
|
1119
|
-
734: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_editable</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1120
|
-
735: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeEditable'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1121
|
-
736: <span class="ruby-keyword kw">end</span>
|
|
1122
|
-
</pre>
|
|
1123
|
-
</div>
|
|
1124
|
-
</div>
|
|
1125
|
-
</div>
|
|
1126
|
-
|
|
1127
|
-
<div id="method-M000127" class="method-detail">
|
|
1128
|
-
<a name="M000127"></a>
|
|
1129
|
-
|
|
1130
|
-
<div class="method-heading">
|
|
1131
|
-
<a href="#M000127" class="method-signature">
|
|
1132
|
-
<span class="method-name">store_element_height</span><span class="method-args">(locator, variable_name)</span>
|
|
1133
|
-
</a>
|
|
1134
|
-
</div>
|
|
1135
|
-
|
|
1136
|
-
<div class="method-description">
|
|
1137
|
-
<p>
|
|
1138
|
-
Retrieves the height of an element. This method will fail if the element is
|
|
1139
|
-
not present.
|
|
1140
|
-
</p>
|
|
1141
|
-
<p>
|
|
1142
|
-
Related Assertions, automatically generated:
|
|
1143
|
-
</p>
|
|
1144
|
-
<ul>
|
|
1145
|
-
<li><tt>assert_element_height(locator, pattern)</tt>
|
|
1146
|
-
|
|
1147
|
-
</li>
|
|
1148
|
-
<li><tt>assert_not_element_height(locator, pattern)</tt>
|
|
1149
|
-
|
|
1150
|
-
</li>
|
|
1151
|
-
<li><tt>verify_element_height(locator, pattern)</tt>
|
|
1152
|
-
|
|
1153
|
-
</li>
|
|
1154
|
-
<li><tt>verify_not_element_height(locator, pattern)</tt>
|
|
1155
|
-
|
|
1156
|
-
</li>
|
|
1157
|
-
<li><tt>wait_for_element_height(locator, pattern)</tt>
|
|
1158
|
-
|
|
1159
|
-
</li>
|
|
1160
|
-
<li><tt>wait_for_not_element_height(locator, pattern)</tt>
|
|
1161
|
-
|
|
1162
|
-
</li>
|
|
1163
|
-
</ul>
|
|
1164
|
-
<p><a class="source-toggle" href="#"
|
|
1165
|
-
onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
|
|
1166
|
-
<div class="method-source-code" id="M000127-source">
|
|
1167
|
-
<pre>
|
|
1168
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 650</span>
|
|
1169
|
-
650: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_height</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1170
|
-
651: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementHeight'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1171
|
-
652: <span class="ruby-keyword kw">end</span>
|
|
1172
|
-
</pre>
|
|
1173
|
-
</div>
|
|
1174
|
-
</div>
|
|
1175
|
-
</div>
|
|
1176
|
-
|
|
1177
|
-
<div id="method-M000128" class="method-detail">
|
|
1178
|
-
<a name="M000128"></a>
|
|
1179
|
-
|
|
1180
|
-
<div class="method-heading">
|
|
1181
|
-
<a href="#M000128" class="method-signature">
|
|
1182
|
-
<span class="method-name">store_element_index</span><span class="method-args">(locator, variable_name)</span>
|
|
1183
|
-
</a>
|
|
1184
|
-
</div>
|
|
1185
|
-
|
|
1186
|
-
<div class="method-description">
|
|
1187
|
-
<p>
|
|
1188
|
-
Get the relative index of an element to its parent (starting from 0). The
|
|
1189
|
-
comment node and empty text node will be ignored.
|
|
1190
|
-
</p>
|
|
1191
|
-
<p>
|
|
1192
|
-
Related Assertions, automatically generated:
|
|
1193
|
-
</p>
|
|
1194
|
-
<ul>
|
|
1195
|
-
<li><tt>assert_element_index(locator, pattern)</tt>
|
|
1196
|
-
|
|
1197
|
-
</li>
|
|
1198
|
-
<li><tt>assert_not_element_index(locator, pattern)</tt>
|
|
1199
|
-
|
|
1200
|
-
</li>
|
|
1201
|
-
<li><tt>verify_element_index(locator, pattern)</tt>
|
|
1202
|
-
|
|
1203
|
-
</li>
|
|
1204
|
-
<li><tt>verify_not_element_index(locator, pattern)</tt>
|
|
1205
|
-
|
|
1206
|
-
</li>
|
|
1207
|
-
<li><tt>wait_for_element_index(locator, pattern)</tt>
|
|
1208
|
-
|
|
1209
|
-
</li>
|
|
1210
|
-
<li><tt>wait_for_not_element_index(locator, pattern)</tt>
|
|
1211
|
-
|
|
1212
|
-
</li>
|
|
1213
|
-
</ul>
|
|
1214
|
-
<p><a class="source-toggle" href="#"
|
|
1215
|
-
onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
|
|
1216
|
-
<div class="method-source-code" id="M000128-source">
|
|
1217
|
-
<pre>
|
|
1218
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 664</span>
|
|
1219
|
-
664: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_index</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1220
|
-
665: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementIndex'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1221
|
-
666: <span class="ruby-keyword kw">end</span>
|
|
1222
|
-
</pre>
|
|
1223
|
-
</div>
|
|
1224
|
-
</div>
|
|
1225
|
-
</div>
|
|
1226
|
-
|
|
1227
|
-
<div id="method-M000130" class="method-detail">
|
|
1228
|
-
<a name="M000130"></a>
|
|
1229
|
-
|
|
1230
|
-
<div class="method-heading">
|
|
1231
|
-
<a href="#M000130" class="method-signature">
|
|
1232
|
-
<span class="method-name">store_element_position_left</span><span class="method-args">(locator, variable_name)</span>
|
|
1233
|
-
</a>
|
|
1234
|
-
</div>
|
|
1235
|
-
|
|
1236
|
-
<div class="method-description">
|
|
1237
|
-
<p>
|
|
1238
|
-
Retrieves the horizontal position of an element. This method will fail if
|
|
1239
|
-
the element is not present.
|
|
1240
|
-
</p>
|
|
1241
|
-
<p>
|
|
1242
|
-
Related Assertions, automatically generated:
|
|
1243
|
-
</p>
|
|
1244
|
-
<ul>
|
|
1245
|
-
<li><tt>assert_element_position_left(locator, pattern)</tt>
|
|
1246
|
-
|
|
1247
|
-
</li>
|
|
1248
|
-
<li><tt>assert_not_element_position_left(locator, pattern)</tt>
|
|
1249
|
-
|
|
1250
|
-
</li>
|
|
1251
|
-
<li><tt>verify_element_position_left(locator, pattern)</tt>
|
|
1252
|
-
|
|
1253
|
-
</li>
|
|
1254
|
-
<li><tt>verify_not_element_position_left(locator, pattern)</tt>
|
|
1255
|
-
|
|
1256
|
-
</li>
|
|
1257
|
-
<li><tt>wait_for_element_position_left(locator, pattern)</tt>
|
|
1258
|
-
|
|
1259
|
-
</li>
|
|
1260
|
-
<li><tt>wait_for_not_element_position_left(locator, pattern)</tt>
|
|
1261
|
-
|
|
1262
|
-
</li>
|
|
1263
|
-
</ul>
|
|
1264
|
-
<p><a class="source-toggle" href="#"
|
|
1265
|
-
onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
|
|
1266
|
-
<div class="method-source-code" id="M000130-source">
|
|
1267
|
-
<pre>
|
|
1268
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 692</span>
|
|
1269
|
-
692: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_position_left</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1270
|
-
693: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementPositionLeft'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1271
|
-
694: <span class="ruby-keyword kw">end</span>
|
|
1272
|
-
</pre>
|
|
1273
|
-
</div>
|
|
1274
|
-
</div>
|
|
1275
|
-
</div>
|
|
1276
|
-
|
|
1277
|
-
<div id="method-M000131" class="method-detail">
|
|
1278
|
-
<a name="M000131"></a>
|
|
1279
|
-
|
|
1280
|
-
<div class="method-heading">
|
|
1281
|
-
<a href="#M000131" class="method-signature">
|
|
1282
|
-
<span class="method-name">store_element_position_top</span><span class="method-args">(locator, variable_name)</span>
|
|
1283
|
-
</a>
|
|
1284
|
-
</div>
|
|
1285
|
-
|
|
1286
|
-
<div class="method-description">
|
|
1287
|
-
<p>
|
|
1288
|
-
Retrieves the vertical position of an element. This method will fail if the
|
|
1289
|
-
element is not present.
|
|
1290
|
-
</p>
|
|
1291
|
-
<p>
|
|
1292
|
-
Related Assertions, automatically generated:
|
|
1293
|
-
</p>
|
|
1294
|
-
<ul>
|
|
1295
|
-
<li><tt>assert_element_position_top(locator, pattern)</tt>
|
|
1296
|
-
|
|
1297
|
-
</li>
|
|
1298
|
-
<li><tt>assert_not_element_position_top(locator, pattern)</tt>
|
|
1299
|
-
|
|
1300
|
-
</li>
|
|
1301
|
-
<li><tt>verify_element_position_top(locator, pattern)</tt>
|
|
1302
|
-
|
|
1303
|
-
</li>
|
|
1304
|
-
<li><tt>verify_not_element_position_top(locator, pattern)</tt>
|
|
1305
|
-
|
|
1306
|
-
</li>
|
|
1307
|
-
<li><tt>wait_for_element_position_top(locator, pattern)</tt>
|
|
1308
|
-
|
|
1309
|
-
</li>
|
|
1310
|
-
<li><tt>wait_for_not_element_position_top(locator, pattern)</tt>
|
|
1311
|
-
|
|
1312
|
-
</li>
|
|
1313
|
-
</ul>
|
|
1314
|
-
<p><a class="source-toggle" href="#"
|
|
1315
|
-
onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
|
|
1316
|
-
<div class="method-source-code" id="M000131-source">
|
|
1317
|
-
<pre>
|
|
1318
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 706</span>
|
|
1319
|
-
706: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_position_top</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1320
|
-
707: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementPositionTop'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1321
|
-
708: <span class="ruby-keyword kw">end</span>
|
|
1322
|
-
</pre>
|
|
1323
|
-
</div>
|
|
1324
|
-
</div>
|
|
1325
|
-
</div>
|
|
1326
|
-
|
|
1327
|
-
<div id="method-M000125" class="method-detail">
|
|
1328
|
-
<a name="M000125"></a>
|
|
1329
|
-
|
|
1330
|
-
<div class="method-heading">
|
|
1331
|
-
<a href="#M000125" class="method-signature">
|
|
1332
|
-
<span class="method-name">store_element_present</span><span class="method-args">(locator, variable_name)</span>
|
|
1333
|
-
</a>
|
|
1334
|
-
</div>
|
|
1335
|
-
|
|
1336
|
-
<div class="method-description">
|
|
1337
|
-
<p>
|
|
1338
|
-
Verifies that the specified element is somewhere on the page.
|
|
1339
|
-
</p>
|
|
1340
|
-
<p>
|
|
1341
|
-
Related Assertions, automatically generated:
|
|
1342
|
-
</p>
|
|
1343
|
-
<ul>
|
|
1344
|
-
<li><tt>assert_element_present(locator)</tt>
|
|
1345
|
-
|
|
1346
|
-
</li>
|
|
1347
|
-
<li><tt>assert_element_not_present(locator)</tt>
|
|
1348
|
-
|
|
1349
|
-
</li>
|
|
1350
|
-
<li><tt>verify_element_present(locator)</tt>
|
|
1351
|
-
|
|
1352
|
-
</li>
|
|
1353
|
-
<li><tt>verify_element_not_present(locator)</tt>
|
|
1354
|
-
|
|
1355
|
-
</li>
|
|
1356
|
-
<li><tt>wait_for_element_present(locator)</tt>
|
|
1357
|
-
|
|
1358
|
-
</li>
|
|
1359
|
-
<li><tt>wait_for_element_not_present(locator)</tt>
|
|
1360
|
-
|
|
1361
|
-
</li>
|
|
1362
|
-
</ul>
|
|
1363
|
-
<p><a class="source-toggle" href="#"
|
|
1364
|
-
onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
|
|
1365
|
-
<div class="method-source-code" id="M000125-source">
|
|
1366
|
-
<pre>
|
|
1367
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 620</span>
|
|
1368
|
-
620: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_present</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1369
|
-
621: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementPresent'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1370
|
-
622: <span class="ruby-keyword kw">end</span>
|
|
1371
|
-
</pre>
|
|
1372
|
-
</div>
|
|
1373
|
-
</div>
|
|
1374
|
-
</div>
|
|
1375
|
-
|
|
1376
|
-
<div id="method-M000129" class="method-detail">
|
|
1377
|
-
<a name="M000129"></a>
|
|
1378
|
-
|
|
1379
|
-
<div class="method-heading">
|
|
1380
|
-
<a href="#M000129" class="method-signature">
|
|
1381
|
-
<span class="method-name">store_element_width</span><span class="method-args">(locator, variable_name)</span>
|
|
1382
|
-
</a>
|
|
1383
|
-
</div>
|
|
1384
|
-
|
|
1385
|
-
<div class="method-description">
|
|
1386
|
-
<p>
|
|
1387
|
-
Retrieves the width of an element. This method will fail if the element is
|
|
1388
|
-
not present.
|
|
1389
|
-
</p>
|
|
1390
|
-
<p>
|
|
1391
|
-
Related Assertions, automatically generated:
|
|
1392
|
-
</p>
|
|
1393
|
-
<ul>
|
|
1394
|
-
<li><tt>assert_element_width(locator, pattern)</tt>
|
|
1395
|
-
|
|
1396
|
-
</li>
|
|
1397
|
-
<li><tt>assert_not_element_width(locator, pattern)</tt>
|
|
1398
|
-
|
|
1399
|
-
</li>
|
|
1400
|
-
<li><tt>verify_element_width(locator, pattern)</tt>
|
|
1401
|
-
|
|
1402
|
-
</li>
|
|
1403
|
-
<li><tt>verify_not_element_width(locator, pattern)</tt>
|
|
1404
|
-
|
|
1405
|
-
</li>
|
|
1406
|
-
<li><tt>wait_for_element_width(locator, pattern)</tt>
|
|
1407
|
-
|
|
1408
|
-
</li>
|
|
1409
|
-
<li><tt>wait_for_not_element_width(locator, pattern)</tt>
|
|
1410
|
-
|
|
1411
|
-
</li>
|
|
1412
|
-
</ul>
|
|
1413
|
-
<p><a class="source-toggle" href="#"
|
|
1414
|
-
onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
|
|
1415
|
-
<div class="method-source-code" id="M000129-source">
|
|
1416
|
-
<pre>
|
|
1417
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 678</span>
|
|
1418
|
-
678: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_element_width</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1419
|
-
679: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeElementWidth'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
1420
|
-
680: <span class="ruby-keyword kw">end</span>
|
|
1421
|
-
</pre>
|
|
1422
|
-
</div>
|
|
1423
|
-
</div>
|
|
1424
|
-
</div>
|
|
1425
|
-
|
|
1426
|
-
<div id="method-M000086" class="method-detail">
|
|
1427
|
-
<a name="M000086"></a>
|
|
1428
|
-
|
|
1429
|
-
<div class="method-heading">
|
|
1430
|
-
<a href="#M000086" class="method-signature">
|
|
1431
|
-
<span class="method-name">store_error_on_next</span><span class="method-args">(message)</span>
|
|
1432
|
-
</a>
|
|
1433
|
-
</div>
|
|
1434
|
-
|
|
1435
|
-
<div class="method-description">
|
|
1436
|
-
<p>
|
|
1437
|
-
Tell Selenium to expect an error on the next command execution.
|
|
1438
|
-
</p>
|
|
1439
|
-
<p>
|
|
1440
|
-
NOTE: <tt><a
|
|
1441
|
-
href="TestBuilderAccessors.html#M000086">store_error_on_next</a></tt> is
|
|
1442
|
-
currently not supported by Selenium Core and is only added to here as a
|
|
1443
|
-
shortcut for generating the related assertions.
|
|
1444
|
-
</p>
|
|
1445
|
-
<p>
|
|
1446
|
-
Related Assertions, automatically generated:
|
|
1447
|
-
</p>
|
|
1448
|
-
<ul>
|
|
1449
|
-
<li><tt>assert_error_on_next(message)</tt>
|
|
1450
|
-
|
|
1451
|
-
</li>
|
|
1452
|
-
<li><tt>assert_not_error_on_next(message)</tt>
|
|
1453
|
-
|
|
1454
|
-
</li>
|
|
1455
|
-
<li><tt>verify_error_on_next(message)</tt>
|
|
1456
|
-
|
|
1457
|
-
</li>
|
|
1458
|
-
<li><tt>verify_not_error_on_next(message)</tt>
|
|
1459
|
-
|
|
1460
|
-
</li>
|
|
1461
|
-
<li><tt>wait_for_error_on_next(message)</tt>
|
|
1462
|
-
|
|
1463
|
-
</li>
|
|
1464
|
-
<li><tt>wait_for_not_error_on_next(message)</tt>
|
|
1465
|
-
|
|
1466
|
-
</li>
|
|
1467
|
-
</ul>
|
|
1468
|
-
<p><a class="source-toggle" href="#"
|
|
1469
|
-
onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
|
|
1470
|
-
<div class="method-source-code" id="M000086-source">
|
|
1471
|
-
<pre>
|
|
1472
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 20</span>
|
|
1473
|
-
20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_error_on_next</span> <span class="ruby-identifier">message</span>
|
|
1474
|
-
21: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
1475
|
-
22: <span class="ruby-keyword kw">end</span>
|
|
1476
|
-
</pre>
|
|
1477
|
-
</div>
|
|
1478
|
-
</div>
|
|
1479
|
-
</div>
|
|
1480
|
-
|
|
1481
|
-
<div id="method-M000107" class="method-detail">
|
|
1482
|
-
<a name="M000107"></a>
|
|
1483
|
-
|
|
1484
|
-
<div class="method-heading">
|
|
1485
|
-
<a href="#M000107" class="method-signature">
|
|
1486
|
-
<span class="method-name">store_eval</span><span class="method-args">(script, variable_name)</span>
|
|
1487
|
-
</a>
|
|
1488
|
-
</div>
|
|
1489
|
-
|
|
1490
|
-
<div class="method-description">
|
|
1491
|
-
<p>
|
|
1492
|
-
Gets the result of evaluating the specified JavaScript snippet. The snippet
|
|
1493
|
-
may have multiple lines, but only the result of the last line will be
|
|
1494
|
-
returned.
|
|
1495
|
-
</p>
|
|
1496
|
-
<p>
|
|
1497
|
-
Note that, by default, the snippet will run in the context of the
|
|
1498
|
-
"selenium" object itself, so <tt>this</tt> will refer to the
|
|
1499
|
-
Selenium object, and <tt>window</tt> will refer to the top-level runner
|
|
1500
|
-
test window, not the window of your application.
|
|
1501
|
-
</p>
|
|
1502
|
-
<p>
|
|
1503
|
-
If you need a reference to the window of your application, you can refer to
|
|
1504
|
-
<tt>this.browserbot.getCurrentWindow()</tt> and if you need to use a
|
|
1505
|
-
locator to refer to a single element in your application page, you can use
|
|
1506
|
-
<tt>this.page().findElement("foo")</tt> where
|
|
1507
|
-
<tt>"foo"</tt> is your locator.
|
|
1508
|
-
</p>
|
|
1509
|
-
<p>
|
|
1510
|
-
Related Assertions, automatically generated:
|
|
1511
|
-
</p>
|
|
1512
|
-
<ul>
|
|
1513
|
-
<li><tt>assert_eval(script, pattern)</tt>
|
|
1514
|
-
|
|
1515
|
-
</li>
|
|
1516
|
-
<li><tt>assert_not_eval(script, pattern)</tt>
|
|
1517
|
-
|
|
1518
|
-
</li>
|
|
1519
|
-
<li><tt>verify_eval_present(script, pattern)</tt>
|
|
1520
|
-
|
|
1521
|
-
</li>
|
|
1522
|
-
<li><tt>verify_not_eval(script, pattern)</tt>
|
|
1523
|
-
|
|
1524
|
-
</li>
|
|
1525
|
-
<li><tt>wait_for_eval(script, pattern)</tt>
|
|
1526
|
-
|
|
1527
|
-
</li>
|
|
1528
|
-
<li><tt>wait_for_not_eval(script, pattern)</tt>
|
|
1529
|
-
|
|
1530
|
-
</li>
|
|
1531
|
-
</ul>
|
|
1532
|
-
<p><a class="source-toggle" href="#"
|
|
1533
|
-
onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
|
|
1534
|
-
<div class="method-source-code" id="M000107-source">
|
|
1535
|
-
<pre>
|
|
1536
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 356</span>
|
|
1537
|
-
356: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_eval</span> <span class="ruby-identifier">script</span>, <span class="ruby-identifier">variable_name</span>
|
|
1538
|
-
357: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeEval'</span>, <span class="ruby-identifier">script</span>, <span class="ruby-identifier">variable_name</span>
|
|
1539
|
-
358: <span class="ruby-keyword kw">end</span>
|
|
1540
|
-
</pre>
|
|
1541
|
-
</div>
|
|
1542
|
-
</div>
|
|
1543
|
-
</div>
|
|
1544
|
-
|
|
1545
|
-
<div id="method-M000138" class="method-detail">
|
|
1546
|
-
<a name="M000138"></a>
|
|
1547
|
-
|
|
1548
|
-
<div class="method-heading">
|
|
1549
|
-
<a href="#M000138" class="method-signature">
|
|
1550
|
-
<span class="method-name">store_expression</span><span class="method-args">(expression, variable_name)</span>
|
|
1551
|
-
</a>
|
|
1552
|
-
</div>
|
|
1553
|
-
|
|
1554
|
-
<div class="method-description">
|
|
1555
|
-
<p>
|
|
1556
|
-
Returns the specified expression.
|
|
1557
|
-
</p>
|
|
1558
|
-
<p>
|
|
1559
|
-
This is useful because of JavaScript preprocessing.
|
|
1560
|
-
</p>
|
|
1561
|
-
<p>
|
|
1562
|
-
Related Assertions, automatically generated:
|
|
1563
|
-
</p>
|
|
1564
|
-
<ul>
|
|
1565
|
-
<li><tt>assert_expression(expression, pattern)</tt>
|
|
1566
|
-
|
|
1567
|
-
</li>
|
|
1568
|
-
<li><tt>assert_not_expression(expression, pattern)</tt>
|
|
1569
|
-
|
|
1570
|
-
</li>
|
|
1571
|
-
<li><tt>verify_expression(expression, pattern)</tt>
|
|
1572
|
-
|
|
1573
|
-
</li>
|
|
1574
|
-
<li><tt>verify_not_expression(expression, pattern)</tt>
|
|
1575
|
-
|
|
1576
|
-
</li>
|
|
1577
|
-
<li><tt>wait_for_expression(expression, pattern)</tt>
|
|
1578
|
-
|
|
1579
|
-
</li>
|
|
1580
|
-
<li><tt>wait_for_not_expression(expression, pattern)</tt>
|
|
1581
|
-
|
|
1582
|
-
</li>
|
|
1583
|
-
</ul>
|
|
1584
|
-
<p><a class="source-toggle" href="#"
|
|
1585
|
-
onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
|
|
1586
|
-
<div class="method-source-code" id="M000138-source">
|
|
1587
|
-
<pre>
|
|
1588
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 822</span>
|
|
1589
|
-
822: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_expression</span> <span class="ruby-identifier">expression</span>, <span class="ruby-identifier">variable_name</span>
|
|
1590
|
-
823: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeExpression'</span>, <span class="ruby-identifier">expression</span>, <span class="ruby-identifier">variable_name</span>
|
|
1591
|
-
824: <span class="ruby-keyword kw">end</span>
|
|
1592
|
-
</pre>
|
|
1593
|
-
</div>
|
|
1594
|
-
</div>
|
|
1595
|
-
</div>
|
|
1596
|
-
|
|
1597
|
-
<div id="method-M000087" class="method-detail">
|
|
1598
|
-
<a name="M000087"></a>
|
|
1599
|
-
|
|
1600
|
-
<div class="method-heading">
|
|
1601
|
-
<a href="#M000087" class="method-signature">
|
|
1602
|
-
<span class="method-name">store_failure_on_next</span><span class="method-args">(message)</span>
|
|
1603
|
-
</a>
|
|
1604
|
-
</div>
|
|
1605
|
-
|
|
1606
|
-
<div class="method-description">
|
|
1607
|
-
<p>
|
|
1608
|
-
Tell Selenium to expect a failure on the next command execution.
|
|
1609
|
-
</p>
|
|
1610
|
-
<p>
|
|
1611
|
-
NOTE: <tt><a
|
|
1612
|
-
href="TestBuilderAccessors.html#M000087">store_failure_on_next</a></tt> is
|
|
1613
|
-
currently not supported by Selenium Core and is only added to here as a
|
|
1614
|
-
shortcut for generating the related assertions.
|
|
1615
|
-
</p>
|
|
1616
|
-
<p>
|
|
1617
|
-
Related Assertions, automatically generated:
|
|
1618
|
-
</p>
|
|
1619
|
-
<ul>
|
|
1620
|
-
<li><tt>assert_failure_on_next(message)</tt>
|
|
1621
|
-
|
|
1622
|
-
</li>
|
|
1623
|
-
<li><tt>assert_not_failure_on_next(message)</tt>
|
|
1624
|
-
|
|
1625
|
-
</li>
|
|
1626
|
-
<li><tt>verify_failure_on_next(message)</tt>
|
|
1627
|
-
|
|
1628
|
-
</li>
|
|
1629
|
-
<li><tt>verify_not_failure_on_next(message)</tt>
|
|
1630
|
-
|
|
1631
|
-
</li>
|
|
1632
|
-
<li><tt>wait_for_failure_on_next(message)</tt>
|
|
1633
|
-
|
|
1634
|
-
</li>
|
|
1635
|
-
<li><tt>wait_for_not_failure_on_next(message)</tt>
|
|
1636
|
-
|
|
1637
|
-
</li>
|
|
1638
|
-
</ul>
|
|
1639
|
-
<p><a class="source-toggle" href="#"
|
|
1640
|
-
onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
|
|
1641
|
-
<div class="method-source-code" id="M000087-source">
|
|
1642
|
-
<pre>
|
|
1643
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 37</span>
|
|
1644
|
-
37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_failure_on_next</span> <span class="ruby-identifier">message</span>
|
|
1645
|
-
38: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
1646
|
-
39: <span class="ruby-keyword kw">end</span>
|
|
1647
|
-
</pre>
|
|
1648
|
-
</div>
|
|
1649
|
-
</div>
|
|
1650
|
-
</div>
|
|
1651
|
-
|
|
1652
|
-
<div id="method-M000137" class="method-detail">
|
|
1653
|
-
<a name="M000137"></a>
|
|
1654
|
-
|
|
1655
|
-
<div class="method-heading">
|
|
1656
|
-
<a href="#M000137" class="method-signature">
|
|
1657
|
-
<span class="method-name">store_html_source</span><span class="method-args">(variable_name)</span>
|
|
1658
|
-
</a>
|
|
1659
|
-
</div>
|
|
1660
|
-
|
|
1661
|
-
<div class="method-description">
|
|
1662
|
-
<p>
|
|
1663
|
-
Returns the entire HTML source between the opening and closing
|
|
1664
|
-
"html" tags.
|
|
1665
|
-
</p>
|
|
1666
|
-
<p>
|
|
1667
|
-
Related Assertions, automatically generated:
|
|
1668
|
-
</p>
|
|
1669
|
-
<ul>
|
|
1670
|
-
<li><tt>assert_html_source(pattern)</tt>
|
|
1671
|
-
|
|
1672
|
-
</li>
|
|
1673
|
-
<li><tt>assert_not_html_source(pattern)</tt>
|
|
1674
|
-
|
|
1675
|
-
</li>
|
|
1676
|
-
<li><tt>verify_html_source(pattern)</tt>
|
|
1677
|
-
|
|
1678
|
-
</li>
|
|
1679
|
-
<li><tt>verify_not_html_source(pattern)</tt>
|
|
1680
|
-
|
|
1681
|
-
</li>
|
|
1682
|
-
<li><tt>wait_for_html_source(pattern)</tt>
|
|
1683
|
-
|
|
1684
|
-
</li>
|
|
1685
|
-
<li><tt>wait_for_not_html_source(pattern)</tt>
|
|
1686
|
-
|
|
1687
|
-
</li>
|
|
1688
|
-
</ul>
|
|
1689
|
-
<p><a class="source-toggle" href="#"
|
|
1690
|
-
onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
|
|
1691
|
-
<div class="method-source-code" id="M000137-source">
|
|
1692
|
-
<pre>
|
|
1693
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 807</span>
|
|
1694
|
-
807: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_html_source</span> <span class="ruby-identifier">variable_name</span>
|
|
1695
|
-
808: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeHtmlSource'</span>, <span class="ruby-identifier">variable_name</span>
|
|
1696
|
-
809: <span class="ruby-keyword kw">end</span>
|
|
1697
|
-
</pre>
|
|
1698
|
-
</div>
|
|
1699
|
-
</div>
|
|
1700
|
-
</div>
|
|
1701
|
-
|
|
1702
|
-
<div id="method-M000101" class="method-detail">
|
|
1703
|
-
<a name="M000101"></a>
|
|
1704
|
-
|
|
1705
|
-
<div class="method-heading">
|
|
1706
|
-
<a href="#M000101" class="method-signature">
|
|
1707
|
-
<span class="method-name">store_location</span><span class="method-args">(expected_location, variable_name)</span>
|
|
1708
|
-
</a>
|
|
1709
|
-
</div>
|
|
1710
|
-
|
|
1711
|
-
<div class="method-description">
|
|
1712
|
-
<p>
|
|
1713
|
-
Verify the location of the current page ends with the expected location. If
|
|
1714
|
-
an URL querystring is provided, this is checked as well.
|
|
1715
|
-
</p>
|
|
1716
|
-
<p>
|
|
1717
|
-
Related Assertions, automatically generated:
|
|
1718
|
-
</p>
|
|
1719
|
-
<ul>
|
|
1720
|
-
<li><tt>assert_location(pattern)</tt>
|
|
1721
|
-
|
|
1722
|
-
</li>
|
|
1723
|
-
<li><tt>assert_not_location(pattern)</tt>
|
|
1724
|
-
|
|
1725
|
-
</li>
|
|
1726
|
-
<li><tt>verify_location_present(pattern)</tt>
|
|
1727
|
-
|
|
1728
|
-
</li>
|
|
1729
|
-
<li><tt>verify_not_location(pattern)</tt>
|
|
1730
|
-
|
|
1731
|
-
</li>
|
|
1732
|
-
<li><tt>wait_for_location(pattern)</tt>
|
|
1733
|
-
|
|
1734
|
-
</li>
|
|
1735
|
-
<li><tt>wait_for_not_location(pattern)</tt>
|
|
1736
|
-
|
|
1737
|
-
</li>
|
|
1738
|
-
</ul>
|
|
1739
|
-
<p><a class="source-toggle" href="#"
|
|
1740
|
-
onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
|
|
1741
|
-
<div class="method-source-code" id="M000101-source">
|
|
1742
|
-
<pre>
|
|
1743
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 260</span>
|
|
1744
|
-
260: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_location</span> <span class="ruby-identifier">expected_location</span>, <span class="ruby-identifier">variable_name</span>
|
|
1745
|
-
261: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeLocation'</span>, <span class="ruby-identifier">expected_location</span>, <span class="ruby-identifier">variable_name</span>
|
|
1746
|
-
262: <span class="ruby-keyword kw">end</span>
|
|
1747
|
-
</pre>
|
|
1748
|
-
</div>
|
|
1749
|
-
</div>
|
|
1750
|
-
</div>
|
|
1751
|
-
|
|
1752
|
-
<div id="method-M000132" class="method-detail">
|
|
1753
|
-
<a name="M000132"></a>
|
|
1754
|
-
|
|
1755
|
-
<div class="method-heading">
|
|
1756
|
-
<a href="#M000132" class="method-signature">
|
|
1757
|
-
<span class="method-name">store_log_messages</span><span class="method-args">(variable_name)</span>
|
|
1758
|
-
</a>
|
|
1759
|
-
</div>
|
|
1760
|
-
|
|
1761
|
-
<div class="method-description">
|
|
1762
|
-
<p>
|
|
1763
|
-
Return the contents of the log.
|
|
1764
|
-
</p>
|
|
1765
|
-
<p>
|
|
1766
|
-
Related Assertions, automatically generated:
|
|
1767
|
-
</p>
|
|
1768
|
-
<ul>
|
|
1769
|
-
<li><tt>assert_log_messages(pattern)</tt>
|
|
1770
|
-
|
|
1771
|
-
</li>
|
|
1772
|
-
<li><tt>assert_not_log_messages(pattern)</tt>
|
|
1773
|
-
|
|
1774
|
-
</li>
|
|
1775
|
-
<li><tt>verify_log_messages(pattern)</tt>
|
|
1776
|
-
|
|
1777
|
-
</li>
|
|
1778
|
-
<li><tt>verify_not_log_messages(pattern)</tt>
|
|
1779
|
-
|
|
1780
|
-
</li>
|
|
1781
|
-
<li><tt>wait_for_log_messages(pattern)</tt>
|
|
1782
|
-
|
|
1783
|
-
</li>
|
|
1784
|
-
<li><tt>wait_for_not_log_messages(pattern)</tt>
|
|
1785
|
-
|
|
1786
|
-
</li>
|
|
1787
|
-
</ul>
|
|
1788
|
-
<p><a class="source-toggle" href="#"
|
|
1789
|
-
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
|
1790
|
-
<div class="method-source-code" id="M000132-source">
|
|
1791
|
-
<pre>
|
|
1792
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 719</span>
|
|
1793
|
-
719: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_log_messages</span> <span class="ruby-identifier">variable_name</span>
|
|
1794
|
-
720: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeLogMessages'</span>, <span class="ruby-identifier">variable_name</span>
|
|
1795
|
-
721: <span class="ruby-keyword kw">end</span>
|
|
1796
|
-
</pre>
|
|
1797
|
-
</div>
|
|
1798
|
-
</div>
|
|
1799
|
-
</div>
|
|
1800
|
-
|
|
1801
|
-
<div id="method-M000102" class="method-detail">
|
|
1802
|
-
<a name="M000102"></a>
|
|
1803
|
-
|
|
1804
|
-
<div class="method-heading">
|
|
1805
|
-
<a href="#M000102" class="method-signature">
|
|
1806
|
-
<span class="method-name">store_mouse_speed</span><span class="method-args">(variable_name)</span>
|
|
1807
|
-
</a>
|
|
1808
|
-
</div>
|
|
1809
|
-
|
|
1810
|
-
<div class="method-description">
|
|
1811
|
-
<p>
|
|
1812
|
-
Returns the number of pixels between "mousemove" events during
|
|
1813
|
-
drag_and_drop commands (default=10).
|
|
1814
|
-
</p>
|
|
1815
|
-
<p>
|
|
1816
|
-
Related Assertions, automatically generated:
|
|
1817
|
-
</p>
|
|
1818
|
-
<ul>
|
|
1819
|
-
<li><tt>assert_mouse_speed(pattern)</tt>
|
|
1820
|
-
|
|
1821
|
-
</li>
|
|
1822
|
-
<li><tt>assert_not_mouse_speed(pattern)</tt>
|
|
1823
|
-
|
|
1824
|
-
</li>
|
|
1825
|
-
<li><tt>verify_mouse_speed(pattern)</tt>
|
|
1826
|
-
|
|
1827
|
-
</li>
|
|
1828
|
-
<li><tt>verify_not_mouse_speed(pattern)</tt>
|
|
1829
|
-
|
|
1830
|
-
</li>
|
|
1831
|
-
<li><tt>wait_for_mouse_speed(pattern)</tt>
|
|
1832
|
-
|
|
1833
|
-
</li>
|
|
1834
|
-
<li><tt>wait_for_not_mouse_speed(pattern)</tt>
|
|
1835
|
-
|
|
1836
|
-
</li>
|
|
1837
|
-
</ul>
|
|
1838
|
-
<p><a class="source-toggle" href="#"
|
|
1839
|
-
onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
|
|
1840
|
-
<div class="method-source-code" id="M000102-source">
|
|
1841
|
-
<pre>
|
|
1842
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 274</span>
|
|
1843
|
-
274: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_mouse_speed</span> <span class="ruby-identifier">variable_name</span>
|
|
1844
|
-
275: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeMouseSpeed'</span>, <span class="ruby-identifier">variable_name</span>
|
|
1845
|
-
276: <span class="ruby-keyword kw">end</span>
|
|
1846
|
-
</pre>
|
|
1847
|
-
</div>
|
|
1848
|
-
</div>
|
|
1849
|
-
</div>
|
|
1850
|
-
|
|
1851
|
-
<div id="method-M000123" class="method-detail">
|
|
1852
|
-
<a name="M000123"></a>
|
|
1853
|
-
|
|
1854
|
-
<div class="method-heading">
|
|
1855
|
-
<a href="#M000123" class="method-signature">
|
|
1856
|
-
<span class="method-name">store_ordered</span><span class="method-args">(locator_1, locator_2, variable_name)</span>
|
|
1857
|
-
</a>
|
|
1858
|
-
</div>
|
|
1859
|
-
|
|
1860
|
-
<div class="method-description">
|
|
1861
|
-
<p>
|
|
1862
|
-
Check if these two elements have same parent and are ordered. Two same
|
|
1863
|
-
elements will not be considered ordered.
|
|
1864
|
-
</p>
|
|
1865
|
-
<p>
|
|
1866
|
-
NOTE: <tt><a
|
|
1867
|
-
href="TestBuilderAccessors.html#M000123">store_ordered</a></tt> is
|
|
1868
|
-
currently not supported by Selenium Core.
|
|
1869
|
-
</p>
|
|
1870
|
-
<p>
|
|
1871
|
-
Related Assertions, automatically generated:
|
|
1872
|
-
</p>
|
|
1873
|
-
<ul>
|
|
1874
|
-
<li><tt>assert_ordered(locator_1, locator_2)</tt>
|
|
1875
|
-
|
|
1876
|
-
</li>
|
|
1877
|
-
<li><tt>assert_not_ordered(locator_1, locator_2)</tt>
|
|
1878
|
-
|
|
1879
|
-
</li>
|
|
1880
|
-
<li><tt>verify_ordered(locator_1, locator_2)</tt>
|
|
1881
|
-
|
|
1882
|
-
</li>
|
|
1883
|
-
<li><tt>verify_not_ordered(locator_1, locator_2)</tt>
|
|
1884
|
-
|
|
1885
|
-
</li>
|
|
1886
|
-
<li><tt>wait_for_ordered(locator_1, locator_2)</tt>
|
|
1887
|
-
|
|
1888
|
-
</li>
|
|
1889
|
-
<li><tt>wait_for_not_ordered(locator_1, locator_2)</tt>
|
|
1890
|
-
|
|
1891
|
-
</li>
|
|
1892
|
-
</ul>
|
|
1893
|
-
<p><a class="source-toggle" href="#"
|
|
1894
|
-
onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
|
|
1895
|
-
<div class="method-source-code" id="M000123-source">
|
|
1896
|
-
<pre>
|
|
1897
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 593</span>
|
|
1898
|
-
593: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_ordered</span> <span class="ruby-identifier">locator_1</span>, <span class="ruby-identifier">locator_2</span>, <span class="ruby-identifier">variable_name</span>
|
|
1899
|
-
594: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
1900
|
-
595: <span class="ruby-keyword kw">end</span>
|
|
1901
|
-
</pre>
|
|
1902
|
-
</div>
|
|
1903
|
-
</div>
|
|
1904
|
-
</div>
|
|
1905
|
-
|
|
1906
|
-
<div id="method-M000099" class="method-detail">
|
|
1907
|
-
<a name="M000099"></a>
|
|
1908
|
-
|
|
1909
|
-
<div class="method-heading">
|
|
1910
|
-
<a href="#M000099" class="method-signature">
|
|
1911
|
-
<span class="method-name">store_prompt</span><span class="method-args">(variable_name)</span>
|
|
1912
|
-
</a>
|
|
1913
|
-
</div>
|
|
1914
|
-
|
|
1915
|
-
<div class="method-description">
|
|
1916
|
-
<p>
|
|
1917
|
-
Retrieves the message of a JavaScript question prompt dialog generated
|
|
1918
|
-
during the previous action.
|
|
1919
|
-
</p>
|
|
1920
|
-
<p>
|
|
1921
|
-
Successful handling of the prompt requires prior execution of the
|
|
1922
|
-
<tt>answer_on_next_prompt</tt> command. If a prompt is generated but you do
|
|
1923
|
-
not get/verify it, the next Selenium action will fail.
|
|
1924
|
-
</p>
|
|
1925
|
-
<p>
|
|
1926
|
-
NOTE: under Selenium, JavaScript prompts will NOT pop up a visible dialog.
|
|
1927
|
-
</p>
|
|
1928
|
-
<p>
|
|
1929
|
-
NOTE: Selenium does NOT support JavaScript prompts that are generated in a
|
|
1930
|
-
page‘s <tt>onload()</tt> event handler. In this case a visible dialog
|
|
1931
|
-
WILL be generated and Selenium will hang until someone manually clicks OK.
|
|
1932
|
-
</p>
|
|
1933
|
-
<p>
|
|
1934
|
-
Related Assertions, automatically generated:
|
|
1935
|
-
</p>
|
|
1936
|
-
<ul>
|
|
1937
|
-
<li><tt>assert_prompt(pattern)</tt>
|
|
1938
|
-
|
|
1939
|
-
</li>
|
|
1940
|
-
<li><tt>assert_not_prompt(pattern)</tt>
|
|
1941
|
-
|
|
1942
|
-
</li>
|
|
1943
|
-
<li><tt>verify_prompt_present(pattern)</tt>
|
|
1944
|
-
|
|
1945
|
-
</li>
|
|
1946
|
-
<li><tt>verify_not_prompt(pattern)</tt>
|
|
1947
|
-
|
|
1948
|
-
</li>
|
|
1949
|
-
<li><tt>wait_for_prompt(pattern)</tt>
|
|
1950
|
-
|
|
1951
|
-
</li>
|
|
1952
|
-
<li><tt>wait_for_not_prompt(pattern)</tt>
|
|
1953
|
-
|
|
1954
|
-
</li>
|
|
1955
|
-
</ul>
|
|
1956
|
-
<p><a class="source-toggle" href="#"
|
|
1957
|
-
onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
|
|
1958
|
-
<div class="method-source-code" id="M000099-source">
|
|
1959
|
-
<pre>
|
|
1960
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 233</span>
|
|
1961
|
-
233: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_prompt</span> <span class="ruby-identifier">variable_name</span>
|
|
1962
|
-
234: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storePrompt'</span>, <span class="ruby-identifier">variable_name</span>
|
|
1963
|
-
235: <span class="ruby-keyword kw">end</span>
|
|
1964
|
-
</pre>
|
|
1965
|
-
</div>
|
|
1966
|
-
</div>
|
|
1967
|
-
</div>
|
|
1968
|
-
|
|
1969
|
-
<div id="method-M000093" class="method-detail">
|
|
1970
|
-
<a name="M000093"></a>
|
|
1971
|
-
|
|
1972
|
-
<div class="method-heading">
|
|
1973
|
-
<a href="#M000093" class="method-signature">
|
|
1974
|
-
<span class="method-name">store_prompt_present</span><span class="method-args">(variable_name)</span>
|
|
1975
|
-
</a>
|
|
1976
|
-
</div>
|
|
1977
|
-
|
|
1978
|
-
<div class="method-description">
|
|
1979
|
-
<p>
|
|
1980
|
-
Has a prompt occurred?
|
|
1981
|
-
</p>
|
|
1982
|
-
<p>
|
|
1983
|
-
Related Assertions, automatically generated:
|
|
1984
|
-
</p>
|
|
1985
|
-
<ul>
|
|
1986
|
-
<li><tt>assert_prompt_present</tt>
|
|
1987
|
-
|
|
1988
|
-
</li>
|
|
1989
|
-
<li><tt>assert_prompt_not_present</tt>
|
|
1990
|
-
|
|
1991
|
-
</li>
|
|
1992
|
-
<li><tt>verify_prompt_present</tt>
|
|
1993
|
-
|
|
1994
|
-
</li>
|
|
1995
|
-
<li><tt>verify_prompt_not_present</tt>
|
|
1996
|
-
|
|
1997
|
-
</li>
|
|
1998
|
-
<li><tt>wait_for_prompt_present</tt>
|
|
1999
|
-
|
|
2000
|
-
</li>
|
|
2001
|
-
<li><tt>wait_for_prompt_not_present</tt>
|
|
2002
|
-
|
|
2003
|
-
</li>
|
|
2004
|
-
</ul>
|
|
2005
|
-
<p><a class="source-toggle" href="#"
|
|
2006
|
-
onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
|
|
2007
|
-
<div class="method-source-code" id="M000093-source">
|
|
2008
|
-
<pre>
|
|
2009
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 115</span>
|
|
2010
|
-
115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_prompt_present</span> <span class="ruby-identifier">variable_name</span>
|
|
2011
|
-
116: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storePromptPresent'</span>, <span class="ruby-identifier">variable_name</span>
|
|
2012
|
-
117: <span class="ruby-keyword kw">end</span>
|
|
2013
|
-
</pre>
|
|
2014
|
-
</div>
|
|
2015
|
-
</div>
|
|
2016
|
-
</div>
|
|
2017
|
-
|
|
2018
|
-
<div id="method-M000121" class="method-detail">
|
|
2019
|
-
<a name="M000121"></a>
|
|
2020
|
-
|
|
2021
|
-
<div class="method-heading">
|
|
2022
|
-
<a href="#M000121" class="method-signature">
|
|
2023
|
-
<span class="method-name">store_select_options</span><span class="method-args">(locator, variable_name)</span>
|
|
2024
|
-
</a>
|
|
2025
|
-
</div>
|
|
2026
|
-
|
|
2027
|
-
<div class="method-description">
|
|
2028
|
-
<p>
|
|
2029
|
-
Gets all option labels in the specified select drop-down.
|
|
2030
|
-
</p>
|
|
2031
|
-
<p>
|
|
2032
|
-
The <tt>pattern</tt> for the automatically generated assertions can either
|
|
2033
|
-
take an array or a pattern.
|
|
2034
|
-
</p>
|
|
2035
|
-
<pre>
|
|
2036
|
-
assert_select_options 'fruits', ['apple', 'pear']
|
|
2037
|
-
assert_select_options 'fruits', 'a*,p*'
|
|
2038
|
-
</pre>
|
|
2039
|
-
<p>
|
|
2040
|
-
Related Assertions, automatically generated:
|
|
2041
|
-
</p>
|
|
2042
|
-
<ul>
|
|
2043
|
-
<li><tt>assert_select_options(locator, pattern)</tt>
|
|
2044
|
-
|
|
2045
|
-
</li>
|
|
2046
|
-
<li><tt>assert_not_select_options(locator, pattern)</tt>
|
|
2047
|
-
|
|
2048
|
-
</li>
|
|
2049
|
-
<li><tt>verify_select_options_present(locator, pattern)</tt>
|
|
2050
|
-
|
|
2051
|
-
</li>
|
|
2052
|
-
<li><tt>verify_not_select_options(locator, pattern)</tt>
|
|
2053
|
-
|
|
2054
|
-
</li>
|
|
2055
|
-
<li><tt>wait_for_select_options(locator, pattern)</tt>
|
|
2056
|
-
|
|
2057
|
-
</li>
|
|
2058
|
-
<li><tt>wait_for_not_select_options(locator, pattern)</tt>
|
|
2059
|
-
|
|
2060
|
-
</li>
|
|
2061
|
-
</ul>
|
|
2062
|
-
<p><a class="source-toggle" href="#"
|
|
2063
|
-
onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
|
|
2064
|
-
<div class="method-source-code" id="M000121-source">
|
|
2065
|
-
<pre>
|
|
2066
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 564</span>
|
|
2067
|
-
564: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_select_options</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2068
|
-
565: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectOptions'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2069
|
-
566: <span class="ruby-keyword kw">end</span>
|
|
2070
|
-
</pre>
|
|
2071
|
-
</div>
|
|
2072
|
-
</div>
|
|
2073
|
-
</div>
|
|
2074
|
-
|
|
2075
|
-
<div id="method-M000110" class="method-detail">
|
|
2076
|
-
<a name="M000110"></a>
|
|
2077
|
-
|
|
2078
|
-
<div class="method-heading">
|
|
2079
|
-
<a href="#M000110" class="method-signature">
|
|
2080
|
-
<span class="method-name">store_selected</span><span class="method-args">(locator, option_locator, variable_name)</span>
|
|
2081
|
-
</a>
|
|
2082
|
-
</div>
|
|
2083
|
-
|
|
2084
|
-
<div class="method-description">
|
|
2085
|
-
<p>
|
|
2086
|
-
Verifies that the selected option of a drop-down satisfies the
|
|
2087
|
-
<tt>option_locator</tt>.
|
|
2088
|
-
</p>
|
|
2089
|
-
<p>
|
|
2090
|
-
<tt>option_locator</tt> is typically just an option label (e.g. "John
|
|
2091
|
-
Smith").
|
|
2092
|
-
</p>
|
|
2093
|
-
<p>
|
|
2094
|
-
See the <tt>select</tt> command for more information about option locators.
|
|
2095
|
-
</p>
|
|
2096
|
-
<p>
|
|
2097
|
-
NOTE: <tt><a
|
|
2098
|
-
href="TestBuilderAccessors.html#M000110">store_selected</a></tt> is
|
|
2099
|
-
currently not supported by Selenium Core.
|
|
2100
|
-
</p>
|
|
2101
|
-
<p>
|
|
2102
|
-
Related Assertions, automatically generated:
|
|
2103
|
-
</p>
|
|
2104
|
-
<ul>
|
|
2105
|
-
<li><tt>assert_selected(locator, option_locator)</tt>
|
|
2106
|
-
|
|
2107
|
-
</li>
|
|
2108
|
-
<li><tt>assert_not_selected(locator, option_locator)</tt>
|
|
2109
|
-
|
|
2110
|
-
</li>
|
|
2111
|
-
<li><tt>verify_selected_present(locator, option_locator)</tt>
|
|
2112
|
-
|
|
2113
|
-
</li>
|
|
2114
|
-
<li><tt>verify_not_selected(locator, option_locator)</tt>
|
|
2115
|
-
|
|
2116
|
-
</li>
|
|
2117
|
-
<li><tt>wait_for_selected(locator, option_locator)</tt>
|
|
2118
|
-
|
|
2119
|
-
</li>
|
|
2120
|
-
<li><tt>wait_for_not_selected(locator, option_locator)</tt>
|
|
2121
|
-
|
|
2122
|
-
</li>
|
|
2123
|
-
</ul>
|
|
2124
|
-
<p><a class="source-toggle" href="#"
|
|
2125
|
-
onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
|
|
2126
|
-
<div class="method-source-code" id="M000110-source">
|
|
2127
|
-
<pre>
|
|
2128
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 403</span>
|
|
2129
|
-
403: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">option_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2130
|
-
404: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
2131
|
-
405: <span class="ruby-keyword kw">end</span>
|
|
2132
|
-
</pre>
|
|
2133
|
-
</div>
|
|
2134
|
-
</div>
|
|
2135
|
-
</div>
|
|
2136
|
-
|
|
2137
|
-
<div id="method-M000111" class="method-detail">
|
|
2138
|
-
<a name="M000111"></a>
|
|
2139
|
-
|
|
2140
|
-
<div class="method-heading">
|
|
2141
|
-
<a href="#M000111" class="method-signature">
|
|
2142
|
-
<span class="method-name">store_selected_id</span><span class="method-args">(select_locator, variable_name)</span>
|
|
2143
|
-
</a>
|
|
2144
|
-
</div>
|
|
2145
|
-
|
|
2146
|
-
<div class="method-description">
|
|
2147
|
-
<p>
|
|
2148
|
-
Gets option element ID for selected option in the specified select element.
|
|
2149
|
-
</p>
|
|
2150
|
-
<p>
|
|
2151
|
-
Related Assertions, automatically generated:
|
|
2152
|
-
</p>
|
|
2153
|
-
<ul>
|
|
2154
|
-
<li><tt>assert_selected_id(select_locator, pattern)</tt>
|
|
2155
|
-
|
|
2156
|
-
</li>
|
|
2157
|
-
<li><tt>assert_not_selected_id(select_locator, pattern)</tt>
|
|
2158
|
-
|
|
2159
|
-
</li>
|
|
2160
|
-
<li><tt>verify_selected_id(select_locator, pattern)</tt>
|
|
2161
|
-
|
|
2162
|
-
</li>
|
|
2163
|
-
<li><tt>verify_not_selected_id(select_locator, pattern)</tt>
|
|
2164
|
-
|
|
2165
|
-
</li>
|
|
2166
|
-
<li><tt>wait_for_selected_id(select_locator, pattern)</tt>
|
|
2167
|
-
|
|
2168
|
-
</li>
|
|
2169
|
-
<li><tt>wait_for_not_selected_id(select_locator, pattern)</tt>
|
|
2170
|
-
|
|
2171
|
-
</li>
|
|
2172
|
-
</ul>
|
|
2173
|
-
<p><a class="source-toggle" href="#"
|
|
2174
|
-
onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
|
|
2175
|
-
<div class="method-source-code" id="M000111-source">
|
|
2176
|
-
<pre>
|
|
2177
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 416</span>
|
|
2178
|
-
416: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_id</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2179
|
-
417: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedId'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2180
|
-
418: <span class="ruby-keyword kw">end</span>
|
|
2181
|
-
</pre>
|
|
2182
|
-
</div>
|
|
2183
|
-
</div>
|
|
2184
|
-
</div>
|
|
2185
|
-
|
|
2186
|
-
<div id="method-M000112" class="method-detail">
|
|
2187
|
-
<a name="M000112"></a>
|
|
2188
|
-
|
|
2189
|
-
<div class="method-heading">
|
|
2190
|
-
<a href="#M000112" class="method-signature">
|
|
2191
|
-
<span class="method-name">store_selected_ids</span><span class="method-args">(select_locator, variable_name)</span>
|
|
2192
|
-
</a>
|
|
2193
|
-
</div>
|
|
2194
|
-
|
|
2195
|
-
<div class="method-description">
|
|
2196
|
-
<p>
|
|
2197
|
-
Gets all option element IDs for selected options in the specified select or
|
|
2198
|
-
multi-select element.
|
|
2199
|
-
</p>
|
|
2200
|
-
<p>
|
|
2201
|
-
Related Assertions, automatically generated:
|
|
2202
|
-
</p>
|
|
2203
|
-
<ul>
|
|
2204
|
-
<li><tt>assert_selected_ids(select_locator, pattern)</tt>
|
|
2205
|
-
|
|
2206
|
-
</li>
|
|
2207
|
-
<li><tt>assert_not_selected_ids(select_locator, pattern)</tt>
|
|
2208
|
-
|
|
2209
|
-
</li>
|
|
2210
|
-
<li><tt>verify_selected_ids(select_locator, pattern)</tt>
|
|
2211
|
-
|
|
2212
|
-
</li>
|
|
2213
|
-
<li><tt>verify_not_selected_ids(select_locator, pattern)</tt>
|
|
2214
|
-
|
|
2215
|
-
</li>
|
|
2216
|
-
<li><tt>wait_for_selected_ids(select_locator, pattern)</tt>
|
|
2217
|
-
|
|
2218
|
-
</li>
|
|
2219
|
-
<li><tt>wait_for_not_selected_ids(select_locator, pattern)</tt>
|
|
2220
|
-
|
|
2221
|
-
</li>
|
|
2222
|
-
</ul>
|
|
2223
|
-
<p><a class="source-toggle" href="#"
|
|
2224
|
-
onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
|
|
2225
|
-
<div class="method-source-code" id="M000112-source">
|
|
2226
|
-
<pre>
|
|
2227
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 430</span>
|
|
2228
|
-
430: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_ids</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2229
|
-
431: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedIds'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2230
|
-
432: <span class="ruby-keyword kw">end</span>
|
|
2231
|
-
</pre>
|
|
2232
|
-
</div>
|
|
2233
|
-
</div>
|
|
2234
|
-
</div>
|
|
2235
|
-
|
|
2236
|
-
<div id="method-M000113" class="method-detail">
|
|
2237
|
-
<a name="M000113"></a>
|
|
2238
|
-
|
|
2239
|
-
<div class="method-heading">
|
|
2240
|
-
<a href="#M000113" class="method-signature">
|
|
2241
|
-
<span class="method-name">store_selected_index</span><span class="method-args">(select_locator, variable_name)</span>
|
|
2242
|
-
</a>
|
|
2243
|
-
</div>
|
|
2244
|
-
|
|
2245
|
-
<div class="method-description">
|
|
2246
|
-
<p>
|
|
2247
|
-
Gets option index (option number, starting at 0) for selected option in the
|
|
2248
|
-
specified select element.
|
|
2249
|
-
</p>
|
|
2250
|
-
<p>
|
|
2251
|
-
Related Assertions, automatically generated:
|
|
2252
|
-
</p>
|
|
2253
|
-
<ul>
|
|
2254
|
-
<li><tt>assert_selected_index(select_locator, pattern)</tt>
|
|
2255
|
-
|
|
2256
|
-
</li>
|
|
2257
|
-
<li><tt>assert_not_selected_index(select_locator, pattern)</tt>
|
|
2258
|
-
|
|
2259
|
-
</li>
|
|
2260
|
-
<li><tt>verify_selected_index(select_locator, pattern)</tt>
|
|
2261
|
-
|
|
2262
|
-
</li>
|
|
2263
|
-
<li><tt>verify_not_selected_index(select_locator, pattern)</tt>
|
|
2264
|
-
|
|
2265
|
-
</li>
|
|
2266
|
-
<li><tt>wait_for_selected_index(select_locator, pattern)</tt>
|
|
2267
|
-
|
|
2268
|
-
</li>
|
|
2269
|
-
<li><tt>wait_for_not_selected_index(select_locator, pattern)</tt>
|
|
2270
|
-
|
|
2271
|
-
</li>
|
|
2272
|
-
</ul>
|
|
2273
|
-
<p><a class="source-toggle" href="#"
|
|
2274
|
-
onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
|
|
2275
|
-
<div class="method-source-code" id="M000113-source">
|
|
2276
|
-
<pre>
|
|
2277
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 444</span>
|
|
2278
|
-
444: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_index</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2279
|
-
445: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedIndex'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2280
|
-
446: <span class="ruby-keyword kw">end</span>
|
|
2281
|
-
</pre>
|
|
2282
|
-
</div>
|
|
2283
|
-
</div>
|
|
2284
|
-
</div>
|
|
2285
|
-
|
|
2286
|
-
<div id="method-M000114" class="method-detail">
|
|
2287
|
-
<a name="M000114"></a>
|
|
2288
|
-
|
|
2289
|
-
<div class="method-heading">
|
|
2290
|
-
<a href="#M000114" class="method-signature">
|
|
2291
|
-
<span class="method-name">store_selected_indexes</span><span class="method-args">(select_locator, variable_name)</span>
|
|
2292
|
-
</a>
|
|
2293
|
-
</div>
|
|
2294
|
-
|
|
2295
|
-
<div class="method-description">
|
|
2296
|
-
<p>
|
|
2297
|
-
Gets all option indexes (option number, starting at 0) for selected options
|
|
2298
|
-
in the specified select or multi-select element.
|
|
2299
|
-
</p>
|
|
2300
|
-
<p>
|
|
2301
|
-
Related Assertions, automatically generated:
|
|
2302
|
-
</p>
|
|
2303
|
-
<ul>
|
|
2304
|
-
<li><tt>assert_selected_indexes(select_locator, pattern)</tt>
|
|
2305
|
-
|
|
2306
|
-
</li>
|
|
2307
|
-
<li><tt>assert_not_selected_indexes(select_locator, pattern)</tt>
|
|
2308
|
-
|
|
2309
|
-
</li>
|
|
2310
|
-
<li><tt>verify_selected_indexes(select_locator, pattern)</tt>
|
|
2311
|
-
|
|
2312
|
-
</li>
|
|
2313
|
-
<li><tt>verify_not_selected_indexes(select_locator, pattern)</tt>
|
|
2314
|
-
|
|
2315
|
-
</li>
|
|
2316
|
-
<li><tt>wait_for_selected_indexes(select_locator, pattern)</tt>
|
|
2317
|
-
|
|
2318
|
-
</li>
|
|
2319
|
-
<li><tt>wait_for_not_selected_indexes(select_locator, pattern)</tt>
|
|
2320
|
-
|
|
2321
|
-
</li>
|
|
2322
|
-
</ul>
|
|
2323
|
-
<p><a class="source-toggle" href="#"
|
|
2324
|
-
onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
|
|
2325
|
-
<div class="method-source-code" id="M000114-source">
|
|
2326
|
-
<pre>
|
|
2327
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 458</span>
|
|
2328
|
-
458: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_indexes</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2329
|
-
459: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedIndexes'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2330
|
-
460: <span class="ruby-keyword kw">end</span>
|
|
2331
|
-
</pre>
|
|
2332
|
-
</div>
|
|
2333
|
-
</div>
|
|
2334
|
-
</div>
|
|
2335
|
-
|
|
2336
|
-
<div id="method-M000115" class="method-detail">
|
|
2337
|
-
<a name="M000115"></a>
|
|
2338
|
-
|
|
2339
|
-
<div class="method-heading">
|
|
2340
|
-
<a href="#M000115" class="method-signature">
|
|
2341
|
-
<span class="method-name">store_selected_label</span><span class="method-args">(select_locator, variable_name)</span>
|
|
2342
|
-
</a>
|
|
2343
|
-
</div>
|
|
2344
|
-
|
|
2345
|
-
<div class="method-description">
|
|
2346
|
-
<p>
|
|
2347
|
-
Gets option label (visible text) for selected option in the specified
|
|
2348
|
-
select element.
|
|
2349
|
-
</p>
|
|
2350
|
-
<p>
|
|
2351
|
-
Related Assertions, automatically generated:
|
|
2352
|
-
</p>
|
|
2353
|
-
<ul>
|
|
2354
|
-
<li><tt>assert_selected_label(select_locator, pattern)</tt>
|
|
2355
|
-
|
|
2356
|
-
</li>
|
|
2357
|
-
<li><tt>assert_not_selected_label(select_locator, pattern)</tt>
|
|
2358
|
-
|
|
2359
|
-
</li>
|
|
2360
|
-
<li><tt>verify_selected_label(select_locator, pattern)</tt>
|
|
2361
|
-
|
|
2362
|
-
</li>
|
|
2363
|
-
<li><tt>verify_not_selected_label(select_locator, pattern)</tt>
|
|
2364
|
-
|
|
2365
|
-
</li>
|
|
2366
|
-
<li><tt>wait_for_selected_label(select_locator, pattern)</tt>
|
|
2367
|
-
|
|
2368
|
-
</li>
|
|
2369
|
-
<li><tt>wait_for_not_selected_label(select_locator, pattern)</tt>
|
|
2370
|
-
|
|
2371
|
-
</li>
|
|
2372
|
-
</ul>
|
|
2373
|
-
<p><a class="source-toggle" href="#"
|
|
2374
|
-
onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
|
|
2375
|
-
<div class="method-source-code" id="M000115-source">
|
|
2376
|
-
<pre>
|
|
2377
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 472</span>
|
|
2378
|
-
472: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_label</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2379
|
-
473: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedLabel'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2380
|
-
474: <span class="ruby-keyword kw">end</span>
|
|
2381
|
-
</pre>
|
|
2382
|
-
</div>
|
|
2383
|
-
</div>
|
|
2384
|
-
</div>
|
|
2385
|
-
|
|
2386
|
-
<div id="method-M000116" class="method-detail">
|
|
2387
|
-
<a name="M000116"></a>
|
|
2388
|
-
|
|
2389
|
-
<div class="method-heading">
|
|
2390
|
-
<a href="#M000116" class="method-signature">
|
|
2391
|
-
<span class="method-name">store_selected_labels</span><span class="method-args">(select_locator, variable_name)</span>
|
|
2392
|
-
</a>
|
|
2393
|
-
</div>
|
|
2394
|
-
|
|
2395
|
-
<div class="method-description">
|
|
2396
|
-
<p>
|
|
2397
|
-
Gets all option labels (visible text) for selected options in the specified
|
|
2398
|
-
select or multi-select element.
|
|
2399
|
-
</p>
|
|
2400
|
-
<p>
|
|
2401
|
-
Related Assertions, automatically generated:
|
|
2402
|
-
</p>
|
|
2403
|
-
<ul>
|
|
2404
|
-
<li><tt>assert_selected_labels(select_locator, pattern)</tt>
|
|
2405
|
-
|
|
2406
|
-
</li>
|
|
2407
|
-
<li><tt>assert_not_selected_labels(select_locator, pattern)</tt>
|
|
2408
|
-
|
|
2409
|
-
</li>
|
|
2410
|
-
<li><tt>verify_selected_labels(select_locator, pattern)</tt>
|
|
2411
|
-
|
|
2412
|
-
</li>
|
|
2413
|
-
<li><tt>verify_not_selected_labels(select_locator, pattern)</tt>
|
|
2414
|
-
|
|
2415
|
-
</li>
|
|
2416
|
-
<li><tt>wait_for_selected_labels(select_locator, pattern)</tt>
|
|
2417
|
-
|
|
2418
|
-
</li>
|
|
2419
|
-
<li><tt>wait_for_not_selected_labels(select_locator, pattern)</tt>
|
|
2420
|
-
|
|
2421
|
-
</li>
|
|
2422
|
-
</ul>
|
|
2423
|
-
<p><a class="source-toggle" href="#"
|
|
2424
|
-
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
|
2425
|
-
<div class="method-source-code" id="M000116-source">
|
|
2426
|
-
<pre>
|
|
2427
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 486</span>
|
|
2428
|
-
486: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_labels</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2429
|
-
487: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedLabels'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2430
|
-
488: <span class="ruby-keyword kw">end</span>
|
|
2431
|
-
</pre>
|
|
2432
|
-
</div>
|
|
2433
|
-
</div>
|
|
2434
|
-
</div>
|
|
2435
|
-
|
|
2436
|
-
<div id="method-M000120" class="method-detail">
|
|
2437
|
-
<a name="M000120"></a>
|
|
2438
|
-
|
|
2439
|
-
<div class="method-heading">
|
|
2440
|
-
<a href="#M000120" class="method-signature">
|
|
2441
|
-
<span class="method-name">store_selected_options</span><span class="method-args">(locator, variable_name)</span>
|
|
2442
|
-
</a>
|
|
2443
|
-
</div>
|
|
2444
|
-
|
|
2445
|
-
<div class="method-description">
|
|
2446
|
-
<p>
|
|
2447
|
-
Gets all option labels for selected options in the specified select or
|
|
2448
|
-
multi-select element.
|
|
2449
|
-
</p>
|
|
2450
|
-
<p>
|
|
2451
|
-
The <tt>pattern</tt> for the automatically generated assertions can either
|
|
2452
|
-
take an array or a pattern.
|
|
2453
|
-
</p>
|
|
2454
|
-
<pre>
|
|
2455
|
-
assert_selected_options 'fruits', ['apple', 'pear']
|
|
2456
|
-
assert_selected_options 'fruits', 'a*,p*'
|
|
2457
|
-
</pre>
|
|
2458
|
-
<p>
|
|
2459
|
-
Related Assertions, automatically generated:
|
|
2460
|
-
</p>
|
|
2461
|
-
<ul>
|
|
2462
|
-
<li><tt>assert_selected_options(locator, pattern)</tt>
|
|
2463
|
-
|
|
2464
|
-
</li>
|
|
2465
|
-
<li><tt>assert_not_selected_options(locator, pattern)</tt>
|
|
2466
|
-
|
|
2467
|
-
</li>
|
|
2468
|
-
<li><tt>verify_selected_options_present(locator, pattern)</tt>
|
|
2469
|
-
|
|
2470
|
-
</li>
|
|
2471
|
-
<li><tt>verify_not_selected_options(locator, pattern)</tt>
|
|
2472
|
-
|
|
2473
|
-
</li>
|
|
2474
|
-
<li><tt>wait_for_selected_options(locator, pattern)</tt>
|
|
2475
|
-
|
|
2476
|
-
</li>
|
|
2477
|
-
<li><tt>wait_for_not_selected_options(locator, pattern)</tt>
|
|
2478
|
-
|
|
2479
|
-
</li>
|
|
2480
|
-
</ul>
|
|
2481
|
-
<p><a class="source-toggle" href="#"
|
|
2482
|
-
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
|
2483
|
-
<div class="method-source-code" id="M000120-source">
|
|
2484
|
-
<pre>
|
|
2485
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 546</span>
|
|
2486
|
-
546: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_options</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2487
|
-
547: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedOptions'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2488
|
-
548: <span class="ruby-keyword kw">end</span>
|
|
2489
|
-
</pre>
|
|
2490
|
-
</div>
|
|
2491
|
-
</div>
|
|
2492
|
-
</div>
|
|
2493
|
-
|
|
2494
|
-
<div id="method-M000117" class="method-detail">
|
|
2495
|
-
<a name="M000117"></a>
|
|
2496
|
-
|
|
2497
|
-
<div class="method-heading">
|
|
2498
|
-
<a href="#M000117" class="method-signature">
|
|
2499
|
-
<span class="method-name">store_selected_value</span><span class="method-args">(select_locator, variable_name)</span>
|
|
2500
|
-
</a>
|
|
2501
|
-
</div>
|
|
2502
|
-
|
|
2503
|
-
<div class="method-description">
|
|
2504
|
-
<p>
|
|
2505
|
-
Gets option value (value attribute) for selected option in the specified
|
|
2506
|
-
select element.
|
|
2507
|
-
</p>
|
|
2508
|
-
<p>
|
|
2509
|
-
Related Assertions, automatically generated:
|
|
2510
|
-
</p>
|
|
2511
|
-
<ul>
|
|
2512
|
-
<li><tt>assert_selected_value(select_locator, pattern)</tt>
|
|
2513
|
-
|
|
2514
|
-
</li>
|
|
2515
|
-
<li><tt>assert_not_selected_value(select_locator, pattern)</tt>
|
|
2516
|
-
|
|
2517
|
-
</li>
|
|
2518
|
-
<li><tt>verify_selected_value(select_locator, pattern)</tt>
|
|
2519
|
-
|
|
2520
|
-
</li>
|
|
2521
|
-
<li><tt>verify_not_selected_value(select_locator, pattern)</tt>
|
|
2522
|
-
|
|
2523
|
-
</li>
|
|
2524
|
-
<li><tt>wait_for_selected_value(select_locator, pattern)</tt>
|
|
2525
|
-
|
|
2526
|
-
</li>
|
|
2527
|
-
<li><tt>wait_for_not_selected_value(select_locator, pattern)</tt>
|
|
2528
|
-
|
|
2529
|
-
</li>
|
|
2530
|
-
</ul>
|
|
2531
|
-
<p><a class="source-toggle" href="#"
|
|
2532
|
-
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
|
2533
|
-
<div class="method-source-code" id="M000117-source">
|
|
2534
|
-
<pre>
|
|
2535
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 500</span>
|
|
2536
|
-
500: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_value</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2537
|
-
501: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedValue'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2538
|
-
502: <span class="ruby-keyword kw">end</span>
|
|
2539
|
-
</pre>
|
|
2540
|
-
</div>
|
|
2541
|
-
</div>
|
|
2542
|
-
</div>
|
|
2543
|
-
|
|
2544
|
-
<div id="method-M000118" class="method-detail">
|
|
2545
|
-
<a name="M000118"></a>
|
|
2546
|
-
|
|
2547
|
-
<div class="method-heading">
|
|
2548
|
-
<a href="#M000118" class="method-signature">
|
|
2549
|
-
<span class="method-name">store_selected_values</span><span class="method-args">(select_locator, variable_name)</span>
|
|
2550
|
-
</a>
|
|
2551
|
-
</div>
|
|
2552
|
-
|
|
2553
|
-
<div class="method-description">
|
|
2554
|
-
<p>
|
|
2555
|
-
Gets all option values (value attribute) for selected options in the
|
|
2556
|
-
specified select or multi-select element.
|
|
2557
|
-
</p>
|
|
2558
|
-
<p>
|
|
2559
|
-
Related Assertions, automatically generated:
|
|
2560
|
-
</p>
|
|
2561
|
-
<ul>
|
|
2562
|
-
<li><tt>assert_selected_values(select_locator, pattern)</tt>
|
|
2563
|
-
|
|
2564
|
-
</li>
|
|
2565
|
-
<li><tt>assert_not_selected_values(select_locator, pattern)</tt>
|
|
2566
|
-
|
|
2567
|
-
</li>
|
|
2568
|
-
<li><tt>verify_selected_values(select_locator, pattern)</tt>
|
|
2569
|
-
|
|
2570
|
-
</li>
|
|
2571
|
-
<li><tt>verify_not_selected_values(select_locator, pattern)</tt>
|
|
2572
|
-
|
|
2573
|
-
</li>
|
|
2574
|
-
<li><tt>wait_for_selected_values(select_locator, pattern)</tt>
|
|
2575
|
-
|
|
2576
|
-
</li>
|
|
2577
|
-
<li><tt>wait_for_not_selected_values(select_locator, pattern)</tt>
|
|
2578
|
-
|
|
2579
|
-
</li>
|
|
2580
|
-
</ul>
|
|
2581
|
-
<p><a class="source-toggle" href="#"
|
|
2582
|
-
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
|
2583
|
-
<div class="method-source-code" id="M000118-source">
|
|
2584
|
-
<pre>
|
|
2585
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 514</span>
|
|
2586
|
-
514: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_selected_values</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2587
|
-
515: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSelectedValues'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2588
|
-
516: <span class="ruby-keyword kw">end</span>
|
|
2589
|
-
</pre>
|
|
2590
|
-
</div>
|
|
2591
|
-
</div>
|
|
2592
|
-
</div>
|
|
2593
|
-
|
|
2594
|
-
<div id="method-M000119" class="method-detail">
|
|
2595
|
-
<a name="M000119"></a>
|
|
2596
|
-
|
|
2597
|
-
<div class="method-heading">
|
|
2598
|
-
<a href="#M000119" class="method-signature">
|
|
2599
|
-
<span class="method-name">store_something_selected</span><span class="method-args">(select_locator, variable_name)</span>
|
|
2600
|
-
</a>
|
|
2601
|
-
</div>
|
|
2602
|
-
|
|
2603
|
-
<div class="method-description">
|
|
2604
|
-
<p>
|
|
2605
|
-
Determines whether some option in a drop-down menu is selected.
|
|
2606
|
-
</p>
|
|
2607
|
-
<p>
|
|
2608
|
-
Related Assertions, automatically generated:
|
|
2609
|
-
</p>
|
|
2610
|
-
<ul>
|
|
2611
|
-
<li><tt>assert_something_selected(select_locator)</tt>
|
|
2612
|
-
|
|
2613
|
-
</li>
|
|
2614
|
-
<li><tt>assert_not_something_selected(select_locator)</tt>
|
|
2615
|
-
|
|
2616
|
-
</li>
|
|
2617
|
-
<li><tt>verify_something_selected(select_locator)</tt>
|
|
2618
|
-
|
|
2619
|
-
</li>
|
|
2620
|
-
<li><tt>verify_not_something_selected(select_locator)</tt>
|
|
2621
|
-
|
|
2622
|
-
</li>
|
|
2623
|
-
<li><tt>wait_for_something_selected(select_locator)</tt>
|
|
2624
|
-
|
|
2625
|
-
</li>
|
|
2626
|
-
<li><tt>wait_for_not_something_selected(select_locator)</tt>
|
|
2627
|
-
|
|
2628
|
-
</li>
|
|
2629
|
-
</ul>
|
|
2630
|
-
<p><a class="source-toggle" href="#"
|
|
2631
|
-
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
|
2632
|
-
<div class="method-source-code" id="M000119-source">
|
|
2633
|
-
<pre>
|
|
2634
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 527</span>
|
|
2635
|
-
527: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_something_selected</span> <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2636
|
-
528: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeSomethingSelected'</span>, <span class="ruby-identifier">select_locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2637
|
-
529: <span class="ruby-keyword kw">end</span>
|
|
2638
|
-
</pre>
|
|
2639
|
-
</div>
|
|
2640
|
-
</div>
|
|
2641
|
-
</div>
|
|
2642
|
-
|
|
2643
|
-
<div id="method-M000109" class="method-detail">
|
|
2644
|
-
<a name="M000109"></a>
|
|
2645
|
-
|
|
2646
|
-
<div class="method-heading">
|
|
2647
|
-
<a href="#M000109" class="method-signature">
|
|
2648
|
-
<span class="method-name">store_table</span><span class="method-args">(locator, row, column, variable_name)</span>
|
|
2649
|
-
</a>
|
|
2650
|
-
</div>
|
|
2651
|
-
|
|
2652
|
-
<div class="method-description">
|
|
2653
|
-
<p>
|
|
2654
|
-
Gets the text from a cell of a table.
|
|
2655
|
-
</p>
|
|
2656
|
-
<p>
|
|
2657
|
-
Related Assertions, automatically generated:
|
|
2658
|
-
</p>
|
|
2659
|
-
<ul>
|
|
2660
|
-
<li><tt>assert_table(locator, row, column, pattern)</tt>
|
|
2661
|
-
|
|
2662
|
-
</li>
|
|
2663
|
-
<li><tt>assert_not_table(locator, row, column, pattern)</tt>
|
|
2664
|
-
|
|
2665
|
-
</li>
|
|
2666
|
-
<li><tt>verify_table_present(locator, row, column, pattern)</tt>
|
|
2667
|
-
|
|
2668
|
-
</li>
|
|
2669
|
-
<li><tt>verify_not_table(locator, row, column, pattern)</tt>
|
|
2670
|
-
|
|
2671
|
-
</li>
|
|
2672
|
-
<li><tt>wait_for_table(locator, row, column, pattern)</tt>
|
|
2673
|
-
|
|
2674
|
-
</li>
|
|
2675
|
-
<li><tt>wait_for_not_table(locator, row, column, pattern)</tt>
|
|
2676
|
-
|
|
2677
|
-
</li>
|
|
2678
|
-
</ul>
|
|
2679
|
-
<p><a class="source-toggle" href="#"
|
|
2680
|
-
onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
|
|
2681
|
-
<div class="method-source-code" id="M000109-source">
|
|
2682
|
-
<pre>
|
|
2683
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 383</span>
|
|
2684
|
-
383: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_table</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">row</span>, <span class="ruby-identifier">column</span>, <span class="ruby-identifier">variable_name</span>
|
|
2685
|
-
384: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeTable'</span>, <span class="ruby-node">"#{locator}.#{row}.#{column}"</span>, <span class="ruby-identifier">variable_name</span>
|
|
2686
|
-
385: <span class="ruby-keyword kw">end</span>
|
|
2687
|
-
</pre>
|
|
2688
|
-
</div>
|
|
2689
|
-
</div>
|
|
2690
|
-
</div>
|
|
2691
|
-
|
|
2692
|
-
<div id="method-M000106" class="method-detail">
|
|
2693
|
-
<a name="M000106"></a>
|
|
2694
|
-
|
|
2695
|
-
<div class="method-heading">
|
|
2696
|
-
<a href="#M000106" class="method-signature">
|
|
2697
|
-
<span class="method-name">store_text</span><span class="method-args">(locator, variable_name)</span>
|
|
2698
|
-
</a>
|
|
2699
|
-
</div>
|
|
2700
|
-
|
|
2701
|
-
<div class="method-description">
|
|
2702
|
-
<p>
|
|
2703
|
-
Gets the text of an element. This works for any element that contains text.
|
|
2704
|
-
This command uses either the <tt>textContent</tt> (Mozilla-like browsers)
|
|
2705
|
-
or the <tt>innerText</tt> (IE-like browsers) of the element, which is the
|
|
2706
|
-
rendered text shown to the user.
|
|
2707
|
-
</p>
|
|
2708
|
-
<p>
|
|
2709
|
-
Related Assertions, automatically generated:
|
|
2710
|
-
</p>
|
|
2711
|
-
<ul>
|
|
2712
|
-
<li><tt>assert_text(locator, pattern)</tt>
|
|
2713
|
-
|
|
2714
|
-
</li>
|
|
2715
|
-
<li><tt>assert_not_text(locator, pattern)</tt>
|
|
2716
|
-
|
|
2717
|
-
</li>
|
|
2718
|
-
<li><tt>verify_text_present(locator, pattern)</tt>
|
|
2719
|
-
|
|
2720
|
-
</li>
|
|
2721
|
-
<li><tt>verify_not_text(locator, pattern)</tt>
|
|
2722
|
-
|
|
2723
|
-
</li>
|
|
2724
|
-
<li><tt>wait_for_text(locator, pattern)</tt>
|
|
2725
|
-
|
|
2726
|
-
</li>
|
|
2727
|
-
<li><tt>wait_for_not_text(locator, pattern)</tt>
|
|
2728
|
-
|
|
2729
|
-
</li>
|
|
2730
|
-
</ul>
|
|
2731
|
-
<p><a class="source-toggle" href="#"
|
|
2732
|
-
onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
|
|
2733
|
-
<div class="method-source-code" id="M000106-source">
|
|
2734
|
-
<pre>
|
|
2735
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 331</span>
|
|
2736
|
-
331: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_text</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2737
|
-
332: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeText'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2738
|
-
333: <span class="ruby-keyword kw">end</span>
|
|
2739
|
-
</pre>
|
|
2740
|
-
</div>
|
|
2741
|
-
</div>
|
|
2742
|
-
</div>
|
|
2743
|
-
|
|
2744
|
-
<div id="method-M000124" class="method-detail">
|
|
2745
|
-
<a name="M000124"></a>
|
|
2746
|
-
|
|
2747
|
-
<div class="method-heading">
|
|
2748
|
-
<a href="#M000124" class="method-signature">
|
|
2749
|
-
<span class="method-name">store_text_present</span><span class="method-args">(pattern, variable_name)</span>
|
|
2750
|
-
</a>
|
|
2751
|
-
</div>
|
|
2752
|
-
|
|
2753
|
-
<div class="method-description">
|
|
2754
|
-
<p>
|
|
2755
|
-
Verifies that the specified text pattern appears somewhere on the rendered
|
|
2756
|
-
page shown to the user.
|
|
2757
|
-
</p>
|
|
2758
|
-
<p>
|
|
2759
|
-
Related Assertions, automatically generated:
|
|
2760
|
-
</p>
|
|
2761
|
-
<ul>
|
|
2762
|
-
<li><tt>assert_text_present(pattern)</tt>
|
|
2763
|
-
|
|
2764
|
-
</li>
|
|
2765
|
-
<li><tt>assert_text_not_present(pattern)</tt>
|
|
2766
|
-
|
|
2767
|
-
</li>
|
|
2768
|
-
<li><tt>verify_text_present(pattern)</tt>
|
|
2769
|
-
|
|
2770
|
-
</li>
|
|
2771
|
-
<li><tt>verify_text_not_present(pattern)</tt>
|
|
2772
|
-
|
|
2773
|
-
</li>
|
|
2774
|
-
<li><tt>wait_for_text_present(pattern)</tt>
|
|
2775
|
-
|
|
2776
|
-
</li>
|
|
2777
|
-
<li><tt>wait_for_text_not_present(pattern)</tt>
|
|
2778
|
-
|
|
2779
|
-
</li>
|
|
2780
|
-
</ul>
|
|
2781
|
-
<p><a class="source-toggle" href="#"
|
|
2782
|
-
onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
|
|
2783
|
-
<div class="method-source-code" id="M000124-source">
|
|
2784
|
-
<pre>
|
|
2785
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 607</span>
|
|
2786
|
-
607: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_text_present</span> <span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">variable_name</span>
|
|
2787
|
-
608: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeTextPresent'</span>, <span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">variable_name</span>
|
|
2788
|
-
609: <span class="ruby-keyword kw">end</span>
|
|
2789
|
-
</pre>
|
|
2790
|
-
</div>
|
|
2791
|
-
</div>
|
|
2792
|
-
</div>
|
|
2793
|
-
|
|
2794
|
-
<div id="method-M000103" class="method-detail">
|
|
2795
|
-
<a name="M000103"></a>
|
|
2796
|
-
|
|
2797
|
-
<div class="method-heading">
|
|
2798
|
-
<a href="#M000103" class="method-signature">
|
|
2799
|
-
<span class="method-name">store_title</span><span class="method-args">(variable_name)</span>
|
|
2800
|
-
</a>
|
|
2801
|
-
</div>
|
|
2802
|
-
|
|
2803
|
-
<div class="method-description">
|
|
2804
|
-
<p>
|
|
2805
|
-
Gets the title of the current page.
|
|
2806
|
-
</p>
|
|
2807
|
-
<p>
|
|
2808
|
-
Related Assertions, automatically generated:
|
|
2809
|
-
</p>
|
|
2810
|
-
<ul>
|
|
2811
|
-
<li><tt>assert_title(pattern)</tt>
|
|
2812
|
-
|
|
2813
|
-
</li>
|
|
2814
|
-
<li><tt>assert_not_title(pattern)</tt>
|
|
2815
|
-
|
|
2816
|
-
</li>
|
|
2817
|
-
<li><tt>verify_title_present(pattern)</tt>
|
|
2818
|
-
|
|
2819
|
-
</li>
|
|
2820
|
-
<li><tt>verify_not_title(pattern)</tt>
|
|
2821
|
-
|
|
2822
|
-
</li>
|
|
2823
|
-
<li><tt>wait_for_title(pattern)</tt>
|
|
2824
|
-
|
|
2825
|
-
</li>
|
|
2826
|
-
<li><tt>wait_for_not_title(pattern)</tt>
|
|
2827
|
-
|
|
2828
|
-
</li>
|
|
2829
|
-
</ul>
|
|
2830
|
-
<p><a class="source-toggle" href="#"
|
|
2831
|
-
onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
|
|
2832
|
-
<div class="method-source-code" id="M000103-source">
|
|
2833
|
-
<pre>
|
|
2834
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 287</span>
|
|
2835
|
-
287: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_title</span> <span class="ruby-identifier">variable_name</span>
|
|
2836
|
-
288: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeTitle'</span>, <span class="ruby-identifier">variable_name</span>
|
|
2837
|
-
289: <span class="ruby-keyword kw">end</span>
|
|
2838
|
-
</pre>
|
|
2839
|
-
</div>
|
|
2840
|
-
</div>
|
|
2841
|
-
</div>
|
|
2842
|
-
|
|
2843
|
-
<div id="method-M000105" class="method-detail">
|
|
2844
|
-
<a name="M000105"></a>
|
|
2845
|
-
|
|
2846
|
-
<div class="method-heading">
|
|
2847
|
-
<a href="#M000105" class="method-signature">
|
|
2848
|
-
<span class="method-name">store_value</span><span class="method-args">(locator, variable_name)</span>
|
|
2849
|
-
</a>
|
|
2850
|
-
</div>
|
|
2851
|
-
|
|
2852
|
-
<div class="method-description">
|
|
2853
|
-
<p>
|
|
2854
|
-
Gets the (whitespace-trimmed) value of an input field (or anything else
|
|
2855
|
-
with a value parameter). For checkbox/radio elements, the value will be
|
|
2856
|
-
"on" or "off" depending on whether the element is
|
|
2857
|
-
checked or not.
|
|
2858
|
-
</p>
|
|
2859
|
-
<p>
|
|
2860
|
-
Related Assertions, automatically generated:
|
|
2861
|
-
</p>
|
|
2862
|
-
<ul>
|
|
2863
|
-
<li><tt>assert_value(locator, pattern)</tt>
|
|
2864
|
-
|
|
2865
|
-
</li>
|
|
2866
|
-
<li><tt>assert_not_value(locator, pattern)</tt>
|
|
2867
|
-
|
|
2868
|
-
</li>
|
|
2869
|
-
<li><tt>verify_value_present(locator, pattern)</tt>
|
|
2870
|
-
|
|
2871
|
-
</li>
|
|
2872
|
-
<li><tt>verify_not_value(locator, pattern)</tt>
|
|
2873
|
-
|
|
2874
|
-
</li>
|
|
2875
|
-
<li><tt>wait_for_value(locator, pattern)</tt>
|
|
2876
|
-
|
|
2877
|
-
</li>
|
|
2878
|
-
<li><tt>wait_for_not_value(locator, pattern)</tt>
|
|
2879
|
-
|
|
2880
|
-
</li>
|
|
2881
|
-
</ul>
|
|
2882
|
-
<p><a class="source-toggle" href="#"
|
|
2883
|
-
onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
|
|
2884
|
-
<div class="method-source-code" id="M000105-source">
|
|
2885
|
-
<pre>
|
|
2886
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 315</span>
|
|
2887
|
-
315: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_value</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2888
|
-
316: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeValue'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2889
|
-
317: <span class="ruby-keyword kw">end</span>
|
|
2890
|
-
</pre>
|
|
2891
|
-
</div>
|
|
2892
|
-
</div>
|
|
2893
|
-
</div>
|
|
2894
|
-
|
|
2895
|
-
<div id="method-M000126" class="method-detail">
|
|
2896
|
-
<a name="M000126"></a>
|
|
2897
|
-
|
|
2898
|
-
<div class="method-heading">
|
|
2899
|
-
<a href="#M000126" class="method-signature">
|
|
2900
|
-
<span class="method-name">store_visible</span><span class="method-args">(locator, variable_name)</span>
|
|
2901
|
-
</a>
|
|
2902
|
-
</div>
|
|
2903
|
-
|
|
2904
|
-
<div class="method-description">
|
|
2905
|
-
<p>
|
|
2906
|
-
Determines if the specified element is visible. An element can be rendered
|
|
2907
|
-
invisible by setting the CSS "visibility" property to
|
|
2908
|
-
"hidden", or the "display" property to
|
|
2909
|
-
"none", either for the element itself or one if its ancestors.
|
|
2910
|
-
This method will fail if the element is not present.
|
|
2911
|
-
</p>
|
|
2912
|
-
<p>
|
|
2913
|
-
Related Assertions, automatically generated:
|
|
2914
|
-
</p>
|
|
2915
|
-
<ul>
|
|
2916
|
-
<li><tt>assert_visible(locator)</tt>
|
|
2917
|
-
|
|
2918
|
-
</li>
|
|
2919
|
-
<li><tt>assert_not_visible(locator)</tt>
|
|
2920
|
-
|
|
2921
|
-
</li>
|
|
2922
|
-
<li><tt>verify_visible(locator)</tt>
|
|
2923
|
-
|
|
2924
|
-
</li>
|
|
2925
|
-
<li><tt>verify_not_visible(locator)</tt>
|
|
2926
|
-
|
|
2927
|
-
</li>
|
|
2928
|
-
<li><tt>wait_for_visible(locator)</tt>
|
|
2929
|
-
|
|
2930
|
-
</li>
|
|
2931
|
-
<li><tt>wait_for_not_visible(locator)</tt>
|
|
2932
|
-
|
|
2933
|
-
</li>
|
|
2934
|
-
</ul>
|
|
2935
|
-
<p><a class="source-toggle" href="#"
|
|
2936
|
-
onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
|
|
2937
|
-
<div class="method-source-code" id="M000126-source">
|
|
2938
|
-
<pre>
|
|
2939
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 636</span>
|
|
2940
|
-
636: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_visible</span> <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2941
|
-
637: <span class="ruby-identifier">command</span> <span class="ruby-value str">'storeVisible'</span>, <span class="ruby-identifier">locator</span>, <span class="ruby-identifier">variable_name</span>
|
|
2942
|
-
638: <span class="ruby-keyword kw">end</span>
|
|
2943
|
-
</pre>
|
|
2944
|
-
</div>
|
|
2945
|
-
</div>
|
|
2946
|
-
</div>
|
|
2947
|
-
|
|
2948
|
-
<div id="method-M000139" class="method-detail">
|
|
2949
|
-
<a name="M000139"></a>
|
|
2950
|
-
|
|
2951
|
-
<div class="method-heading">
|
|
2952
|
-
<a href="#M000139" class="method-signature">
|
|
2953
|
-
<span class="method-name">store_whether_this_frame_match_frame_expression</span><span class="method-args">(current_frame_string, target, variable_name)</span>
|
|
2954
|
-
</a>
|
|
2955
|
-
</div>
|
|
2956
|
-
|
|
2957
|
-
<div class="method-description">
|
|
2958
|
-
<p>
|
|
2959
|
-
Determine whether current/locator identify the frame containing this
|
|
2960
|
-
running code.
|
|
2961
|
-
</p>
|
|
2962
|
-
<p>
|
|
2963
|
-
This is useful in proxy injection mode, where this code runs in every
|
|
2964
|
-
browser frame and window, and sometimes the selenium server needs to
|
|
2965
|
-
identify the "current" frame. In this case, when the test calls
|
|
2966
|
-
select_frame, this routine is called for each frame to figure out which one
|
|
2967
|
-
has been selected. The selected frame will return true, while all others
|
|
2968
|
-
will return false.
|
|
2969
|
-
</p>
|
|
2970
|
-
<p>
|
|
2971
|
-
NOTE: <tt><a
|
|
2972
|
-
href="TestBuilderAccessors.html#M000139">store_whether_this_frame_match_frame_expression</a></tt>
|
|
2973
|
-
is currently not supported by Selenium Core.
|
|
2974
|
-
</p>
|
|
2975
|
-
<p>
|
|
2976
|
-
Related Assertions, automatically generated:
|
|
2977
|
-
</p>
|
|
2978
|
-
<ul>
|
|
2979
|
-
<li><tt>assert_whether_this_frame_match_frame_expression(current_frame_string,
|
|
2980
|
-
target)</tt>
|
|
2981
|
-
|
|
2982
|
-
</li>
|
|
2983
|
-
<li><tt>assert_not_whether_this_frame_match_frame_expression(current_frame_string,
|
|
2984
|
-
target)</tt>
|
|
2985
|
-
|
|
2986
|
-
</li>
|
|
2987
|
-
<li><tt>verify_whether_this_frame_match_frame_expression(current_frame_string,
|
|
2988
|
-
target)</tt>
|
|
2989
|
-
|
|
2990
|
-
</li>
|
|
2991
|
-
<li><tt>verify_not_whether_this_frame_match_frame_expression(current_frame_string,
|
|
2992
|
-
target)</tt>
|
|
2993
|
-
|
|
2994
|
-
</li>
|
|
2995
|
-
<li><tt>wait_for_whether_this_frame_match_frame_expression(current_frame_string,
|
|
2996
|
-
target)</tt>
|
|
2997
|
-
|
|
2998
|
-
</li>
|
|
2999
|
-
<li><tt>wait_for_not_whether_this_frame_match_frame_expression(current_frame_string,
|
|
3000
|
-
target)</tt>
|
|
3001
|
-
|
|
3002
|
-
</li>
|
|
3003
|
-
</ul>
|
|
3004
|
-
<p><a class="source-toggle" href="#"
|
|
3005
|
-
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
|
3006
|
-
<div class="method-source-code" id="M000139-source">
|
|
3007
|
-
<pre>
|
|
3008
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 846</span>
|
|
3009
|
-
846: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_whether_this_frame_match_frame_expression</span> <span class="ruby-identifier">current_frame_string</span>, <span class="ruby-identifier">target</span>, <span class="ruby-identifier">variable_name</span>
|
|
3010
|
-
847: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
3011
|
-
848: <span class="ruby-keyword kw">end</span>
|
|
3012
|
-
</pre>
|
|
3013
|
-
</div>
|
|
3014
|
-
</div>
|
|
3015
|
-
</div>
|
|
3016
|
-
|
|
3017
|
-
<div id="method-M000140" class="method-detail">
|
|
3018
|
-
<a name="M000140"></a>
|
|
3019
|
-
|
|
3020
|
-
<div class="method-heading">
|
|
3021
|
-
<a href="#M000140" class="method-signature">
|
|
3022
|
-
<span class="method-name">store_whether_this_window_match_window_expression</span><span class="method-args">(current_window_string, target, variable_name)</span>
|
|
3023
|
-
</a>
|
|
3024
|
-
</div>
|
|
3025
|
-
|
|
3026
|
-
<div class="method-description">
|
|
3027
|
-
<p>
|
|
3028
|
-
Determine whether current_window_string plus target identify the window
|
|
3029
|
-
containing this running code.
|
|
3030
|
-
</p>
|
|
3031
|
-
<p>
|
|
3032
|
-
This is useful in proxy injection mode, where this code runs in every
|
|
3033
|
-
browser frame and window, and sometimes the selenium server needs to
|
|
3034
|
-
identify the "current" window. In this case, when the test calls
|
|
3035
|
-
select_window, this routine is called for each window to figure out which
|
|
3036
|
-
one has been selected. The selected window will return true, while all
|
|
3037
|
-
others will return false.
|
|
3038
|
-
</p>
|
|
3039
|
-
<p>
|
|
3040
|
-
NOTE: <tt><a
|
|
3041
|
-
href="TestBuilderAccessors.html#M000140">store_whether_this_window_match_window_expression</a></tt>
|
|
3042
|
-
is currently not supported by Selenium Core.
|
|
3043
|
-
</p>
|
|
3044
|
-
<p>
|
|
3045
|
-
Related Assertions, automatically generated:
|
|
3046
|
-
</p>
|
|
3047
|
-
<ul>
|
|
3048
|
-
<li><tt>assert_whether_this_window_match_window_expression(current_window_string,
|
|
3049
|
-
target)</tt>
|
|
3050
|
-
|
|
3051
|
-
</li>
|
|
3052
|
-
<li><tt>assert_not_whether_this_window_match_window_expression(current_window_string,
|
|
3053
|
-
target)</tt>
|
|
3054
|
-
|
|
3055
|
-
</li>
|
|
3056
|
-
<li><tt>verify_whether_this_window_match_window_expression(current_window_string,
|
|
3057
|
-
target)</tt>
|
|
3058
|
-
|
|
3059
|
-
</li>
|
|
3060
|
-
<li><tt>verify_not_whether_this_window_match_window_expression(current_window_string,
|
|
3061
|
-
target)</tt>
|
|
3062
|
-
|
|
3063
|
-
</li>
|
|
3064
|
-
<li><tt>wait_for_whether_this_window_match_window_expression(current_window_string,
|
|
3065
|
-
target)</tt>
|
|
3066
|
-
|
|
3067
|
-
</li>
|
|
3068
|
-
<li><tt>wait_for_not_whether_this_window_match_window_expression(current_window_string,
|
|
3069
|
-
target)</tt>
|
|
3070
|
-
|
|
3071
|
-
</li>
|
|
3072
|
-
</ul>
|
|
3073
|
-
<p><a class="source-toggle" href="#"
|
|
3074
|
-
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
|
3075
|
-
<div class="method-source-code" id="M000140-source">
|
|
3076
|
-
<pre>
|
|
3077
|
-
<span class="ruby-comment cmt"># File lib/selenium_on_rails/test_builder_accessors.rb, line 869</span>
|
|
3078
|
-
869: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_whether_this_window_match_window_expression</span> <span class="ruby-identifier">current_window_string</span>, <span class="ruby-identifier">target</span>, <span class="ruby-identifier">variable_name</span>
|
|
3079
|
-
870: <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not supported in Selenium Core at the moment'</span>
|
|
3080
|
-
871: <span class="ruby-keyword kw">end</span>
|
|
3081
|
-
</pre>
|
|
3082
|
-
</div>
|
|
3083
|
-
</div>
|
|
3084
|
-
</div>
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
</div>
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
</div>
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
<div id="validator-badges">
|
|
3094
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
3095
|
-
</div>
|
|
3096
|
-
|
|
3097
|
-
</body>
|
|
3098
|
-
</html>
|