watir form内元素交互方式

watir form内元素交互方式

 

1.form提交按钮进行提交

<form> <input type="submit" id="subId" value="Submit" /> </form> 
ie.button(:id, "subId").click 
  
2.form无按钮提交
 
<form id="formId" name="loginform" action="login" method="get"> <input /> </form>  
ie.form(:id, "formId").submit ie.form(:name, "loginform").submit 
 
 
ie.form(:action, "login").submit 
 
 
ie.form(:method, "get").submit 

你可能感兴趣的:(IE)