Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开始使用watir。我需要创建一个测试脚本来登录应用程序。
下面的代码是页面中的脚本。
我看到了一些带有按钮和链接的示例,但我不知道如何“提交”(“onclick=SubmitForm() type=button value="Sign In") 信息。
如果您发布表单的 html,我可以告诉您更多信息。
我想这应该可行:
browser.button(:value => "Sign In").click
Watir 教程中有Buttons页面。