Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: web automation button clicking problems

by MicrobicTiger (Initiate)
on Jan 31, 2014 at 03:50 UTC ( [id://1072785]=note: print w/replies, xml ) Need Help??


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

Sure

function dispatch(id, cmd) { setFieldValue("internal.wdk.wdkCommand", id); if (cmd) { setFieldValue("internal.wdk.wdkCommandArgument", cmd); } document.getElementsByTagName('form')[0].submit(); }

Replies are listed 'Best First'.
Re^5: web automation button clicking problems
by tangent (Parson) on Jan 31, 2014 at 04:06 UTC
    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.

        Alas no API.

        I'm going to try an HTTP POST method to see if I can activate the form that way.

        Cheers

        Micro

Re^5: web automation button clicking problems
by tangent (Parson) on Jan 31, 2014 at 03:59 UTC
    Oh, I see you have changed that - please indicate when you do.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1072785]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-24 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found