A litle big help Please

Please give me a little help that my head already hurts.

I wanted to press the + (plus) button and get all runners the "Last20" data, but I'm stuck somewhere.

Please, give me a little help.

Thank you very much
Pedro

Url: https://www.skyracing.com.au/tab/form/index.php

Sitemap:
{{"_id":"skyform_form_v01beta","startUrl":["https://www.skyracing.com.au/tab/form/index.php"],"selectors":[{"id":"go_form","type":"SelectorLink","parentSelectors":["_root"],"selector":"table.indexreport:nth-of-type(1) td:nth-of-type(3) a","multiple":false,"delay":0},{"id":"racenr","type":"SelectorText","parentSelectors":["go_form"],"selector":"td:nth-of-type(1) h3 strong","multiple":false,"regex":"","delay":0},{"id":"racetime","type":"SelectorText","parentSelectors":["go_form"],"selector":"td:nth-of-type(2) h3","multiple":false,"regex":"","delay":0},{"id":"clickplus","type":"SelectorLink","parentSelectors":["go_form"],"selector":"a.expandall","multiple":false,"delay":"500"},{"id":"1_last20","type":"SelectorText","parentSelectors":["clickplus"],"selector":"tr.expanded:nth-of-type(3) table.expandedtop tr:nth-of-type(2) td:nth-of-type(2)","multiple":false,"regex":"","delay":0}]}}

Here is the sitemap you're looking for. The only issue I have is with pagenination. The a.rightarrow calls a javascript function and I'm not sure how to make that work @iconoclast?

{"_id":"forum-fix-skyracing","startUrl":["https://www.skyracing.com.au/tab/form/index.php"],"selectors":[{"id":"go_form","type":"SelectorLink","parentSelectors":["_root"],"selector":"table.indexreport:nth-of-type(1) td:nth-of-type(3) a","multiple":true,"delay":0},{"id":"Page-Chang","type":"SelectorLink","parentSelectors":["Page-Chang"],"selector":"a.rightarrow","multiple":false,"delay":0},{"id":"Page Changer","type":"SelectorLink","parentSelectors":["go_form","Page Changer"],"selector":"a.rightarrow","multiple":false,"delay":"2000"},{"id":"Race 1","type":"SelectorText","parentSelectors":["go_form","Page Changer"],"selector":"td:contains(\"Race 1\")","multiple":false,"regex":"(?<=-).*$","delay":0},{"id":"Advertised Start Time","type":"SelectorText","parentSelectors":["go_form","Page Changer"],"selector":"div div table:nth-of-type(1) td:nth-of-type(2)","multiple":false,"regex":"(?<=:).*$","delay":0},{"id":"Last 20 Expander","type":"SelectorElementClick","parentSelectors":["go_form","Page Changer"],"selector":" table.expandedtop tbody","multiple":true,"delay":0,"clickElementSelector":"a.expandall","clickType":"clickOnce","discardInitialElements":false,"clickElementUniquenessType":"uniqueText"},{"id":"Last 20","type":"SelectorText","parentSelectors":["Last 20 Expander"],"selector":"tr:nth-of-type(2) td:nth-of-type(2)","multiple":true,"regex":"","delay":0}]}

Many thanks bretfeig

In fact i complicate what is simple, sorry for trouble .

But iet we have a pagination problem.

Please @iconoclast, or anyelse, if you can help me i will be very gratfull.

Chears
Paulo

Hi Paulo!

Yeah for some reason 'artificial' click won't work on this page (JavaScript was coded with errors on it), but we can go around it and imitate 'user' click using get(0) method inside Tampermonkey extension.

Please download it, and import script i've made for you below (it will automatically open all entries once you open a page).

// ==UserScript==
// @name         skyracing
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.skyracing.com.au/tab/form/summary.php*
// @grant        none
// @require      http://code.jquery.com/jquery-2.0.3.min.js
// ==/UserScript==

(function() {
    'use strict';
   $(document).ready(function(){
        $('#expandAll').get(0).click();
    });
    // Your code here...
})();

Hi @iconoclast

Many , many thanks for your help but im so noob and im stick lol.

I have an error in script
and i cant pass over it.

Please see my gyazo image

https://gyazo.com/42409c1083ae8cb3e6fdc05e1b262348

Sorry for all trouble.

thanks
Paulo

It's not error, don't worry, just open the desired page within specified range while you have script running (https://www.skyracing.com.au/tab/form/summary.php*)

@iconoclast

Sorry the delay in my reply.

Of course you are right lol, its working, now i will try do all other things.

Many thaks mate and all who help me.

Paulo