[wtr-general] How to insert "Wait" in Firewatir

2009-09-17 Thread dk
Hi people ! I am working on a code with a lot of java script that make ajax calls very often. I read and tried the wait options for Watir ( sleep, wait_until etc. on http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir) but they dont seem to work with Firewatir. "sleep" has no effect while wa

[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

[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 ! --~--~

[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?

[wtr-general] Handling Java Script button

2009-09-15 Thread dk
Hi all, I am trying to click a button which makes an ajax call. However, i am not able to find the right identifier for the button. in the "ie.button" method, I tried id, name, value, caption etc mentioned in the rdoc - but i think i am missing something. Any help is appreciated. Here is the html