[wtr-general] Re: Get Text

2009-07-21 Thread Željko Filipin
On Tue, Jul 21, 2009 at 10:39 AM, Dheeraj Gambhir < checktestingthi...@gmail.com> wrote: >"Your Order-No is : > And i want to pick this "random-order-no" and store it in any file. browser.div(:id, "intro").span(:index, 2).text.split(": ")[1] => "2316019" Let me know if you would like to know how

[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