thnx...

On Apr 14, 3:07 pm, Татьяна Запольская <tzapolsk...@gmail.com> wrote:
> Hi, Isabel!
>
> For me Multiple Attributes works. I'm also using watir 1.6.2.
>
> I have tried this code when 'Portal application (IBM)' link is already
> clicked (class => "active"):
>
> ie=Watir::IE.attach(:title, /Help/)
> temp = ie.frame(:name, "HelpFrame").frame(:name, "NavFrame").frame(:name,
> "ViewsFrame").frame(:id, "toc").frame(:name,"tocViewFrame")
> temp.link(:text => "Portal application (IBM)", :class => "active",
> :href=> /publib.boulder.ibm.com/
> ).click<http://publib.boulder.ibm.com/infocenter/systems/topic/rzamm/rzammcon...";).click>
>
> and the link was clicked.
>
> I have tried this code when 'Portal application (IBM)' is not clicked (class
> => ""):
>
>  ie=Watir::IE.attach(:title, /Help/)
> temp = ie.frame(:name, "HelpFrame").frame(:name, "NavFrame").frame(:name,
> "ViewsFrame").frame(:id, "toc").frame(:name,"tocViewFrame")
> temp.link(:text => "Portal application (IBM)", :class => "", :href =>
> /publib.boulder.ibm.com/<http://publib.boulder.ibm.com/infocenter/systems/topic/rzamm/rzammcon...";).click>
>  ).click<http://publib.boulder.ibm.com/infocenter/systems/topic/rzamm/rzammcon...";).click>
>
> the link was clicked.
>
> Please reply if you still have problems.
>
> Best Regards,
> Tanya Zapolskaya
>
> 2009/4/14 Isabel <joybe...@gmail.com>
>
>
>
> > Hi,
> > I tried to click on a link 'Portal application (IBM)' on
>
> >http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/rza...
> > using the script below:-
>
> > require 'watir'
> > ie=Watir::IE.attach(:title, //)
> > ie.frame(:name , 'HelpFrame').frame(:name , 'NavFrame').frame(:name ,
> > 'ViewsFrame').frame(:id , 'toc').frame(:name , 'tocViewFrame').link
> > (:text => 'Portal application (IBM)',:class => 'active',:href =>
> > 'http://publib.boulder.ibm.com/infocenter/syst').click
>
> > But it gave an error c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
> > watir/element.rb:52:in `assert_exists': Unable to locate element,
> > using {:href=>"http://publib.boulder.ibm.com/infocenter/systems/topic/
> > rzamm/rzammconceptsportalapplication.htm?tocNode=toc:front/front.cmb/
> > 0/1/3/1/0/7/1/", :class=>"active", :text=>"Portal application (IBM)"}
> > (Watir::Exception::UnknownObjectException)
>
> > But if I use each of the attribute (text,class and href) individually,
> > this works. I want to know why Multiple Attributes are not being
> > supported as mentioned on
> >http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element
>
> > Thanks....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to