Use of Silvernium in java for automation of Silverlight application Options

1,096 views
Skip to first unread message

sachin

unread,
Feb 8, 2012, 11:47:23 PM2/8/12
to Silverlight Selenium
Hi All,

I have a silverlight application which displays a table
containing data in the form of rows and columns. There are some
textboxes which are part of the data in the table. I want to modify
the data displayed in the table. I do have an option of doing that. I
want a way to do that using Silvernium in java.


Is it possible to do it?? Can i get an sample code of doing such
automation?

Marcelo Farias

unread,
Feb 9, 2012, 12:19:43 AM2/9/12
to silverligh...@googlegroups.com
You can do this using the Silvernium Fixtures. Unfortunately, I wrote only the .NET version of the Fixtures, but it's not too hard to transcribe them to Java.

Using the Fixtures, you can simply do something like this:

App.DataGrid('yourDataGrid').RowContaining('My Record').TextBox('yourInnerTextBox').SetText('your new value');

I would really appreciate someone is interested in making contributions to the project, since I've been away from Silverlight for months.

Regards
--
Marcelo Bukowski de Farias
marcelo...@gmail.com

sachin

unread,
Feb 9, 2012, 12:34:37 AM2/9/12
to Silverlight Selenium
I really thank you for the information. Can u please tell how can i
write Silvernium fixtures in java. Also, I have seen that there is an
XAML file and a dll file in the Silvernium compressed folder. How can
i write the code for that in java??? How can it be used to interact
with Silverlight objects ????

Reagrds,

Sachin
> marcelo.far...@gmail.com

Marcelo Farias

unread,
Feb 9, 2012, 12:46:35 AM2/9/12
to silverligh...@googlegroups.com
Well, essentially you must translate the fixtures written in in C# to Java. Please take a look at the Fixtures wiki page (http://code.google.com/p/silverlight-selenium/wiki/Fixtures) and at the source code (http://code.google.com/p/silverlight-selenium/source/browse/#svn%2Ftrunk%2Fdotnet%2FSilvernium%2FFixtures). In the wiki page you will also find information about where to place the XAML and the DLL that contains the "server-side" part of the Fixtures (essentially, a connector known by the fixtures that will wrap your application). Also, note that this "server-side" part don't need to be translated, since all the communication between it and the fixtures is made via Javascript.

I also suggest you checkout the source code, open it on Visual Studio, run the Reference Application contained in the solution and run the unit tests contained in the FixturesTests project. By doing this, you will be able to see all the implemented fixtures in action interacting with the Reference Application.


Regards
--
Marcelo Bukowski de Farias
marcelo...@gmail.com

sachin

unread,
Feb 9, 2012, 1:48:25 AM2/9/12
to Silverlight Selenium
Thanks a lot !!!! I'm going to work on that and come back to u.....

On Feb 9, 10:46 am, Marcelo Farias <marcelo.far...@gmail.com> wrote:
> Well, essentially you must translate the fixtures written in in C# to Java.
> Please take a look at the Fixtures wiki page (http://code.google.com/p/silverlight-selenium/wiki/Fixtures) and at the
> source code (http://code.google.com/p/silverlight-selenium/source/browse/#svn%2Ftr...).
> In the wiki page you will also find information about where to place the
> XAML and the DLL that contains the "server-side" part of the Fixtures
> (essentially, a connector known by the fixtures that will wrap your
> application). Also, note that this "server-side" part don't need to be
> translated, since all the communication between it and the fixtures is made
> via Javascript.
>
> I also suggest you checkout the source code, open it on Visual Studio, run
> the Reference Application contained in the solution and run the unit tests
> contained in the FixturesTests project. By doing this, you will be able to
> see all the implemented fixtures in action interacting with the Reference
> Application.
>
> Regards
> --
> Marcelo Bukowski de Farias
> marcelo.far...@gmail.com

sachin

unread,
Feb 21, 2012, 9:36:52 PM2/21/12
to Silverlight Selenium
Hey I found out that you have used some dependencies in your code...
As a result i'm unable to execute it..Can u brief me on this???

Marcelo Farias

unread,
Feb 21, 2012, 9:40:30 PM2/21/12
to silverligh...@googlegroups.com
Probably Silverlight Toolkit, available on Codeplex (http://silverlight.codeplex.com/)

--
Marcelo Bukowski de Farias
marcelo...@gmail.com

sachin

unread,
Feb 22, 2012, 11:40:41 AM2/22/12
to Silverlight Selenium
Can u tell me the version of the toolkit that you used in the code and
also the place from where I can download it????
> marcelo.far...@gmail.com

Marcelo Farias

unread,
Feb 22, 2012, 4:03:59 PM2/22/12
to silverligh...@googlegroups.com

Same version of Silverlight, in the address I already told you.

aananthy t

unread,
Jul 15, 2013, 9:34:28 AM7/15/13
to silverligh...@googlegroups.com
Hello Sachin/Marcelo,

I am going to automate the website developed in silverlight.
Give me some suggestions on how to find the control and use it via Selenium with junit code.

Ek Niranjan

unread,
Sep 3, 2013, 11:38:01 AM9/3/13
to silverligh...@googlegroups.com
Hi Sachin,

can you please tell if you were able to automate SilverLight app using Java?

Thanks

PRADEEP KUMAR

unread,
Jun 2, 2014, 2:11:59 AM6/2/14
to silverligh...@googlegroups.com
Hi , Can  you please let me know how can i upload a file using selenium on a silverlight app.

Shubhangi Birari

unread,
May 25, 2015, 1:03:38 AM5/25/15
to silverligh...@googlegroups.com
Hi Sachin,
We have to automate the web application developed in silverlight.
How to find the Silverlight objects and use it via Selenium ?
Message has been deleted

Lenin Christopher

unread,
Nov 16, 2015, 5:09:47 AM11/16/15
to Silverlight Selenium
Hi Marcelo Bukowski de Farias,
is there any possibility of automating silver light application using selenium? is any fixtures updated as of 2015.

Regards
Lenin Christopher
Reply all
Reply to author
Forward
0 new messages