in reply to Re^2: web automation button clicking problems
in thread web automation button clicking problems

Can you find the javascript function "dispatch()" and post it here - it will either be on the page somewhere or in an external javascript file linked from the page.
  • Comment on Re^3: web automation button clicking problems

Replies are listed 'Best First'.
Re^4: web automation button clicking problems
by MicrobicTiger (Initiate) on Jan 31, 2014 at 03:50 UTC

    Sure

    function dispatch(id, cmd) { setFieldValue("internal.wdk.wdkCommand", id); if (cmd) { setFieldValue("internal.wdk.wdkCommandArgument", cmd); } document.getElementsByTagName('form')[0].submit(); }
      OK, so there is a form on the page somewhere, can you post that. It will be the first <form> tag on the page, post everything up to the closing </form> tag.

      Update: I'm thinking now that the site doesn't want you to access in this way - have you checked their terms of service? Do they have an API that you can use instead?

        I thought the same. The button randomised button id and the fact the buttons are not on the form made me think that too.

        Not sure whether they have an API i'll have to go and have a look.

      Oh, I see you have changed that - please indicate when you do.