Is there a known reason that naming a form field "submit" would cause
the Watir form submit method to not actually submit?
Using the "click" method works (as can be seen by the query string)
but using the "submit" method doesn't appear to do anything unless I
change the name "submit" to something else (e.g. "submit1", etc.).
Perhaps it is noteworthy that the "flash" method does not appear to be
affected in a similar manner.
sample html page
###############
<html>
<head><title>Title</title></head>
<body>
<form name="formname" action="" method="GET">
<input type="text" name="flash">
<input type="text" name="submit">
<input type="submit" name="go">
</form>
</body>
</html>
###############
sample Watir code
(apologies in advance for using the generic "
example.com")
###############
require 'watir'
ie = Watir::IE.start('
http://example.com/')
ie.form(:name, 'formname').flash
ie.form(:name, 'formname').submit
###############
Using irb the submit method returns what appears to be a response time
irb(main):004:0> ie.form(:name, 'formname').submit
=> 0.203
ruby version: ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32]
Watir::IE::VERSION: 1.5.4.1263
Regards,
John