Automate Silverlight Application using selenium

2,667 views
Skip to first unread message

Shanmugavel. C

unread,
Sep 14, 2011, 5:28:56 AM9/14/11
to seleniu...@googlegroups.com
Hi all,

How to automate Silverlight Application using selenium?

I came to know some jar files Silvernium and Silvernium Fixtures are supporting silverlight application. But I understood something like 
If we want to automate silverlight app using selenium, we have to expose the silverlight web app code as [Scriptable] ie. we have to expose the methods and have to write extra methods for each control in web app to simulate the controls from selenium.

I don't know, this is correct or not? If anybody know any info, please share with me...

If so, like its mandatory to write generic functions(set / get for each control in app) which are used to simulate actions via JavaScript. 
In this way, if a product based company willing to automate then they will add extra functions(used for automation) as part of code while developing the application. The same scenario we can't expect from third party projects. 

No one clients will modify the applications code to support automation for the purpose of testing. Also we should not ask the same from client side. Already they are coming to reduce the testing time(in means of automation testing), so how they will modify their code which is part of development activities...

What you guys thinking about this? or I am wrong?
Any other considerations to automate Silverlight apps without writing extra functions and exposing them to access from Scripts?


Thanks... 

SiKing

unread,
Sep 14, 2011, 11:29:05 AM9/14/11
to Selenium Users
Selenium is a framework that allows you to access only elements that
are exposed in the DOM; see: http://en.wikipedia.org/wiki/Document_Object_Model
It has always been that and nothing more. No idea if this will change
in the future.
Silverlight, or Flash, or Java applets, or any other technology that
is generally unfriendly towards the web, that does not expose anything
in the DOM cannot be accessed using Selenium, because Selenium simply
cannot 'see" it. If you must use Selenium to automate these, you will
need to compile things into BOTH that will allow the two to interact.
If this is not possible (for whatever reason), you will need to select
a different tool.


On Sep 14, 2:28 am, "Shanmugavel. C" <scs...@gmail.com> wrote:
> Hi all,
>
> How to automate Silverlight Application using selenium?
>
> I came to know some jar files *Silvernium and Silvernium Fixtures* are

Deepa

unread,
Sep 19, 2011, 6:12:57 AM9/19/11
to Selenium Users
Hi All & Shanmugavel,
I am also looking for an add-on of Selenium to automate SilverLight
application. Please let me also know if you find any solution for
this. My application is using Silverlight 4.
Is Silvenium supports Silverlight 4 ?

Any one, please share your experiences in automating silverlight
applications using selenium.

Thanks & Regards
Deepa

On Sep 14, 2:28 pm, "Shanmugavel. C" <scs...@gmail.com> wrote:
> Hi all,
>
> How to automate Silverlight Application using selenium?
>
> I came to know some jar files *Silvernium and Silvernium Fixtures* are

MArk B.

unread,
Dec 1, 2011, 1:08:30 PM12/1/11
to seleniu...@googlegroups.com
There is an thing, and add-on, tool, accessory that helps with testing silverlight using selenium.

I've actually had it working and have run through the unit tests for the project. It's called Silvernium.

http://groups.google.com/group/silverlight-selenium

It's not working for me right now. I believe it has something to do with some security software that has been installed on my work PC over the past couple of weeks. That's what brings me here this time.

Avikash Gorka

unread,
Dec 2, 2011, 11:05:28 AM12/2/11
to seleniu...@googlegroups.com
We can use Microsoft's UI Automation Framework for automating Silverlight application.


Thanks & Regards,

Avikash Gorka




--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/Gtn11sKuvkUJ.

To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.

sai kiran nukala

unread,
Sep 6, 2012, 6:55:19 AM9/6/12
to seleniu...@googlegroups.com
Have a look at this topic - That will be your starting point.

https://groups.google.com/forum/?fromgroups=#!topic/silverlight-selenium/VIDLVdzIIrk 

On Thursday, 6 September 2012 15:07:53 UTC+5:30, Parasu Raman wrote:
Hi Mark,
   Am trying to get solution to automate silverlight application using silverlight-selenium that is mentioned in  http://groups.google.com/group/silverlight-selenium , but am not able to get any clear view about that. Can u please help me to do this. How to modify source to interact with selenium? etc..

Thanks

Parasu Raman

unread,
Sep 6, 2012, 7:03:52 AM9/6/12
to seleniu...@googlegroups.com
Hi Sai kiran,

Thanks for your quick reply. I will go through it. 
Reply all
Reply to author
Forward
0 new messages