If it cant find it, it raises an ObjectNotFoundException. If there are multiple, it returns the first one. There have been suggestions we should raise an exception if there are multiple. Im not sure, as there is nothing preventing you from having the same name or id on html tags in the page.
Paul -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Wood Sent: 02 August 2005 20:58 To: [email protected] Subject: Re: [Wtr-general] I have a couple of questions... Wow, thanks for the quick response ... So, with the .link or .frame or .blah calls, what do they return if it can't find the item ? or if it finds multiple? j. On 8/2/05, Paul Rogers <[EMAIL PROTECTED]> wrote: > 1. no - you must specify the frame, like > ie.frame(:index,2).link(:id,'blah').click > 2. yes, but you have to use the Autoit tool to help you, its not too > hard though. > > Paul > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Wood > Sent: 02 August 2005 20:37 > To: [email protected] > Subject: [Wtr-general] I have a couple of questions... > > > I haven't gotten a computer setup with WATiR yet, but I wanted to see > if I could get an answer before I got to it... > > #1 - If I do something like ie.link( :id, "blah" ) will it find the > link regardless of frame on the page? or do I have to add stuff to > specify the frame & then the link within it... > > #2 - If an auth dialog pops up, can I fill in the fields @ run time > ... > > I know if the browser shows the login as part of a web page, I can set > the text and submit, but I want to know, if it's truly AUTH based > HTTP, will it let me fill in THOSE? > > I know I can do that with information in the URL, but I want to know > about the dialog option. > > j. > > -- > "So long, and thanks for all the fish" > > Jeff Wood > > _______________________________________________ > 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 > -- "So long, and thanks for all the fish" Jeff Wood _______________________________________________ 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
