| || |
Text Field entry issues and Select lists problems
I've just started working with Watir for web automation and I've run into a few issues I was curious if anyone could help with.
1.) I have a ruby script that enters data into a 'Contact Us' form which works exception occasionally a random field's data isn't fully entered. So when it attempts to enter "email@example.com" it will be "fake@f" instead. It's never the same field, nor does issue happen all the time. Any ideas?
2.) I'm trying to select items from a list, but Watir doesn't recognize the list as an object. I think i'm declaring the wrong name/ID, but I'm not honestly sure what I should be using. The code for the list is:
<font class="small">Code:</font><hr /><pre>
<input id="contact_howdyouhear_customselect" type="hidden" name="contact_howdyouhear" value="">
<div id="contact_howdyouhear_iconselect">Choose one... (optional)</div>
<div class="selectitems" title="Search Engine">
<div class="selectitems" title="Client Referral">
<div class="selectitems" title="Press Release">
<div class="selectitems" title="Article/Publication">
<div class="selectitems" title="Other">
Any help would be appreciated.