When something works if you enter the commands manually, but fails
when run from script, the most often issue is one of timing, and
allowing for client side javascript or other rendering details to be
processed.  Usually all that means is you just need a little time
added between the last working command and the one that's not
functioning as you expect.

Another thing to do is look very closely at the UI at that point and
see if there is some kind of 'warning' text (for a missing required
field for example) being displayed, if you know you just filled in
that field, but you are seeing the warning, it's another likely
indication that the browser is too slow (has too much client side code
to process) to keep up with the pace with which the script is firing
in the commands.

Try adding a small sleep to the script to allow for time after the
second calendar click for the site to 'enable' the button.  I'd start
out with several seconds just to be sure, and if that works adjust the
value down until it works reliably without being too slow.



On Aug 11, 6:01 am, madhu kumar <madhu....@gmail.com> wrote:
> Hi Zeljko,
>
> If i type this command directly in command prompt its working fine, But if
> save this command in note pad and if i execute by load "filename.rb". its
> not clicking the button.
>
> Regards,
> Madhu
>
> On Wed, Aug 11, 2010 at 5:19 PM, Željko Filipin <
>
>
>
> zeljko.fili...@wa-research.ch> wrote:
> > On Wed, Aug 11, 2010 at 1:30 PM, madhu kumar <madhu....@gmail.com> wrote:
> > > that command working fine.
>
> > What did it return?
>
> > Željko
>
> > --
> > Before posting, please readhttp://watir.com/support. In short: search
> > before you ask, be nice.
>
> > You received this message because you are subscribed to
> >http://groups.google.com/group/watir-general
> > To post: watir-general@googlegroups.com
> > To unsubscribe: 
> > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@goog 
> > legroups.com>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to