Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Rather than trying to figure out what javascript you have to invoke, or settings you have to manipulate, I'd suggest trying to see what is needed to have that happen 'naturally' ala a human interacting with the site. Have a good look at the HTML for your input fields to see if they are wired to fire off javascript scripts when some event fires (I'd suspect 'onchange') </p> <p>Firewatir and Watir are not derived from a common code base (more like sorta merged after the fact), and it could well be that firewatir is setting off those events when the field is set, but watir is not. The other possibility is that the firewatir code could be just enough slower that as it goes to click the button, the client side code was able to alter the state of the button, while that has yet to happen on the IE side.</p> <p>What might be required is for you to fire a specific event against the input element after you have .set the value the way you want it. Again, I suspect it will be 'onchange' but cannot be sure without seeing your html.</p> <p>The other thing you may need to do is be sure the code is waiting long enough for any client side scripting to make changes, so I'd suggest perhaps trying a one second sleep prior to trying to click the button. </p> <p>Normally I troubleshoot stuff like this using an IRB session as it lets me do things like set values, fire events, at my own pace, and I can examine the state of the page after I've done each thing. For example fire an event at an element and see how the page 'responds' in turn. (which is just dammed hard to do at 'script speed'). Also if things work in IRB but not when the exact same code is executed as a script, the problem is almost always that the scripts are doing things 'too fast' and you need to insert a few delays to allow the client side code to do it's thing in between specific script steps. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload