I have a list box control displayed in the .net application. Each and every items of this list box is a combination of check box and label to its side. QTP is recognising an item selected on record in terms of coordinates. I want to know that how can i make QTP identify the selection so that i can go for parameterization.

Questions by kraha

Showing Answers 1 - 4 of 4 Answers

swapna

  • Mar 14th, 2006
 

hi

as per ur question. I understand that you are in the analog recording thats y ur getting the script as per the co-ordinates ,if you want u can parameterize x,y co-ordinates in the script or else enable default recording mode and do testing.

regards,

swapna

  Was this answer useful?  Yes

Kallol Raha

  • Mar 16th, 2006
 

No Swapna iam not in analog mode of recording. We have taken up the issue with mercury also they said that u need to do some coding in .net,register the dlls in custom server. Actually iam not aware of these. If i get a simple solution it will be of great help.

  Was this answer useful?  Yes

Chander

  • Mar 27th, 2006
 

Actually the Webcheckbox is within a table. So we cannot directly access the checkbox using GetCellData. So we have to identify it as a checkbox object and then parameterize the object using the datatable or which ever way you like it.

Set Z = Browser("Payroll").Page("Payroll_Main").WebTable("PayStub").ChildItem(row,col, "WebCheckBox", 0)
Z.set trim(DataTable("Column_Name",dtGlobalSheet))

Regards,

Chander.

  Was this answer useful?  Yes

Pavan

  • Apr 5th, 2006
 

Hi,

     You can do this using Virtual objects. I tried it and worked. What I did was I created virtual objects Like, one virtual object for ListBox and selected the total ListBox area and another virtual object for one checkbox in the target Object ( CheckedListBox ). Then record the object again then QTP identified each one as checkbox and Listbox individually and program it accordingly. Hope this solves your problem.

Pavan.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions