Extract TAG by ID name

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Tester
Junior Coder
Posts: 22
Joined: Fri Mar 20, 2009 2:48 pm

Extract TAG by ID name

Post by Tester » Thu Jul 16, 2009 10:59 am

I got some DIV with thier own IDs to identify them. I got these DIVs on several web pages. The IDs are always the same, but the postions of the DIVs are changing, so I can not reference to them by the index number.

One example for the web source code:


.....

How is the syntax for the

IE_ExtractTag

command to extract the tags with ID=divID whereever they are located on the web pages?

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

Post by Marcus Tettmar » Fri Jul 17, 2009 1:54 pm

Use the ExtractTagByName command which can extract based on NAME or ID:

IE_ExtractTagByName>IE0,,DIV,sidebar,0,divside,r
MessageModal>Data: %divside%
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