开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜