On 8/6/11 1:33 PM, Rahul Sharma wrote:
Thanks for the information there Dimitry and Chuck. I forgot to add one thing in my post.
The form I am talking about is a form that has been created by a developer to assist
automated testing. In real world, users of our website will see a promotion somewhere(let's
say google). When one clicks on that advertisement it will bring the user to our website
with the promotion code filled in and letting the users fill the rest of the form to be
able to register and claim the promotion. So the form here is a HTML page written by a
developer so that when I click on the button in the form it will do the same thing as in
the real world when a customer clicks on a promotion on Google. I actually don;t have the
HTML of the form handy but I can paste it on Monday when I get back to work. So basically
my question was to whether I can define that<form> </form> in my Page and use
it with the page object to post it and give me the website page filled with the promotion
code just like the user would do actually.
Rahul,
Getting back to your original question of submitting a local form, why
do you need to that? Do you really need to manipulate the form in a
non-trivial way?
If you don't, Watir can drive the browser to reproduce user clicks and
filling the text on the form quite well without extra complications.
--
DK
AIM: DKroot1, Skype: DKroot
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com