[Wtr-general] general questions when trying Watir

Željko Filipin zeljko.filipin at gmail.com
Thu Jul 5 08:30:40 EDT 2007


Hi Jaordzz,

Comments are inline.

On 7/5/07, salamond <jarodzz at gmail.com> wrote:
>
> Q1: how do you write your scripts?
> If I want to set my username & passwd in a login form's text_field,
> is there any other way except for dig into the html to see what the name
> of text_filed is?


I use Firebug (https://addons.mozilla.org/en-US/firefox/addon/1843) for
Firefox, but there is also Internet Explorer Developer Toolbar (
http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
)

Q2: Working with Ajax sometimes, I can't even find the object in
> VIEW/source.
> does watir support Ajax testing? will it work with several web sites like
> igoogle or liferay?


Yes. If you have a problem with something, let us know.

Q3: I can't have attach work properly for me.
> if i got a link like this :
>
> <a href="http://www.google.com" target="_blank">.
> and ie is my current page driver.
> ie2= Watir::IE.attach(:url,'http://www.google.com' <http://www.google.com%27>)
> if i did this, will the link in ie be clicked and a new window generated?
>
> Try this.

ie.link(:href, "http://www.google.com").click

Zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070705/c14b39ea/attachment.html 


More information about the Wtr-general mailing list