Sunday, November 8, 2015

Web Event Configuration???

11/8/2015
Topics could be covered are:
- Configure Web Event Configuration
- Add, Delete and Modify web event Recording configuration

Topics:

- Know when to use Web Element Recording Configuration
- Modify existing Web Even Recording Configuration for web objects
- Creating Web Event Configuration file


Example of web Event Configuration:

Source: http://www.learnqtp.com/how-to-record-mouse-right-click-web-event-recording-configuration/

Click on the “Browse” button. Notice this click is not recognized by QTP. Please provide some feedback why QTP is not able to recognize this button. Thanks
This is an interesting question and not a typical object identification issue. I thought I will take it up on the blog to make it available to the wider audience.
If you go on the link mentioned above, you will see QTP is not able to record the click on Browse web button. Web buttons are generally associated with input type=submit object but if you see the source of the browse button, you will notice input type=file object.
qtp-type-file-type-submit
Now According to Microsoft helpinput type=file object creates a file upload object with a text box AND Browse button. Notice the AND. So, in case of input type=file, the text box and browse button are considered part of ONE object. There are no separate objects for QTP to identify.
What can we do to solve this issue?
  1. Object Spy on the text box/ browse button object reveals that it is a WebFile type Object. QTP webfile object
  2. Using Tools > Web Event Recording Configuration, go to WebFile (under Web Objects tree). Add onclick event. When QTP does not recognize buttons
  3. Set the onclick event settings to Always. Click ‘OK’.QTP onclick werc
  4. Done!. Record the click on browse button, now QTP should be able to identify the click on the button.

No comments:

Post a Comment