【发布时间】:2015-08-29 04:20:53
【问题描述】:
我对 Web 自动化和 watir-webdriver 非常陌生。我正在尝试一个脚本来启动一个网络并提交登录表单。我能够使用“id”标签识别用户名和密码文本字段。但是登录按钮没有任何 id、name、text 和 value 键。我试过寻找所有的来源,他们都至少有任何一个键来搜索按钮。但由于我在我的网络应用程序中没有看到,有人可以帮助我如何搜索按钮并单击它。
这是标识按钮的页面中的 HTML 的一部分
<jl-button-bar class="margin-bottom centered ng-scope">
<button class="primary full jl-button ng-scope" type="submit" tabindex="0">
<ng-transclude>
<span class="ng-scope">Login</span>
</ng-transclude>
</button>
</jl-button-bar>
【问题讨论】:
标签: ruby watir-webdriver