Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: how to click the Buttons in Forms
Ban Hoang
9/11/2006 10:30:00 PM
Thanks Patrick! It works!
-----Original Message-----
From: list-bounce@example.com [mailto:list-bounce@example.com] On Behalf
Of Patrick Spence
Sent: Monday, September 11, 2006 12:36 PM
To: ruby-talk ML
Subject: Re: how to click the Buttons in Forms
Ban Hoang wrote:
> Hi ,
> $ie.frame("bottom").button(:value, ":: Login >").click
> HTMl source: ( this is frame_bottom)
>
> <form name=form_login method=POST action=index.php target=_top>
>
> <tr>
>
> <td align=left><input name=email type=text value=""
> class=field size=15 maxlength=50></td>
>
> <td align=left><font face=verdana size=1> </font><input
> name=password type=password value="" class=field size=15
> maxlength=50></td>
>
> <td align=left><font face=verdana size=1> </font><input
> type=submit value=":: Login >" class=button></td>
>
> </tr>
>
> </form>
>
> 1) Error:
>
> test_01_LoginTestCase(TC_pulldownBox_Links_Clicks):
>
> Watir::Exception::UnknownObjectException: Unable to locate object,
using
> value and :: 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:25:in `test_01_LoginTestCase'
>
Just for S&G, try...
$ie.frame("bottom").button(:value, /Login/).click
Better yet, just call the .submit() method of the form itself.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: how to click the Buttons in Forms
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password