ExtractTag problem

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Liberty
Pro Scripter
Posts: 56
Joined: Wed Jun 06, 2007 11:56 am
Location: Sweden

ExtractTag problem

Post by Liberty » Fri Feb 08, 2013 9:43 am

I use the code in Version 13.1:

If>%spantype%=43
Let>SPAN43_SIZE=4098
LibFunc>hIE,ExtractTag,r,%IE[0]%,,SPAN,43,0,SPAN43
MidStr>r_6,1,r,SPAN43
Let>value=%SPAN43%
...........................

SPAN43 has been found by Webrecorder 3.

Sometimes I get the correct result
but sometimes the result is wrong, it is from another tag.
This error has not been seen before.
It started some weeks ago.

When I run the script several times it seems
that error comes first but next time it is correct.

This is not good.

What to do? (Are checking and repeating really necessary?)
Has someone else the same problem?

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

Post by Marcus Tettmar » Wed Feb 13, 2013 9:21 am

Hi,

Try initialising the variable before the LibFunc call ...

Let>SPAN43={""}
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

Liberty
Pro Scripter
Posts: 56
Joined: Wed Jun 06, 2007 11:56 am
Location: Sweden

Post by Liberty » Sat Mar 02, 2013 9:09 am

Thank you.

Your advice does not help at all.

I use this form page quite often, which shows different content.

Earlier, last year, there was not this problem.

Some form pages deliver incorrect result for this SPAN tag - other tags are correct. Instead of the tag result I get information from the page text.

In one case I get 3 errors in a row followed by 5 corrrect results.
If I repeat after 5 min the results are all correct.
I another case I get sporadic errors in the result (say 5%), which is very frustrating.

Just repeating the extract function is not a solution. I use version 13.1.03.

Have you seen this elsewhere? Is SPAN something special? Pls help.

Liberty
Pro Scripter
Posts: 56
Joined: Wed Jun 06, 2007 11:56 am
Location: Sweden

Error still remains to be corrected

Post by Liberty » Tue Sep 17, 2013 1:15 pm

The tags SPAN and DIV are not handled correctly by MS.

My reported errors are still coming.

I have today to repeat the running of the macro twice in order to get the correct result. The errors change also over time.

It is time for mjtnet to do something about this.

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