Re: QTP 11 - Silverlight table (1245 Views)
Reply
Advisor
Aananth
Posts: 28
Registered: ‎12-15-2009
Message 1 of 16 (2,267 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

Please use plain text.
Frequent Advisor
indiranis
Posts: 54
Registered: ‎03-05-2012
Message 2 of 16 (2,255 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

 

 

Please use plain text.
Advisor
Aananth
Posts: 28
Registered: ‎12-15-2009
Message 3 of 16 (2,237 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

Please use plain text.
Frequent Advisor
indiranis
Posts: 54
Registered: ‎03-05-2012
Message 4 of 16 (2,231 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

Please use plain text.
Advisor
Aananth
Posts: 28
Registered: ‎12-15-2009
Message 5 of 16 (2,223 Views)

Re: QTP 11 - Silverlight table

Hi Indra,

 

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

 

Please use plain text.
Frequent Advisor
indiranis
Posts: 54
Registered: ‎03-05-2012
Message 6 of 16 (2,215 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

Please use plain text.
Advisor
Aananth
Posts: 28
Registered: ‎12-15-2009
Message 7 of 16 (2,199 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!!

Please use plain text.
Occasional Advisor
deepananjundasw
Posts: 14
Registered: ‎03-16-2012
Message 8 of 16 (2,137 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...

Please use plain text.
Frequent Advisor
indiranis
Posts: 54
Registered: ‎03-05-2012
Message 9 of 16 (2,112 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

Please use plain text.
Occasional Visitor
deviprasadraj
Posts: 1
Registered: ‎10-03-2012
Message 10 of 16 (1,893 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

Please use plain text.
Frequent Advisor
indiranis
Posts: 54
Registered: ‎03-05-2012
Message 11 of 16 (1,678 Views)

Re: QTP 11 - Silverlight table

Hi Aananth,

 
Did you solve this problem. still exist just ping me. i tried its working
 
 
Regards,
Indra
Please use plain text.
Occasional Advisor
Banari
Posts: 12
Registered: ‎01-30-2013
Message 12 of 16 (1,547 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?

Please use plain text.
Honored Contributor
shiv_p
Posts: 2,841
Registered: ‎04-23-2008
Message 13 of 16 (1,527 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 
Please use plain text.
Visitor
Tilo
Posts: 2
Registered: ‎01-31-2013
Message 14 of 16 (1,490 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

Please use plain text.
Occasional Visitor
sekhar_Bandi
Posts: 1
Registered: ‎05-29-2013
Message 15 of 16 (1,245 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..

Please use plain text.
Occasional Visitor
ramiz_m
Posts: 1
Registered: ‎02-18-2014
Message 16 of 16 (747 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

Please use plain text.
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