Results 1 to 2 of 2
  1. #1

    FireEvent method on Java objects

    I am encountering a problem with a JavaButton in my AUT, so I was hoping to try using the FireEvent method to see if I could overcome the problem. However, there is little information in the QTP Help about the FireEvent method for Java objects. Is there a web-site or FAQ that details what the EventArguments array should contain for each of the Java objects (JavaButton, JavaEdit etc)?

    e.g. JavaButton("aButton").FireEvent micMouseClick, 0, "BUTTON1_MASK", 4, 4, 1, "OFF"

    How do I know what the arguments passed in to the FireEvent method should be?


  2. #2

    Re: FireEvent method on Java objects

    You could try JavaButton.Object.doClick() instead of FireEvent. And you could try requestFocus() / grabFocus() before clicking the button.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:55 PM.

Copyright BetaSoft Inc.