QTP 11 - Silverlight table (2683 Views)
Reply
Advisor
Posts: 28
Registered: ‎12-15-2009
Message 1 of 16 (2,683 Views)
Accepted Solution

QTP 11 - Silverlight table

Hi All,

I have a problem in identifying some objects present inside the silverlight table.

In the first column of the table, i have some icons which are not getting identified.

Object spy captures till the table level but not the icons inside the table.

Even Record and Playback option went in vain.

Kindly let me know is there any other option available.

 

Attached the screen shot of the silverlight table for your reference.

 

Thanks in Advance

Aananth

Frequent Advisor
Posts: 54
Registered: ‎03-05-2012
Message 2 of 16 (2,671 Views)

Re: QTP 11 - Silverlight table

Hi,

 

can u try,

 

Browser("SCM - MR Module").Page("SCM - MR Module").SlvWindow("SCMMainPage").SlvTable("dgrdMultiMRDetails").ActivateCell 0,2
Browser("SCM - MR Module").Page("SCM - MR Module").SlvWindow("SCMMainPage").SlvTable("dgrdMultiMRDetails").SelectCell 0,2

 

Regards,

S. Indra

 

 

Advisor
Posts: 28
Registered: ‎12-15-2009
Message 3 of 16 (2,653 Views)

Re: QTP 11 - Silverlight table

Hi Indra,

 

I tried the way you mentioned above but no luck.

Is there any othner way we cn perform the click operation on the icons?

 

Thanks in Advance

Frequent Advisor
Posts: 54
Registered: ‎03-05-2012
Message 4 of 16 (2,647 Views)

Re: QTP 11 - Silverlight table

Hi Aananth,

 

Please try like this below code, Code for image button and Link. Using Descriptive programming, this code is working. so please try

 

Browser("").Page("").SlvWindow("").SlvTable("dataGrid2").SelectCell 0,"Send"

 

 

set objects =  Browser("").Page("").SlvWindow("").SlvTable("dataGrid2").GetCellChildObjects(0,"Send")

 

set btn = objects(0)

 

btn.click

 

 

 

 

Browser("").Page("").SlvWindow("").SlvTable("dataGrid2").SelectCell 0,"MR Number"

 

set linkObj =  Browser("").Page("").SlvWindow("").SlvTable("dataGrid2").GetCellChildObjects(0,"MR Number")

 

linkObj(0).Click

Advisor
Posts: 28
Registered: ‎12-15-2009
Message 5 of 16 (2,639 Views)

Re: QTP 11 - Silverlight table

Hi Indra,

 

It works like a charm. Thank you very much for the solution. :)

 

Frequent Advisor
Posts: 54
Registered: ‎03-05-2012
Message 6 of 16 (2,631 Views)

Re: QTP 11 - Silverlight table

Welcome Aananth. If u have any doubt in QTP with Silverlight Application. Please post here. i will learn it.

 

 

:)

 

 

Regards,

Indra

Advisor
Posts: 28
Registered: ‎12-15-2009
Message 7 of 16 (2,615 Views)

Re: QTP 11 - Silverlight table

Hi Indra,

 

One more Query... If i select the cell (0,0)  the cell highlighted in Picture1.jpg is getting selected and i'm able to do the actions.

Picture1.JPG



 

Consider i want to perform the same action on the header highlighted in Picture2.jpg. What modification should i do?

Picture2.JPG

 

Kindly help in resolving this!!

Occasional Advisor
Posts: 14
Registered: ‎03-16-2012
Message 8 of 16 (2,553 Views)

Re: QTP 11 - Silverlight table

Hello Indira,

I have a problem - any help is highly appreciated.

 

I am using QTP 11 to automate a silverlight (4.0 ) application.

 

In the screen shot below, I want to click on Orders Link

 

 

 

This is a slvTable.

 

I tried the below code

 

Browser("").Page("").SlvWindow("Companies").SlvTable("LayoutRoot").SelectCell 0,5
Browser("").Page("").SlvWindow("Companies").SlvTable("LayoutRoot").ActivateCell 0,5

 

 

The SelectCell method only highlights the cell, but it  is not clicking on the Orders Link

 

ActivateCell is also not working

 

Please help

 

Thank you...

Frequent Advisor
Posts: 54
Registered: ‎03-05-2012
Message 9 of 16 (2,528 Views)

Re: QTP 11 - Silverlight table

Hi,

 

Using the below code, it will work.

 

Browser("").Page("").SlvWindow("MainPage").SlvTabl​e("dataGrid1").SelectCell 0,"Orders"

 

set objects =  Browser("").Page("").SlvWindow("").SlvTable("dataG​rid1").GetCellChildObjects(0,"Orders")

set btn = objects(0)

btn.Click

 

Pl confirm.

 

Regards,

S. Indra

Occasional Visitor
Posts: 1
Registered: ‎10-03-2012
Message 10 of 16 (2,309 Views)

Re: QTP 11 - Unable to identify silverlight objects in qtp

Hi Everybody,

 

I've a problem, I'm unable to identify silverlight objects in QTP. It is taking the coordinates while recording and when I'm trying identify them using Object spy it is taking names as Label/link/image/Icon etc.

 

Can any body help me on this.

I'm using QTP Version 11.0

Silverlight 5.0 and installed qtp patch file QTPNET_00120.EXE

 

Thanks,

Deviprasad

Frequent Advisor
Posts: 54
Registered: ‎03-05-2012
Message 11 of 16 (2,094 Views)

Re: QTP 11 - Silverlight table

Hi Aananth,

 
Did you solve this problem. still exist just ping me. i tried its working
 
 
Regards,
Indra
Occasional Advisor
Posts: 14
Registered: ‎01-30-2013
Message 12 of 16 (1,963 Views)

Re: QTP 11 - Silverlight table

Hi Indra,

 

I have similar probelm in one of our client application. I t doesnt recognize objects inside SLVTable. But my scenario is to select a specific row and right click to get context menu, then click on specific item from context menu. Could you please help me here?

Honored Contributor
Posts: 2,861
Registered: ‎04-23-2008
Message 13 of 16 (1,943 Views)

Re: QTP 11 - Silverlight table

support for SLVTable has been added in one of the patch....pls get an update from HP portal.

 

ask for 

 QTPSilverLightActivateColumn.zip 
Visitor
Posts: 2
Registered: ‎01-31-2013
Message 14 of 16 (1,906 Views)

Re: QTP 11 - Silverlight table

Hi Indra,

 

I am not able to identify any Slv Dialog by using QTP11 . Application is in silverlight 4.0. Other silver light objects are smoothly identifed by QTP.

 

Kindly let me know if yoy have any solution to identify Slv Dialog object.

 

 

Thanks !

 

Tilo

Occasional Visitor
Posts: 1
Registered: ‎05-29-2013
Message 15 of 16 (1,661 Views)

Re: QTP 11 - Silverlight table

Hi ,

 

I have also a simailar kind of issue in slvtable checkboxes and radio button, it was recognizing the slv table and unable to get the child objects inside a specified table cell by using GetCellChildObjects method ..

 

Kindly help for the same .. Thanks..

Occasional Visitor
Posts: 1
Registered: ‎02-18-2014
Message 16 of 16 (1,163 Views)

Re: QTP 11 - Silverlight table

Hi guys,

 

I have a similar problem. I have a slv table I need to verify the cell contents and the content format of the table and compare it after I export it to an excel sheet. QTP only goes up to the table level...I tried the codes above ...but to no avail. All in all, I need the values in the cells for the comparison.

 

the attachment is a screenshot of the table

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.