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

Thanks Tangent.

I'm afraid I still get the same error. It seems to be the

 click()

That it takes exception to.

Replies are listed 'Best First'.
Re^3: web automation button clicking problems
by Anonymous Monk on Jan 31, 2014 at 03:40 UTC
Re^3: web automation button clicking problems
by tangent (Parson) on Jan 31, 2014 at 03:39 UTC
    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.

      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?

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