on 05-26-2011 9:04 AM
Hi All,
I have developed an automated script using QTP 10 to test CRM Web Portal. I developed the script on a Windows XP machine which runs IE 8. However, the script does not work on another machine which has it's OS as Windows 7(IE and QTP are still version 8 and 10 respectively). The script hangs at a point when it is expected to click on a web link. In order to debug the script failure, I used the QTP Object Spy whereby I observed that the "link" object is instead showing up as one of the selections of an "SAPNavigationBar" object.
Could anyone help me understand the cause for the difference in identification of objects?
Hi Ashwini,
It's impossible for you to simply record/playback by using QTP for CRM_UI testing. CRM_UI will generate complicated dynamic attributes for all html elements. And QTP BHO for IE8 cannot penetrate into the SAPNavigationBar object.
Try using DOM manipulation like this:
Set node1= Browser("Browser").Page("index:=1").SAPFrame("index:=1").SAPNavigationBar("index:=1").Object.getelementsByTagName("a")
node1(6).Click
Set node1=nothing
It will trigger a click event on the 6th link of the SAPNavigationBar object and if there are multiple SAPNavigationBar, use XPATH selector or Regular Expression to locate the very navigation bar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.