QTP is not recording click on webelement

  • Questions
  • QTP is not recording click on webelement
Question ID: 104762
2
0

I am trying to record a web page with just Web Add and QTP. QTP does not record clicks on a web element. I can add the webelement manually to the Object Repository and then add code for play back. For some reason QTP will not record this actions. Does anybody know how I can get around the function?

Marked as spam
Posted by (Questions: 63, Answers: 1)
Asked on December 18, 2012 1:01 pm
16 views
Answers (1)
3
Private answer

I had this same problem and ended up changing the ' Web Event Recording Configuration ' to record the onclick functions for WebElements.

1. Access the Web Event Recording Configuration dialog (From QTP main menu ''Tools'' > ''Web Event Recording Configuration'' option.
2. Click on ''Custom Settings...'' button to show ''Custom Web Event Recording Configuration'' dialog.
**Note:** On the left side, a tree view control shows different types of web test objects and on right side are shown all events being listened/recorded

3. Before moving forward, backup/export to a file the current settings, by going to ''File'' and selecting ''Save Configuration As''.
**Note:** exported file can be ''imported'' by going to ''File'' and selecting ''Load Configuration''

4. Expand ''Web Objects'' (under ''Any Web Object'' item on left side) and find/highlight/select test object showing problematic behavior (WebElement in this case).
5. Once selected a test object, add onclick event to the webelement. Object > Add > onclick.
6. Click ''Ok'' on currently opened dialogs to confirm changes and go to back to main screen of QTP
7. Confirm that this change allows you to record.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on December 18, 2012 1:12 pm