我试图使用机械点击似乎是一个按钮,然而,当我看到CSS,它似乎是一个表单字段。
<input type="submit" name="tbe_cws_submit" value="Search" style="
padding:2px;
color:#FFFFFF;
border-left: 2px solid #11A9F7;
border-bottom:1px solid #333333;
border-right:1px solid #333333;
border-top:2px solid #11A9F7;
font-size: 10px;
font-weight: bold;
font-family:Verdana;" tabindex="13">当从irb查看页面时,使用机械,这里是我看到的。
:028 > page.forms[0].fields[4]
=> [text:0xddbe6c type: text name: ctl00$quickSearch$txtQuickSearch value: Search] 发布于 2013-11-06 04:14:54
试着提交附件表单,点击提交按钮就可以了。
page.forms[0].submit
https://stackoverflow.com/questions/19801521
复制相似问题