[wtr-general] Re: get text from page (regex) & assign to variable

2008-12-01 Thread Bret Pettichord
The thing to remember is that "puts" does an implicit "to_s" (or "inspect", i can't remember exactly) on its argument. Bret Sameh Abdelhamid wrote: > Very nice. Thanks Wes. > I couldnt find this anywhere! > Cheers. > > > On Wed, Nov 26, 2008 at 3:38 PM, wesley chen <[EMAIL PROTECTED] >

[wtr-general] Re: get text from page (regex) & assign to variable

2008-11-25 Thread Sameh Abdelhamid
Very nice. Thanks Wes. I couldnt find this anywhere! Cheers. On Wed, Nov 26, 2008 at 3:38 PM, wesley chen <[EMAIL PROTECTED]> wrote: > You have to: workspace.text_field(:id,"NUM_prcsdProductId").set(* > pproduct_no.to_s*) > Because the pproduct you created is just a matchdata, not a string, you

[wtr-general] Re: get text from page (regex) & assign to variable

2008-11-25 Thread wesley chen
You have to: workspace.text_field(:id,"NUM_prcsdProductId").set(* pproduct_no.to_s*) Because the pproduct you created is just a matchdata, not a string, you have to change the format manual. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message becau