Selenium components for Coded UI Cross Browser Testing


Selenium components for Coded UI Cross Browser Testing

(14) Review
Visual Studio
2013, 2012
Download (27,167)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (14)
Q and A (157)
Sign in to write a review
Sort by:

by MonsoonMally | February 02 2015

Quite a useful tool, when it's fully functional.

But it seems many small changes - anywhere in the test-environment - can lead to failures.

And it's never good when you spend more time ensuring the test-environment itslef is stable, than you do testing the item you are intending to test.

by Chandrasekhar Kothamsu | January 27 2015

Every time facing issue with the Chrome latest browser. i feel Microsoft should update its cross browser dll's up to date with the Chrome version.

All our tests were blocked , no proper response from the Moderators when we put our query.

by uykryuk | November 14 2014

by BKK9 | October 21 2014

Latest browsers should be supported, this is making hard for cross browser testing.

by Mike Kaufmann | October 06 2014

Mozilla stopped working with latest update (v32.0.3)
Can you please provide an update?

by Ahsan Mumtaz | September 30 2014

I think you need you give the official support once in a quarter or at-least once in a half yearly. Last update was on January 2014. Browsers are upgrading rapidly, and I want to use the CodedUI to the cross browser test, i need some confidence that it should support on current available cross browsers.

by Srikar Garrepally | September 02 2014

complete information not provided regarding pre-requisites and after installing .msi file already chrome driver exists in the specified folder

by Jian_H | December 23 2013

by tiny apps | October 31 2013

Hi this seems to be a nice replacement for the Feature pack2 back in Vs2010 which just support Firefox 3.6 but this is great start to playback CUIT stuff against WebDrive whihc i think eliminates the burning issues open Desktop session

by Oleg Pantsjoha | May 24 2013

Great add on to Coded UI Testing framework, but unfortunately it seems there are still a lot of issues surrounding it, and lack of support is not helping. Some issue and confusion I've spotted from other users while browsing for solutions with my own issues is with simple installation of the product. Additionally, the version support for different browser is all over the place. I understand that it is also down to individual browser suppliers but i believe issue like those should be dealt prior to release of any product. Overall still a great add on, just requires attention to above issue in order to get 5 stars from users. Looking forward to next update.

by JoeH250 | April 30 2013

You really might want to point folks to a sample or two about making use of this functionality. Without some kind of working example that customers can work with, it's really not going to gain any traction.

For those curious about being able to swap between browsers at will, it turns out you need to set an environment variable in order to do that. I found some now out-of-date material at that has a bit of detail on that.

Overall, this is an improvement over being able to run only on IE, but the amount of work that is needed to do so can be time consuming. For example - if you have anything dynamic on your pages (say, part of the window title changes based on a previous action), you're not going to have a great deal of luck using this.

Also, having to code your own "WaitForAjax" solution is a big hurdle to clear.

Based on what I see so far, my team will be staying with our current Selenium WebDriver framework. We have more control over flow, control detection and selection, and dynamic content handling than CUI has.

Fantastic tool!!!

by Marc Velasco | January 10 2013

Have this working with IE, FireFox, and Chrome browsers on a product using a javascript framework. Depending on your application you might need to spend some time creating a good set of search criteria that gives good performance and reliably finds objects across browsers, in my case many of my properties were dynamic across different builds, sessions, and browser because of the javascript framework being used, but we got it working with some experimentation.

by Nathan.Grant | November 30 2012

Install wouldn't work on my Machine - claimed I didn't have Visual Studio 2012 installed but I have legit Ultimate 2012 + the update running. Had to use manual steps.

Sign in to start a discussion

  • Best Way to Launch the Driver
    3 Posts | Last post Thu 8:59 AM
    • I have recently started using the Selenium WebDriver and ChromeDriver to run my C# CodedUI tests on FireFox and Chrome.  While reviewing examples/videos online I noticed that people seem to launch the browser in 1 of 2 different way.  I am curious which is considered the correct way of launching the browsers (I have questions about each approach).
      Option 1:  When I use this option the chromedriver.exe launches and my tests are able to click on the Search button.  If I continue with this method how will I use ChromeOptions?  For example I need to be able to maximize the window.  Additionally how can I force the chrome driver to quit?
      BrowserWindow.CurrentBrowser = "chrome"
      Option 2:  When I use this method the chromedriver.exe launches, but the test fails to click on the Search button (which is strange because that code did not change).  It appears that the test cannot find the window.
      ChromeDriver chromeDriver = new ChromeDriver(@"C:\Program Files (x86)\Common Files\microsoft shared\VSTT\Cross Browser Selenium Components\");
      So what is different about launching the driver in Option 1 and Option 2?  Does anyone currently use either option, or do they have an alternate way of launching the driver?
      Visual Studio 2013
      Automation Framework written in C#
      Selenium Web Driver 2.45.0
      Chrome Driver 2.10
    • Hello Team,
      I am running coded ui test in Chrome...But i am launching browser using selenium webdriver in chrome in then for detecting one of the html table written code as below but it is returning result as null ans sometime giving exception as ...can not locate browser winodw ...window name is not specified
                      BrowserWindow.CurrentBrowser = "chrome";
                      BrowserWindow browser = new BrowserWindow();
                      UITestControl uiChgUrl = new UITestControl(browser);
                      uiChgUrl.TechnologyName = "MSAA";
                      uiChgUrl.SearchProperties.Add("ControlType", "Client");
                      uiChgUrl.SearchProperties.Add("Id", "ctl00_ctl00_ContentPlaceHolder_ContentPlaceHolder_ReturnGridView_DXMainTable");
                      HtmlTable table = new HtmlTable(browser);
                      table.SearchProperties.Add("Id", "ctl00_ctl00_ContentPlaceHolder_ContentPlaceHolder_ReturnGridView_DXMainTable");
                      UITestControlCollection col1 = uiChgUrl.FindMatchingControls();
                      UITestControlCollection col = table.FindMatchingControls();
      Again my question is ...when we identify the control using assertion i.e. coded ui builder chrome is not identifying anyhow....
      is there any difference in search property in chrome and IE ....because for same table IE it is giving control type htmltable and technology name Web but in chrome is not detecting that table and only identifying whole chrome frame and ..showing technology name as 'MSAA' and control type as 'Client'
      Please help me ...
    • I have already installed selenium component msi ...and moved all binaries to VSTT and chromedriver as well but no luck 
  • Getting non suported html attributes
    2 Posts | Last post May 18, 2015
    • Hi, I have an HtmlCell from which I need to extract some attributes like "aria-describedby" and in Chrome browser I can't get the ControlDefinition method. I know that a possibly way could be with the BrowserWindow.ExecuteScript() API, but when I run a simple javascript I get the following error:
      "Microsoft.VisualStudio.TestTools.UITest.Extension.UITestJScriptExecutionException: stale element reference: element is not attached to the page document
        (Session info: chrome=42.0.2311.135)
        (Driver info: chromedriver=2.8.241075,platform=Windows NT 6.3 x86_64)"
      For example if I run this line of code:
      " HtmlFrame frame = (HtmlFrame)BrowserWindow.ExecuteScript("return document.getElementsByTagName('frame')[1];");"
      It will work fine, returning a correct HtmlFrame but when I try to search for another inside frame like:
      "HtmlFrame frame2 = (HtmlFrame)Browser.browser.ExecuteScript("return document.getElementsByTagName('frame')[1].contentWindow.document.getElementsByTagName('frame')[1];");"
      ,than the above message error will apear.
      Can anyone help me with this problem?
    • I note that the problem its related with the frames and if I could switch to a wanted frame I can get the element's attributes with ExecuteScript(). My question is: how can I switch between frames in coded ui?
  • Support for HtmlControl.ControlDefinition?
    3 Posts | Last post May 12, 2015
    • Hi, first of all, great work! When this works, it is fast and reliable. Thank you!
      On to the problem I'm having: I'm using VS 2012 Update 4 the latest Selenium components (1/31/2014).
      I'm running into scenarios in my testing that requires we look at the ControlDefinition for an attribute (such as style) to determine visibility of the control. Use of ControlDefinition works fine in IE but for Chrome/Firefox I get an error.
      Running in IE: Works fine.
      Running in Chrome or FireFox:
      Exception: System.NotSupportedException:GetProperty of "ControlDefinition" is not supported on control type: Label ---> System.NotImplmentedException: The method or operation is not implemented.
      Any plans to have this implemented?
      GetProperty("style") doesn't appear to work in any (in this case off a HtmlImage). I'm actually surprised this isn't a property available to all HtmlControls yet. 
    • Hi, 
        Last week I faced the same issue and finally fixed it by using JS to 
        In VS2012, there opened a method named 'ExecuteScript' for 
        BrowserWindow,So we can do as following:
         Note: Assume the variable name of control you want to get property as: 
               LoadingPanel and the loading panel was in BrowserWindow variable: 
         Object ControlDefinition=browserWindow.ExecuteScript("return arguments[0].outerHTML", LoadingPanel);
      Hope it can help you.
    • Hello,
      I am also having the same issue as PaulF.
      I recently started looking into using the selenium and chrome drivers with Visual Studio 2013 to perform cross browser testing on my CodedUI Tests.  I have already installed the drivers and added references to my projects, and for the most part they are working great.  I am, however, running into an issue when validating a control by the ControlDefinition property (this works perfectly fine in IE).
      Error Message:    
      Test method MunisGenero.CQC_UITests.TestFolder.CampbellTest.ZZ_CampbellTest threw exception: 
      System.NotSupportedException: GetProperty of "ControlDefinition" is not supported on control type: Window ---> System.NotImplementedException: The method or operation is not implemented.
      Has anyone been able to use Control Definition (with C#).
      My setup:
      Visual Studio 2013
      Automation Framework written in C#
      Selenium Web Driver 2.45.0
      Chrome Driver 2.10
  • What versions of Firefox are supported?
    15 Posts | Last post May 08, 2015
    • Hi, do you still only support firefox 33, or will these tests run on newer versions? We are having issues as firefox keeps updating (even though we have removed the auto-update option), with the result that the tests stops running on firefox. (nothing happens, the test-runner keeps running for a long while giving no error messages, until timing out.  Can you guys tell me what version of firefox you have the tests running in?
    • Please read the description and update your binaries as mentioned in those steps. 
      If latest Selenium binaries support Firefox latest, then it should work. 
    • Hi, 
      I have read the description and have the latest binaries.  Can anyone tell me what versions of firefox you have working with your Coded UI's?
    • Hi Kjerstir,
      I've just tried a very simple launch and navigate with the latest selenium binaries (2.45) and latest firefox(37.0.1) which works. What is failing for you?
      - Abhitej
    • Hi Abhitej, and thanks for the response.  I found the latest selenium binaries (from here: ) .  I am now running the latest selenium binaries (2.45) and latest firefox(37.0.1).  Chrome and IE runs ok, but when I get to firefox, I get this error:
      Object reference not set to an instance of an object.
      at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowserProxy.ProxyFirefoxDriver+<>c__DisplayClass54.<.ctor>b__52()
      at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowserProxy.FuncInvoker.InvokeMethod(Func`1 function)
      at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowserProxy.ProxyFirefoxDriver..ctor(ProxyFirefoxProfile profile)
      at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.BrowserServices.FirefoxBrowserService.InitializeWebDriver(String[] args)
      at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.<.cctor>b__1(String[] args)
      at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.Launch(Uri uri)
      at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserFactory.Launch(Uri uri)
      at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.LaunchPrivate(Uri uri)
      at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow+<>c__DisplayClass3d.<Launch>b__3c()
      at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod(Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
      at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.Launch(Uri uri)
      at Systemtest1.UIMap.OpenBrowser()
      - Kjersti
    • Did you make sure that there are no instances of Firefox open before the run? This also sometimes has to do with issues in setting up a profile. Can you please reinstall firefox and try? 
      - Abhitej
    • Good morning Abhitej,
      No instances of firefox was running.  I tried reinstalling firefox and ran the tests, got the same error message as above.
      Kind regards,
    • From where to download  The link has only which throwing error like "System.IO.FileLoadException: A strongly-named assembly is required...."
    • Hi, you can get it here:
    • Thanks.  I downloaded and copied the content in net40 folder to "....\Cross Browser Selenium Components" folder.  But still i am getting error.  Firefox getting launched and nothing happens after that.  The test case fails with error "....Failed to start up socket within 45000 ms. Attempted to connect to the following addresses:".
      My Firefox version is 35.0
    • Hi KjerstiR,
      Please refer to following for diagnosing your issue
      If you are still not able to resolve your issue, I would really appreciate if you could share some project to reproduce the issue. Please do share your system and vs info.
    • Hi rDevakumar, 
      It works after following the steps mentioned. Please try moving to latest version of firefox.
    • Thanks. But looks like something else is wrong with my PC.  Even after following all the steps, upgrading Firefox to version 37, i am getting the same error...
    • DevaKumar,
      Is chrome working? Can you try debugging the test to see if the right set of assemblies are being picked up? Were you able to repro this in another environment?
      - Abhitej.
    • The same solution works fine in Chrome and IE.  I haven't' got a chance to check this in other machine.  Will try to get that done and update. The following are assemblies referred in the project.
  • CUIT is not able to perform actions after handling alert dialogs in Chrome
    4 Posts | Last post May 05, 2015
    • After handling the alert dialog in Chrome, CUIT is failing to perform next action on the application. It is throwing following exception: "unexpected alert open (Session info: chrome=39.0.2171.95) (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)".
      This behaviour is observed in VS2012 with Update4 and VS2013RTM and VS2013 Update 4.
    • This is a known issue with Selenium and we are working on getting selenium to provide a fix.
      Can you try sending {Esc} keys to dismiss the dialog and then act on the page?
    • This issue resolved? I'm going through it.
      I try sending {Esc} keys to dismiss the dialog and then act on the page, but the result was the same.
    • Arthur,
      Is the dialog actually getting dismissed? Does javascript help? 
      - Abhitej.
  • Link to download Chrome (version 38.0.2125.111 m)
    2 Posts | Last post May 05, 2015
    • Hi Prachi,
      Please provide a url where  I can download the Chrome version 38.0.2125.111 m for Coded UI Cross browser testing.
      I've searched it on Google, but no luck.
      On i tried and i got a link representing the 33.0.2125.x download but when downloaded and installed it was latest version.
      So kindly provide the exact link.
      Thanking you in advance.
    • Srinidhi,
      Are you facing any issues with testing on the latest chrome browser with your current bits? Have you tried updating the chromedriver.exe at "%ProgramFiles(x86)%/Common Files/Microsoft Shared/VSTT/Cross Browser Selenium Components". You can get the latest from: You might want to update dotnet components as well. 
      - Abhitej.
  • Link to download Chrome (version 38.0.2125.111 m)
    1 Posts | Last post May 04, 2015
    • Hi Prachi,
      Please provide a url where  I can download the Chrome version 38.0.2125.111 m for Coded UI Cross browser testing.
      I've searched it on Google, but no luck.
      On i tried and i got a link representing the 33.0.2125.x download but when downloaded and installed it was latest version.
      So kindly provide the exact link.
      Thanking you in advance.
  • Frames support in Chrome
    4 Posts | Last post April 10, 2015
    • We have a coded ui test that can be played in IE with out problems. Now we  want to play it in Chrome as well.
      Cross browser test execution is set up and test can be executed in Chrome. Although as soon as any action on a frame has to be done (e.g. clicking on a hyperlink located inside the frame) test is failing with an error message:
      An exception of type 'OpenQA.Selenium.StaleElementReferenceException' occurred in WebDriver.dll but was not handled in user code
      Additional information: stale element reference: element is not attached to the page document
        (Session info: chrome=41.0.2272.118)
        (Driver info: chromedriver=2.8.241075,platform=Windows NT 6.1 SP1 x86_64)
      It looks like cross browser execution does not support accessing frames from the test. Is it a known issue? Is there a work around for this?
    • Guys, is anyone running Coded UI in Chrome on UI build with the help of frames?
    • Olena,
      We do support playback on frames. What VS version are you on? Can you also point us to a repro page?
      - Abhitej.
    • Hi Abhitej,
      Thank you for your reply. I have tried one more time from scratch. Recorded a simple test in IE and executed it in Chrome. No problems with accessing frames were encountered. 
      Still not clear what exactly has helped :) 
      Anyway thanks!
  • Getting error with EI when executing coded UI test with team city.
    2 Posts | Last post April 10, 2015
    • Hi All,
      I have create a simple test to browse on simple google URL. I have executed this code in debug mode, run mode and also through command prompt with MStest.exe . In all it working fine.
      Now when I try to build and execute this code through teamcity where test agent is configure on test VM i m getting error as follow:
       at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.GetPropertyValuePrivate(String propertyName)
         at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.GetPropertyPrivate(String propertyName)
         at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.GetPropertyOfType[T](String propertyName)
         at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.get_WindowHandle()
         at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.LaunchPrivate()
         at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.<Launch>b__12()
         at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
         at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.Launch()
      I am not sure why this happening .
      Because i have make sure that code is executing properly on Test VM through VSTS IDE but if open the solution build by teamcity its giving same error not sure what happening?
    • deepakP86,
      Can you please help us with the exact exception you are seeing? What browser are you running this test on?
  • Issues with Chrome
    3 Posts | Last post April 10, 2015
    • Hello, 
      I am trying to use this plugin to start my tests on chrome, in process i encountered several issues:
      - The agent process was stopped while the test was running. - this one appear randomly  sometimes same test can throw it twice then pass or other way around is there any way to have these tests more stable ?
      - StaleElementReferenceException - appears especially in debug mode, when i run my tests not in debug they work fine. Is there any way to get rid of this ? I tried:
    • .searchConfigurations.Add(SearchConfiguration.AlwaysSearch)
      adding different waits for controls or just plain Playback.wait
      (chrome v41)
    • KrzysiekQ1,
      For "the agent process was stopped" error it most probably is an exception being thrown on a separate thread. Are you spawning other threads as part of your test run?
      As you said, the AlwaysSearch configuration is the way to go to resolve the StaleElementReferenceException.
1 - 10 of 157 Items