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/
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.
Now According to Microsoft help, input 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?
- Object Spy on the text box/ browse button object reveals that it is a WebFile type Object.
- Using Tools > Web Event Recording Configuration, go to WebFile (under Web Objects tree). Add onclick event.
- Set the onclick event settings to Always. Click ‘OK’.
- Done!. Record the click on browse button, now QTP should be able to identify the click on the button.
No comments:
Post a Comment