#126 ✓duplicate
Amos King

Cannot fill in a form text field in selenium mode

Reported by Amos King | January 14th, 2009 @ 11:34 AM | in 0.5


test "should submit forms" do
    visit root_path
    fill_in "Text field", :with => "Hello"
    check "TOS"
    select "January"
    click_button "Test"
  end

test_should_submit_forms(WebratTest):
Selenium::CommandError: OR: Selenium failure. Please report to the Selenium Users forum at http://forums.openqa.org, with error details from the log window.  The error message is: element.getAttribute is not a function
    /Library/Ruby/Gems/1.8/gems/selenium-client-1.2.9/lib/selenium/client/protocol.rb:13:in `remote_control_command'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:56:in `timeout'
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:76:in `timeout'
    /Library/Ruby/Gems/1.8/gems/selenium-client-
1.2.9/lib/selenium/client/protocol.rb:11:in `remote_control_command'
    /Library/Ruby/Gems/1.8/gems/selenium-client-1.2.9/lib/selenium/client/generated_driver.rb:419:in `type'
    /Users/amos/workspace/opensource/webrat/lib/webrat/selenium/selenium_session.rb:43:in `fill_in'
    (eval):2:in `fill_in'
    ./test/selenium/webrat_test.rb:11:in `test_should_submit_forms'
    /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:94:in `__send__'
    /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:94:in `run'
    /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/integration.rb:597:in `run'

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages