ruby - watir click on javascript button -
I try to upload a file to the web site, but if I try, click on the button Can not find any solution for
@@ browser.button (: name = & gt; "submit_btn"). I get this error / net /protocol.rb: 141: In 'read_nonblock': End of the file reached (EOFError) Do you have a The idea is how can I click on the button?
& lt; Center & gt; & Lt; Label = "tos" & gt; & Lt; / Label & gt; & Lt; A href = "tos.html" & gt; & Lt; / A & gt; & Lt; Input id = "tos" type = "checkbox" onclick = "if (this.checked) {this.form.submit_btn.disabled = false} else {this.form.submit_btn.disabled = true}; this.blur (); "Check =" "value =" 1 "name =" tos "& gt; & Lt; / Input & gt; & Lt; Br> & Lt; / Br & gt; & Lt; Input class = "btn" type = "submit" value = "upload!" Name = "submit_button" & gt; & Lt; / Input & gt; & Lt; / Center & gt;
Try browser.element (: name = & gt; submit_btn '). Click
Comments
Post a Comment