How to check "non-existance" of a SilverLight Element

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
thangavel
Posts: 50
Joined: Tue Jun 09, 2009 6:48 am
Contact:

How to check "non-existance" of a SilverLight Element

Post by thangavel » Mon Jun 29, 2009 8:27 am

hi,

In our web application. SilverLight componants are displaying. I need to check a specific SilverLight componant whether it is not existing/existing.

1) I need to check that the specific SL componant should not exist for some functionality.
2) I need to check that the specific SL componant should exist for some other functionality.
Regards,
Thangavel.S

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to check "non-existance" of a SilverLight Element

Post by Support Team » Tue Jun 30, 2009 4:13 pm

Hi,

try the 'Find' method to find this component. You will be returned the list af all elements which exist.If the 'Count' property of the returned list is 0 then your element does not exist.

Regards,
Mhosen
Ranorex Support Team
.
Image

thangavel
Posts: 50
Joined: Tue Jun 09, 2009 6:48 am
Contact:

Re: How to check "non-existance" of a SilverLight Element

Post by thangavel » Wed Aug 12, 2009 7:24 am

Thanks,

I used Find method to check non-existance of SilverLight object. It's worked out.
Regards,
Thangavel.S