So even trying the google search example failed for you?
 
Reference: http://wiki.openqa.org/display/WTR/Forms
Sometimes you may need to invoke at the form level as:
ie.form(:id, "one").submit
Other times developers make such hopeless code you have to dig into their 
mess and wonder why.
 

On Monday, July 16, 2012 4:28:11 PM UTC-5, CJ wrote:

> I have a form with the name of "login".  Here's the code for my input 
> button:  
> <input type="submit" name="submit1" value="Submit" />
>
> Here's what I'm using in Watir:
> b.button(:name, "submit1").click # "Submit" is the text on the Submit 
> button
>
> It fills out the username and password, and then completely blows this 
> item off. It doesn't even give me an error message. It just comes back and 
> shows me my own fail message. It stays on the form page as well.
>
> I also tried the Example code for submitting a search to Google. I 
> actually exactly COPIED the text from that example, and it still doesn't 
> work. In that case, it says it can't even find the element.
>
> What other information can I give to assist in helping me sort this out? 
> I've been looking around the forums, and have tried a few things, including 
> using the form name and submit. Everything I'm trying is failing. I'm 
> sure hoping someone can help. I've now spent several hours on this, making 
> it almost as expensive as if I'd just tested the forms by hand. :(
>
> CJ
>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to