Interact with javascript buttons for pagination

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
timi2fly
Newbie
Posts: 15
Joined: Sun Mar 23, 2014 5:29 am
Location: Adelaide, South Australia

Interact with javascript buttons for pagination

Post by timi2fly » Tue Jun 12, 2018 6:04 am

I am working on a web scraper for a table. I have successfully set up extraction of relevant data from the table so far. I am trying to figure out the best way to manage pagination.

I have attempted to use Macroscheduler to identify the "next button" object, however this has proven unsuccessful. I have successfully used image recognition to find and left click the "next button", however I am hoping there is another way more 'elegant' and direct.

The "next button" has the following on mouse-over

javascript:__doPostBack('ctl00$contentPlaceholder2$Calendar1','V7091')

Is there any way that I can interact with this button apart from the image recognition / left click approach?

Please note that this web site is not public access so I cannot provide a link.

All help appreciated.

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

Re: Interact with javascript buttons for pagination

Post by Marcus Tettmar » Fri Jun 15, 2018 10:31 pm

Try:

IENavigate>IEREF,javascript:__doPostBack('ctl00$contentPlaceholder2$Calendar1','V7091'),ie_res
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