
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
-
Bryan Helmkamp February 9th, 2009 @ 12:05 AM
- State changed from new to open
Amos -- Is this still an issue? I'm not quite sure what the issue is from the stack trace
-
Bryan Helmkamp February 9th, 2009 @ 12:19 AM
- Milestone set to 0.5
-
Amos King February 9th, 2009 @ 07:18 AM
Yes, I'm still getting the same issue. Also the test for infinite redirects in the rails Test::Unit dir kills the entire test run. So you may want to comment that out if you try to run this. You can just run rake test_unit:selenium in the test/integration/rails dir and see the failure.
-
gaffo June 5th, 2009 @ 03:14 PM
This typically happens when the page is not yet loaded and it gets to fill_in. There is some odness with selenium.
Maybe visit doesn't wait in selenium.
-
gaffo June 8th, 2009 @ 10:13 AM
- State changed from open to duplicate
I'm going to close this in favour of #226
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.
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.