Re: Easiest way to locate .document.all.item with known innertext or href?



On Fri, 8 Apr 2005 at 07:43:40, CraiginNJ (CraiginNJ <craig@xxxxxxxx>) wrote:
Is there a super-fast & easy way to find a webbrowser document element
item with particular innerText or href?  Right now I hunt through every
item one by one.  For the href, I can instead hunt through the .links.
instead to save time.

I'm hoping there might be a single-line solution something like:
      webbrowser.Document.all.item(innerText="DATA STARTS HERE")
and
      webbrowser.Document.all.item(href="http://www.google.com";)

Is there anything like that?

Craig in NJ

I think the answer is No
Can't you just write a function that loops through the items
--
Mike
.