<input type="text" name="myArea" size="20" value="DENVER" onblur="handleUpdate(this.form)">
Then the handleUpdate function calls a Struts action (like tempObj.action = '/pathto/myDetailUpdateAction.do') which does a tempObj.submit() and then the select menu is magically updated.
I don't really understand the Struts actions. I just want my test script to interact with the fields like a manual user so I can successfully submit the form. I'd love some suggestions!
- Karen
Arguments:
so I'm guessing you'd need to do something like
| fireEvent; | name=myArea | blur |
-C
I'm just guessing, but once you have DENVER in place, looks like you need to fire the js blur event to push it through. The Se1.0 ref (http://release.seleniumhq.org/selenium-core/1.0.1/reference.html) says:
- fireEvent ( locator,eventName )
- Explicitly simulate an event, to trigger the corresponding "onevent" handler.
Arguments:
- locator - an element locator
- eventName - the event name, e.g. "focus" or "blur"
so I'm guessing you'd need to do something like
| fireEvent; | name=myArea | blur |
-C
Chris, you are my new best friend.
Interesting that fireEvent was intentionally removed from WebDriver because it's such a hack. Those of us supporting crummy old apps are now supposed to implement our own hacks in JavaScript.