开发者

Testing "Login" with watir

开发者 https://www.devze.com 2022-12-28 06:30 出处:网络
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'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

精彩评论

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