Finding the current page name

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.
Post Reply
ErikMartinson

Finding the current page name

Post by ErikMartinson » Tue Oct 25, 2005 7:52 pm

Hello,

I am trying to write a script that checks the a site to see if a session timeout has occurred. I need a script that will tell me the name of the page that I am on. Below is an outline of the sctipt that I looking to write.

1. Login to ASP website ...Done
2. Select an account and display listing page (external data) ...Done
3. Wait 30 Minutes
4. Repeat Step 2 ...Done
5. Grab the Name of the Current Page
6. Return Current Page Name to calling application (vb6)

Thanks
User avatar
Tech Support
Posts: 5003
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Tue Oct 25, 2005 8:21 pm

Just to clarify: With page name, you do you mean the URL of the current page?
ErikMartinson

Post by ErikMartinson » Tue Oct 25, 2005 8:43 pm

Yes, that is what I am looking for.

Thanks
User avatar
Tech Support
Posts: 5003
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Tue Oct 25, 2005 8:49 pm

You can use

SET !EXTRACT {{!URLCURRENT}}

or

SET !EXTRACTADD {{!URLCURRENT}}

This adds the URL of the current page to the list of extracted information.

For a similar problem, see also
http://forum.iopus.com/viewtopic.php?t=78
Post Reply