Hi orde,

That was one of the first things I tried. It didn't work the first
time, but it was my mistake. It's working fine now with converting
into the string.

I've found out what's with the changing of the form's position - the
scrolbar gets activated, which is weird.

Thanks

On 22 iun., 19:52, orde <ohil...@gmail.com> wrote:
> Are you converting the amount var into a string before passing it to
> the .setmethod?
>
> orde
>
> On Jun 22, 7:45 am, JohnH <ictodo...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I'm reading an integer value from an xls. file and save it in a
> >variablecalled amount.
>
> > Afterwards, I'm trying to send thatvariablevalue into a text field
> > from a website, but I'm having some problems there.
>
> > Here is the code:
> > begin
> > sleep 1
> > counter = counter + 1
> > browser.text_field(:name, "name").set(amount)
> > rescue
> >         if counter < 10
> >         retry
> >         end
> > end
>
> > If I use a direct value (like 5) instead or the "amount"variableit
> > all works fine, but when trying in this form the form where the text
> > field starts to change its position in the page :O
>
> > I've tried as well with .value(variable) instead of .set(variable) but
> > in this case nothing happens - the value is not sent.

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to