Re: Easiest way to locate .document.all.item with known innertext or href?
- From: Mike NG <sweepdog@xxxxxxxxxxxx>
- Date: Fri, 15 Apr 2005 18:32:36 +0100
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 .
- Follow-Ups:
- References:
- Prev by Date: Non-HTML documents in WebBrowser control
- Next by Date: argh the browser is grabbing input focus
- Previous by thread: Easiest way to locate .document.all.item with known innertext or href?
- Next by thread: Re: Easiest way to locate .document.all.item with known innertext or href?
- Index(es):