You can also locate the parent by using:

object.parent

On Tue, Oct 7, 2008 at 6:55 AM, aidy lewis <[EMAIL PROTECTED]> wrote:
>
>> On Tue, Oct 7, 2008 at 5:16 AM, wesley chen <[EMAIL PROTECTED]> wrote:
>> > When I locate the element A,
>
> anchor = ie.document.getElementByTagName("A")
>
> how can I locate the element close to A with
>> node(child node, father node) or directory attributes?
>>
> anchor.getAttribute("title")
> anchor.getElementByID("purchases")
>
> Or something like that!
>
> Aidy
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to