Wiki: FrequentQuestions: "Q. When I enter text in a text field, or interact with something on a page, there is a JavaScript? event that is triggered by mouse movements. How do I get Watir to trigger these events?
A. If the tag contains a JavaScript? call, you can use the 'fire_event' method to trigger it. ex. onchange=doThis() or onmouseup=clearForm()
To trigger a text field named 'my_field' with an onchange event we would do this with Watir:
ie.text_field(:name, 'my_field').fire_event('onchange')"
The more I read, the more I acquire, the more certain I am that I know nothing. -Voltaire
Subscribe to:
Post Comments (Atom)
Ramadan - What is it?
Ramadan is one of the most important and holy months in the Islamic calendar. It is a time of fasting, prayer, and spiritual reflection fo...
-
ZipStudio - A versatile Visual Studio add-in to zip up Visual Studio solutions and projects - The Code Project - C# Programming
-
TargetProcess - Agile Project Management & Bug Tracking Software | Download (Project Management Software, Project Tracking, Bug Tracking...
No comments:
Post a Comment