Stian wrote:1) When developing CodedUI just using the Ranorex API through VS, how do you identify and validate elements inside, for example, a Silverlight part of the web page? At the moment I am using the Ranorex recorder and Studio to do that, but I would prefer working only through VS.
You still must use the Ranorex Spy tool to identify the items you want to interact with, including Silverlight objects.
Stian wrote:2) How do you get your tests running on all the different browsers? Do you create the test for one browser and then somehow specify for it to run on other browsers? I am trying to achieve that.
How I get them running with different browser... There are different ways to do this, I'm sure. What I have done is pass the browser type through from the command line as an argument when I run the script. A script is a compiled EXE by the way. Similiar to sdaly, I have a ScriptInfo class where I define all the parameters of my script that I can control, either by giving default values (common to all sctips), specific script values that override default values, and then also pass in args from the command line to overried those as well. I have a whole framework for handling all this stuff. It has evolved over many years (originally from another tool which I have migrated over to VS2010 and Ranorex). By default I run on IE, but I can specify the other supported browsers. In my framework, most of the code is not browser specific, so there are no issues when running on other browsers. It just works, because that is how they made Ranorex. But for some code that must do slightly different things, I have select statements on the browser type.
As an aside, the term CodedUI is a Microsoft scripting term for their way of doing things. When working with Ranorex, you simply create a "Console Application" from the New Project dialog in VS2010, and compile it into a EXE. There's info on how to do that in this forum or in support. Sorry, no time to find it for you.
Aracknid