Hi pinkoobhatia.  So to me it appears that you are missing a few things to let 
me know completely what's going on in your webpage, but let me guess about it.  
I looks like you have a flash object that contains a menu and it calls 
javascript functions?  Or do you have javascript that somehow writes a link to 
your webpage?  Is your link a normal link defined by <A 
href="someAddress">...</A>?  If your link is normal and NOT contained in your 
flash object, then Watir will enable you to click on it by some code similar to 
the following:

require "watir"

include Watir

ie = IE.start("yourWebsiteURL")
ie.link(:text, "textOnYourLink").click

If your link contains no text, has no id, or name, or anything particularly 
identtifying, then I believe you can access it by its index via:

ie.link(:index, 4)

Where 4 is the number of the link on your webpage.  If however your link is 
part of your flash object, then there's currently no hope unless you use a tool 
that will click on a specific location on your screen and that location is 
always the same.  The reason there's currently no hope is that there is no tool 
in the world that will recognize objects within a flash object, like links.  
Maybe I missed something.  Is there any more explanation you can give us?  
Thanks,

Nathan - p.s. text styling must be turned of or something, because I pressed 
Enter several times and I see no white space :)
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5259&messageID=14613#14613
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to