# Re: how to click the Buttons in Forms

**URL:** <https://www.ruby-forum.com/t/re-how-to-click-the-buttons-in-forms/68344>\
**Category:** Ruby\
**Created:** [September 11, 2006, 10:55pm UTC](https://www.ruby-forum.com/t/re-how-to-click-the-buttons-in-forms/68344 "2006-09-11T22:55:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ban\_Hoang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@Ban\_Hoang](https://www.ruby-forum.com/u/Ban_Hoang)\
**Post date:** [September 11, 2006, 10:55pm UTC](https://www.ruby-forum.com/t/re-how-to-click-the-buttons-in-forms/68344/1 "2006-09-11T22:55:11Z")

</div>

## I still get an error if I use: $ie.frame(“bottom”).button(:value, /Login/).click

1. Error:  
test\_01\_LoginTestCase(TC\_pulldownBox\_Links\_Clicks):  
Watir::Exception::UnknownObjectException: Unable to locate object, using  
value and (?-mix:Login)  
c:/ruby/lib/ruby/site\_ruby/1.8/watir.rb:1928:in `assert_exists' c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2009:in`click’  
Login\_test1.rb:24:in `test\_01\_LoginTestCase’

1 tests, 0 assertions, 0 failures, 1 errors

> Exit code: 1

* * *

Try to use the .submit method:

```
 $ie.frame("bottom").button(:name, /Login/).submit

```

And got the error

1. Error:  
test\_01\_LoginTestCase(TC\_pulldownBox\_Links\_Clicks):  
NoMethodError: undefined method `submit' for #<Watir::Button:0x2cbdd54> Login_test1.rb:24:in`test\_01\_LoginTestCase’
