try with

ie.link(:text=>"LogOut", :index=>1).click() or

ie.link(:text=>"LogOut", :index=>2).click() or

ie.link(:text=>"LogOut", :index=>3).click()


try with diff index values by trail and error or you can include parent of
that link and try example
ie.div(just example).link(:text, "LogOut").click()

Else give us your source we can try to help you  :)

On Mon, May 24, 2010 at 9:37 PM, Cristina <cristina.toro...@gmail.com>wrote:

> I am using firefox.
>
> Just try and not working. I am receiving the following err:
>  Unable to locate element, using :text, "Logout" (Watir::Exceptio...
>
>
>
>
> On Sun, May 23, 2010 at 4:36 PM, Felipe Knorr Kuhn <fkn...@gmail.com>wrote:
>
>> Hello, Cristina,
>>
>> have you tried
>>
>> $ie.link(:text, "Logout").click
>> $ie.link(:text, "Logout").fire_event("onClick")
>>
>> ?
>>
>> On Sun, May 23, 2010 at 5:29 PM, Cristina <cristina.toro...@gmail.com>
>> wrote:
>> > Hi,
>> >
>> > please can one help me with that:: i do not know how to click on the
>> logout.
>> > That is the snippet code:
>> >
>> > #-------------------------
>> > <tr>
>> > <td id="topToolbar">
>> > </td>
>> > <td id="greeting">
>> > Welcome q...@qa.hemt.ca |
>> > <a id="helpText" href="#" onclick="showHelp();return false;">&nbsp;</a>
>> > |
>> > <a id="logoutLink" href="javascript:confirmLogout();"> Logout </a>
>> > </td>
>> > </tr>
>> > #------------------------
>> >
>> >
>> > I've try
>> > $browser.cell(:id => "logoutLink").click
>> >
>> > or
>> > $browser.link(:text, "Logout").click
>> > or
>> > $browser.link(:id, "LogoutLink").click
>> >
>> > but is not working.
>> >
>> >
>> > Best regards,
>> > Cristina
>> >
>> > --
>> > Before posting, please read http://watir.com/support. In short: search
>> > before you ask, be nice.
>> >
>> > You received this message because you are subscribed to
>> > http://groups.google.com/group/watir-general
>> > To post: watir-general@googlegroups.com
>> > To unsubscribe: 
>> > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>> >
>>
>> --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> You received this message because you are subscribed to
>> http://groups.google.com/group/watir-general
>> To post: watir-general@googlegroups.com
>> To unsubscribe: 
>> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>>
>
>
>
> --
> ~~ Cristina
>
>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to