There are many ways of making a link 'appear'
Does it get added by ajax?
Is it in a hidden div ?
Does it get created by javascript?

depending upon how it gets created you may have to do a different approach.

Does the value you enter matter, or is it length of string?

the following MAY be waht you need

until ( $ie.link(:id , 'some_link_id').exists?
  $ie.text_field(:name,"text1").set("google")
  $ie.button(:name,"button1").click

end


THis will be an endless loop, so maybe

x=1
until ( $ie.link(:id , 'some_link_id').exists?
  $ie.text_field(:name,"text1").set("google")
  $ie.button(:name,"button1").click
  break if x > 100
  x+=1
end


is more like it.
But if its in a hidden div, it probably already exists, but is just not visible


Paul




 -- sorry if the text below is duplicated ( my mail sender doent always show 
stuff )
---
In a web page after entering a specific value in a text field, some links 
appears. So i wanted to keep entering a value in a text field unless the links 
appears on a page. So how do i check the appearance of a link after specific 
value entered in a text field.
I have used following code do this, but unable to proceed.
begin
$ie.text_field(:name,"text1").set("google")
$ie.button(:name,"button1").click
end until (link appears)?
Hi,

In a web page after entering a specific value in a text field, some links 
appears. So i wanted to keep entering a value in a text field unless the links 
appears on a page. So how do i check the appearance of a link after specific 
value entered in a text field.
I have used following code do this, but unable to proceed. 
begin
$ie.text_field(:name,"text1").set("google")
$ie.button(:name,"button1").click
end until (link appears)?

Thanks,


                                
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to