Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i click various tabs in a vbapplication using qtp?
#1
Not Solved Question 
Hi All,

I am automating a VB application, where in there is a scenario, where i should click on different tabs in a vbwindow. All the tabs are recognized by QTP as Activex class and its progid is TabDlg.SSTab.1. Now i want to click on other tabs but all the tabs are showing the same progid.
When i recorded the action (clicking on two different tabs) using qtp, i am getting the code as below:
VbWindow("SRMAIN").ActiveX("VbTab_InsuredInfo").Click 116,11
VbWindow("SRMAIN").ActiveX("VbTab_InsuredInfo").Click 178,8
Can anyone help me how to handle such scenarios using QTP or vbscript?
Reply
#2
Not Solved
Hi All
Please can anyone help me on this query ?
I have tried with many options but still could not handle the situation.
Thanks in Advance
Phanindra
Reply
#3
Not Solved
Phani -
Well, one of the common issues we face with QTP interacting with various custom built applications is the hindrance to identify the objects uniquely. In this case you have to ways to achieve what you want,

1. Identifying the unique feature of each tab. ( Indexing should help. If it does not work try Location. If no help try to contact the developers to see if there any unique property is set. Most of the times it ends with indexing as the one. You can define the tab contents as collection of child tabs and then click each child tab. Let me know if this idea helps you. Research more and you will find more.]

2. Co-ordinate Identification - Death option. Last resort when you do not have solution and you need to get the achieved automation. [ Use SetCursorPos API, DeviceReplay, etc etc and it should help you ].

Let me know how the flood flows through...
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Import and read multiple tabs on a datasheet trance07 1 3,374 10-09-2013, 07:29 PM
Last Post: Parke
  Right Click On a Image and Click on a Link in WebElement RameshKrishnan 4 5,402 07-10-2013, 04:13 PM
Last Post: RameshKrishnan
  How do I left click on the right click menu in WinTreeView? RandomGrin 0 3,917 12-22-2012, 04:22 AM
Last Post: RandomGrin
  How do I left click on the Right click menu? RandomGrin 2 4,211 12-18-2012, 09:47 PM
Last Post: RandomGrin
  ASP AJAX tabs count and click ??? swetha.b 1 3,032 01-12-2010, 04:27 PM
Last Post: 1981.madhu@gmail.com

Forum Jump:


Users browsing this thread: 2 Guest(s)