contact  |  about  |  sitemap

Posting Data to a Form with dynamic names
Last Post 28 May 2009 08:38 PM by Jaap. 1 Replies.
Sort:
PrevPrev NextNext
Author Messages Informative
rzehentner

--
23 May 2009 02:00 PM
I've been working on automating some steps on Craigslist so that all I have to do is enter the catchpa phrase at the end of the listing process, but I've run into a road block. It seems that the Form fields are dynamic, so I have to read the HTML to get the name. THe problem is, what I've got will work sometimes, and sometimes it will not, and so far I've not been able to click the submit button at the bottom of the first page. Here is what I've got so far. If anyone can offer any help it would be greatly appreciated.


clist.djs

Jaap

--
28 May 2009 08:38 PM
Hi,

You can click a button if you know the name. In your case the name has an ID that changes.

A solution would be to submit the form with the Execute JavaScript action. Then you only need the form name, which has no ID that changes.

Typically with: theformname.submit;

See the last 2 lines in the attached script.
Hope this helps.
Jaap

clist_updated.djs



Quick Reply
toggle
  Username:
Subject:
Body:
Security Code:
Enter the code shown above:

Submit

Powered by Active Forums

Forum participation and optional registration

You don't need to be registered to partcipate in the Djuggler forums, however if you want to subscribe to email notifications you need to register. You can also subscribe to the forum RSS feed.