Name: [084] Robert Marchetti
Member: 114 months
Authored: 11 videos
Description: President of Stone Circle Technologies Inc. in Salem, MA. Developer of the IE automation tool P.A.M.I.E (Python Automation module for IE)which is written in python. Scripting Languages: Groovy, Python and Ruby. Test Tools: Pamie, QTP, WatiJ, Watir. Musician: Bass Guitar, Electric/Acous ...

WATIJ - Automating a form on a Web Page (Internet Explorer) [ID:1501] (4/4)

in series: Web Testing with Open Source tools - Overview and example

video tutorial by Robert Marchetti, added 06/09

(Showmedo is undergoing major changes. To report any problems viewing the videos please email us and include browser and OS specifics. Cheers - Kyran.)

This video walk you thru writing a script in Watij to Automate a form on a Web page. This will allow you to automatically set the values of a Textbox, Select an item from listbox, Check a Checkbox, select a radio and click the submit button to submit the form.

# Simple Jpype Example

from jpype import * 

startJVM("C:\\Program Files\\Java\\jre6\\bin\\client\\jvm.dll", "-Djava.class.path=.\\lib\\junit.jar;.\\lib\\resolver.jar;.\\lib\\nekohtml.jar;.\\watij.jar;.\\lib\watijcom.jar;.\\lib\jniwrap-3.6.1.jar;.\\lib\\comfyj-2.4.jar;.\\lib\\winpack-3.6.jar;.\\lib\\xalan.jar;.\\lib\\xml-apis.jar;.\\lib\\serializer.jar;.\\lib\\xercesImpl.jar;.\\lib\\bsh.jar;.\\lib\\jexplorer-1.9.jar;.\\lib\\mshtml.jar;")

IE = JPackage("watij")  
SF = JPackage("watij").finders.SymbolFactory     
ie = IE()

# Fill in the Text boxes
ie.textField(,"addline1").set("123 EastOverShoe")
ie.textField(,"addline2").set("Suite #001")


# Select an Item from a Dropdown
ie.selectList(, "state").option(SF.value, "MA").select(); 

# Select a Checkbox

# Select a Radio button where the RB has the same "name" attrib.,"music", "pop").set(),"car", "saab").set()

# Click Submit


Got any questions?

Get answers in the ShowMeDo Learners Google Group.

Video statistics:

  • Video's rank shown in the most popular listing
  • Video plays: 12 (since July 30th)
  • Plays in last week: 0
  • Published: 86 months ago

Thank-yous, questions and comments

If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?

You may also want to see our ShowMeDo Google Group to speak to our active users and authors.

Your email address will not be published.

Show some quick comments >>

All comments excluding tick-boxed quick-comments

3. mbt mila shoes for women Wed, 05 May 2010 01:32

Thanks for the nice videos!

This automation mechanism looks very interesting.

I would please to know, if it is also possible with https pages

I had some difficulties to automated testsscripts with https pages

Thanks a lot for your feedback

2. Wed, 14 Apr 2010 23:34

I have seen the video.. It is very good. I am able to understand it. I shall implement the same. Thank you very much for providing it online.

Nice Explanation :)

Showmedo is a peer-produced video-tutorials and screencasts site for free and open-source software (FOSS)- with the exception of some club videos, the large majority are free to watch and download.

how to help » about » faq »

Educating the Open-source Community With Showmedo

Although as important as the software it supports, education and documentation are relatively neglected in the Open-source world. Coders love to code, and explaining how best to use or improve the software tends to be deferred or even sidelined.

At Showmedo we believe the community can play a vital role here and also say thanks for the tools and software that make our lives easier. If you have a piece of software you love or a programming langugage you are enthusiastic about, why not make a screencast showing others how to use it? All the stuff you wish you'd been told, the tips, tricks, insights that would have saved you time and frustration.

Screencasting is easier than you think, and we're happy to help you. You can emailus for advice or just use some of the how-to screencasts on the site. This screencasting learning-pathis a good place to start.

Kudos and Thanks for Robert

PyDev on a Mac

Good content. Could not read screen.
71 months ago
PyDev on a Mac

great video :)

乳酸菌発é…?沖縄 パパイヤゼリー食å“?パパイヤの力【HLS_DU】【RCP】P15Aug15
73 months ago
Parameterize Test Data using XML

Thanks - good tutorial, clearly delivered

Dune Perfume For Women By Christian Dior Eau De Toilette Spray 34
73 months ago
Watij Overview and Example

Good Demonstration.

Thank you

brushes for mac Unique Design ntRrzvY6gK - RPMEDIA
75 months ago


Showmedo's development is fairly rapid and bugs will inevitably creep in. If you have any problems please drop us a line using the contact address below. Likewise, any suggestions for improvements to the site are gratefully received.