[wtr-general] Re: Handling Java Script button

2009-09-17 Thread Željko Filipin
On Wed, Sep 16, 2009 at 8:58 PM, dk  wrote:
> PS: i am new to this group - please let me know if i need to start a
> different discussion thread.

If it is a new topic, please start a new thread.

Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Handling Java Script button

2009-09-16 Thread dk

I dont think i can do without a group :)

For firefox and firewatir, the wait commands dont seem to work. I
tried "sleep" and also "wait_until" - but somehow i dont seem to be
able to command firewatir to pause or wait. There could be no
condition for wait - i could even do wait asking it to wait for
particular amount of time ( seconds, mili-seconds etc)

PS: i am new to this group - please let me know if i need to start a
different discussion thread.

Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Handling Java Script button

2009-09-16 Thread Željko Filipin
On Wed, Sep 16, 2009 at 6:19 PM, dk  wrote:
> Next time on, i'll try to be less lazy and a lil more mature member of
> the group by doing a lil bit of reading and research before asking :)

I am sure you did your best. :)

The next time you will know where to look.

Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Handling Java Script button

2009-09-16 Thread dk

Thanks a lot Karim and Zeljko !! I got my answers.

I guess im being lazy to not find answers and ask them here for a
direct solution.

Next time on, i'll try to be less lazy and a lil more mature member of
the group by doing a lil bit of reading and research before asking :)

Thanks guys !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Handling Java Script button

2009-09-16 Thread Željko Filipin
On Wed, Sep 16, 2009 at 5:18 PM, dk  wrote:
> How do i instruct Watir
> to wait for it before executing the next step?

Everything you ever wanted to know, and even more. :)

http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir

Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Handling Java Script button

2009-09-16 Thread karim rayani

Place a while loop (i would suggest not infinite) and then use
$browser.text.include? 'llama'  and code the sleep interval in the
loop along with it as well.

From

Karim Rayani

On Wed, Sep 16, 2009 at 8:18 AM, dk  wrote:
>
> Thanks a lot Zeljko ! worked just fine. Wonder why i didnt think of
> trying "link" :)
>
> One more question though:
>
> After the click, since it is not a page refresh - but an ajax call, i
> am waiting for some text to show up on page. How do i instruct Watir
> to wait for it before executing the next step?
> >
>



-- 
Regards,

Alkarim Rayani

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Handling Java Script button

2009-09-16 Thread dk

Thanks a lot Zeljko ! worked just fine. Wonder why i didnt think of
trying "link" :)

One more question though:

After the click, since it is not a page refresh - but an ajax call, i
am waiting for some text to show up on page. How do i instruct Watir
to wait for it before executing the next step?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Handling Java Script button

2009-09-15 Thread Željko Filipin
On Tue, Sep 15, 2009 at 8:27 PM, dk  wrote:
> Find

It may look like a button, but it is a link.

This might work:

browser.link(:text, "Find").click

or

browser.link(:text, /Find/).click

http://wiki.openqa.org/display/WTR/Links


Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---