views:

12

answers:

0

I have a program that I'm working on that fills out a webform on a page I don't control. It works pretty good for the most part, except for one part.

They have a button that adds rows to the form as needed using javascript.
I can set the values on the original row (web.Document.All("p[0].quantity").value = Qty), and I can make it .Click() the button to add a second row, but I can't seem to be able to access the second row once it's created.

I am assuming that p[1].quantity is the name of the inputbox, but I can't be sure, and I'm not sure how to either refresh the document dom so that it knows about the second row, or find out if they went with something else for the second row's name.