Testing "Login" with watir
I'm starting to use watir. I need to create a test script to login in the application.
The code bellow is the script from the page.
I saw some examples with buttons and links, but开发者_开发技巧 I don't know how to "submit"("onclick=SubmitForm() type=button value="Sign In") the information.
If you post html of the form I could tell you more.
I guess this should work:
browser.button(:value => "Sign In").click
There is Buttons page in Watir Tutorial.
精彩评论