Re: [Wtr-general] Watir with Ajax

2007-02-28 Thread Paul Rogers
div(:id , 'from_ajax').wait_until_exists_with_timeout( 5 ) but I cant see it now... Paul - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, February 28, 2007 5:53 PM Subject: Re: [Wtr-general] Watir with Ajax > Parv , > > Making the process

Re: [Wtr-general] Watir with Ajax

2007-02-28 Thread [EMAIL PROTECTED]
Parv , Making the process sleep for one second to wait for dynamically generated controls does not sound like a reliable process to me. I thought Watir was handling AJAX stuff. Thanks to all the Watir guys to let us know what is in Watir specially developed for AJAX and HTML. F! Parv wrote:

Re: [Wtr-general] Watir with Ajax

2007-02-28 Thread Parv
I ran into this issue a while back. Since, then whenever i deal with controls that are generated dynamically i make the process sleep for one second before interacting with the control. You have to manually synchronize your script. It has always worked for me. Copying and pasting the html

Re: [Wtr-general] Watir with Ajax

2007-02-08 Thread Naga Harish Kanegolla
Hi all, Thanks a lot, It worked for me, I just gave "sleep(2)" so that watir wait for some time and i am able to work with that. Thanks a lot, Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6378&m

Re: [Wtr-general] Watir with Ajax

2007-02-02 Thread Paul Rogers
- From: Paul Rogers To: wtr-general@rubyforge.org Sent: Friday, February 02, 2007 8:41 AM Subject: Re: [Wtr-general] Watir with Ajax IE7 introduced some new properties to show when ajax requests were completed. I can take a look and see how useful those wuld be. would something

Re: [Wtr-general] Watir with Ajax

2007-02-02 Thread Paul Rogers
7 11:52 PM Subject: Re: [Wtr-general] Watir with Ajax You can wait in a loop till the select box is loaded or use some kind of indicators like in gamil the top right corner of window reads "Loading..." when the mails are being loaded. In your case you can wait for the control its

Re: [Wtr-general] Watir with Ajax

2007-02-01 Thread Prema Arya
You can wait in a loop till the select box is loaded or use some kind of indicators like in gamil the top right corner of window reads "Loading..." when the mails are being loaded. In your case you can wait for the control itself #while the control exists is false sleep while(!ie.select_lis

Re: [Wtr-general] Watir with Ajax

2007-02-01 Thread Naga Harish Kanegolla
I can't send a link to my application as it is in my local host. I am sorry for this. The "select" option will be generating after i click on the link. Its ajax stuff. So that select can't be shown in the html. It is generating after the whole page is loaded. So wat should be done for such typ

Re: [Wtr-general] Watir with Ajax

2007-02-01 Thread Željko Filipin
Can you post your html or send a link to your application? -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Watir with Ajax

2007-01-31 Thread Naga Harish Kanegolla
Hi all, we are having a lot of Ajax stuffs in our application. I need help for Ajax stuffs to be automated with watir. This is how my application looks. I have a search criteria with a link called "search a term". If i click on that link an Ajax select will be opened.I need to select a term usi

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Xavier Noria
On Jan 19, 2007, at 1:25 PM, Naga Harish Kanegolla wrote: > HI, > But its not working for me. Basically its working for all the > text_fields. But not working for this, I hope its becoz the form is > rendering dynamically thru ajax call. You seem to be using Rails. Do you mean the form is c

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Paul Carvalho
Are these links and fields within frames? Do you know if the frame has completely finished loading after the "click" and before the text_field is set? What version of Watir are you using? On 19/01/07, Naga Harish Kanegolla <[EMAIL PROTECTED]> wrote: HI, But its not working for me. Basicall

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Naga Harish Kanegolla
HI, But its not working for me. Basically its working for all the text_fields. But not working for this, I hope its becoz the form is rendering dynamically thru ajax call. This is the error.. Error:: c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1939:in `assert_exists': Unable to locate object, usin

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Željko Filipin
On 1/19/07, Naga Harish Kanegolla <[EMAIL PROTECTED]> wrote: Your code ie.text_field(:name, "contract_my_document[title]").set("harish") works for me for this html. Maybe it's parent tag is hidden or something. Post some more html that surrounds it and your exact error message, and somebod

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Naga Harish Kanegolla
Sorry I gave the wrong html in the forum. This is my correct one. Please check this, Thank u.. Harish - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170&messageID=17356#17356 ___

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Željko Filipin
On 1/19/07, Naga Harish Kanegolla <[EMAIL PROTECTED]> wrote: Both of this worked for me. ie.text_field(:name, "app_feedback[title]").set("harish") ie.text_field(:id, "app_feedback_title").set("harish") You said to watir that name is contract_my_document[title], but it is app_feedback[title

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Naga Harish Kanegolla
Hi This is the html for that text field.. Please tell me the wrong one i am doing.. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170&messageID=17351#17351 ___

Re: [Wtr-general] Watir with Ajax

2007-01-18 Thread Bret Pettichord
Naga Harish Kanegolla wrote: > ie.text_field(:name, "contract_my_document[title]").set("harish") > > where add to my contracts is the link, in which if we click on that link i'll > be getting an ajax form. In that "Title" is the text_field. the name of that > title is contract_my_document[title

Re: [Wtr-general] Watir with Ajax

2007-01-18 Thread Naga Harish Kanegolla
HI, I used this code :: ie.link(:text,"add to my contracts").click ie.text_field(:name, "contract_my_document[title]").set("harish") where add to my contracts is the link, in which if we click on that link i'll be getting an ajax form. In that "Title" is the text_field. the name of that title

Re: [Wtr-general] Watir with Ajax

2007-01-18 Thread John Lolis
It may help if you include a snip of your code and html. I haven't had any problems using any 'ajax' items. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6170&messageID=17315#17315

[Wtr-general] Watir with Ajax

2007-01-18 Thread Naga Harish Kanegolla
Hi all, I am using watir for my application. Its very interesting.. I am using lot of ajax for my application. When i click a link an ajax form opens, till here i am able to work with watir, but i can't enter value in the ajax form. Its giving me the error Unable to locate the object. But ia