Cannot get IE_ExtractTagByName to work

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
nebjamin2
Newbie
Posts: 1
Joined: Sat Feb 12, 2005 9:21 am

Post by nebjamin2 » Sat Feb 12, 2005 9:23 am

Since this silly forum keeps telling me I cannot reply so soon after my last post (which was >12 hours ago) I had to create a new user. How pants is that?

> Continued from the previous topic...

Thanks for the suggestion, but it doesn't work.

In fact, returning the inner HTML is not necessary either since IE_ExtractTag returns valid data without requesting the inner html.

I used
IE_ExtractTag> and passed the id instead of the name and when the checkbox is checked it returns :CHECKED

nebjamin
Newbie
Posts: 2
Joined: Thu Feb 11, 2010 5:12 pm

Cannot get IE_ExtractTagByName to work

Post by nebjamin » Thu Feb 11, 2010 5:17 pm

I am trying to use IE_ExtractTagByName, but it doesn't seem to work.

Here is the HTML I am trying to extract from:



TEST CHECK



Here is how I called IE_ExtractTagByName:

IE_ExtractTagByName>%IE%,,INPUT,testcheck,0,buffer,r
MessageModal>%buffer%

but buffer is always empty.

Note that IE_ExtractTag with an id == 0 seems to work OK.

I am using ver 11.1.19 - just an eval copy at this stage. If I can get this to work I will probably purchase.

nebjamin
Newbie
Posts: 2
Joined: Thu Feb 11, 2010 5:12 pm

Post by nebjamin » Thu Feb 11, 2010 5:19 pm

Actually once I posted this, it modified the HTML slightly.

The INPUT tag has the following options (that were stripped out when I posted):

INPUT type='checkbox' name='testcheck checked

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Feb 11, 2010 9:21 pm

Try changing to:

IE_ExtractTagByName>%IE%,,INPUT,testcheck,1,buffer,r

At present you're asking it to return only text, but an Input has no inner text. So ask it to return the HTML instead.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts