[python-win32] Clicking an li tag in Internet Explorer

2011-03-17 Thread Blake Willmarth
Hello,

I am having trouble navigating the MS documentation to find out how to click
an  element. I only have the class attribute name as the identifying
feature: 

The one hope I had was ie.Document.getElementsByTagName("li") but this seems
to be only getting  tags.

Any pointers would be really appreciated.

Thanks,
Blake
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Clicking an li tag in Internet Explorer

2011-03-17 Thread Blake Willmarth
I was wrong about them being links, the method does work as intended and I
was able to click the correct one using the className attribute:

liTags = ie.Document.getElementsByTagName("li")
for i in range(liTags.Length):
if liTags[i].className == "NextEnabled":
liTags[i].Click()

Sorry.

On Thu, Mar 17, 2011 at 8:13 PM, Blake Willmarth wrote:

> Hello,
>
> I am having trouble navigating the MS documentation to find out how to
> click an  element. I only have the class attribute name as the
> identifying feature: 
>
> The one hope I had was ie.Document.getElementsByTagName("li") but this
> seems to be only getting  tags.
>
> Any pointers would be really appreciated.
>
> Thanks,
> Blake
>
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32