Selenium components for Coded UI Cross Browser Testing

Free

Selenium components for Coded UI Cross Browser Testing

(14) Review
Visual Studio
2013, 2012
Download (28,422)
5/19/2015
1.5
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (14)
Q and A (162)
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 http://msdn.microsoft.com/en-us/library/jj835758.aspx 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


  • How are Dialog popups handled in Coded UI for Cross Browser Testing?
    1 Posts | Last post June 18, 2015
    • Executing the code works fine with Coded UI on IE,
      
      browser.PerformDialogAction(BrowserDialogAction.Cancel);
      
      FYI: browser is of type BrowserWindow
      
      However when setting the BrowserWindow.CurrentBrowser to Chrome or Firefox, the above code fails  to locate the Dialog window.
      
      How are Dialog windows handled in Coded UI for Cross Browser Testing?
      
      Appreciate any pointers to resolve this. Thanks in advance!
      
  • Not able to execute my coded ui tests using Firefox
    1 Posts | Last post June 08, 2015
    • Hi 
      I am trying to execute Coded ui tests in firefox. I am getting Below error.
      
      I am using Windows 7, Firefox30, Selenium String named 2.43.1
      Go to web page 'https://www.example.com' using new instance of 'Firefox' browser.0:00.186
       
      An error occurred while connecting to Firefox
      Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException
      at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.Utility.MapAndReThrow(Exception exception)
      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 CodedUITestProject1.CodedUITest1.CodedUITestMethod1()
      in c:\Users\fxp8yd5\Documents\Visual Studio 2012\Projects\CodedUITestProject1\CodedUITestProject1\CodedUITest1.cs:line 32
      Test method threw exception: 
      Uri to navigate : ''https://www.example.com''
      
      
      Thanks
      Sriram
  • Firefox and Chrome Issue
    1 Posts | Last post June 04, 2015
    • Hi,
      
      I am trying to run a test with Selenium 2.45 components on Firefox(FF) 38 and Chrome 43. I am having the below issue for authentication popup
      Result Message:	The HTTP request to the remote WebDriver server for URL http://localhost:23339/session/233291d13ffebd9e760d8b56a6d8acd4/window_handle timed out after 60 seconds.
      
      I have tried with 180 sec of delay by loading new FF profiles but have same issue.
      
      Can someone please help on issue?
      
      I am not able to run my scripts on these browsers. They are working fine in IE.
  • Element not scrolled to view
    1 Posts | Last post June 02, 2015
    • Hello again,
      
      My shopping cart is in the header of the page. when I order a lot of items, the cart goes out of view. When I replay the test in Chrome, I get "element not visible" exception. Works if I use a {PGUP} option. But that means additional step for all my tests. 
      
      Is there a way to make the tool realize that it is on the same page.
        
  • Toggle menu selection works on IE but not on chrome
    3 Posts | Last post June 02, 2015
    • Hi,
      
      Wondering if you can help with this one. I have a navigation menu. Each of them have pull down menu items. I hover over or click the down arrow on one of the navigation menu items. All the sub-menu items are visible in a list. In IE, my automated test clicks on the arrow and selects a sub-menu item from the list.
      
      But I replay the test in Chrome, my test clicks on the arrow, the sub-menu appears and then disappears immediately.
      
      Just wondering what is causing this difference between browsers. How to automate this on Chrome and Firefox.
      
      
      
      
    • Hello,
      I had a similar experience once before and I found that this was actually happening because both a hover and click were happening (I didn't realize the menu was opening when the mouse hovered over the drop down menu to get to the arrow). So essentially when attempting to click the arrow a hover would occur first and open the menu, and then the click would occur on the arrow, essentially closing this drop down.  This did not happen every time (so it must have been some sort of timing issue).  To resolve it i just used the hover method instead of the click.   Probably not the same issue for you, but something you could look at I guess?  Remove the click and just use hover and see if that works in chrome and IE?  Good luck. 
    • Thank you, DaveDoesQA.
      
      The same thing has been working since. I did not make any modifications.
      Will let you know if this happens again.
      
  • Books/blogs/resources explaining design patterns for cross browser testing projects
    2 Posts | Last post May 28, 2015
    • 
      Does anyone know a good book/blog/resource explaining design patterns for cross browser testing projects?
      
      We currently have a CUITs project with over 100 tests all setup and running on IE. And there were a lot of problems when using 'Selenium components for Coded UI' and required a lot of re-factoring of the UI Map, Playback settings, Test steps(as control aren't recognized) etc. to have even few tests run smoothly on chrome & firefox. Plus since our clients always use the latest version of Chrome and Firefox the framework isn't up-to-date to support the newest versions. Hence, continuing the way we're doing right now it looks like we'll end up with bulky test code which will soon be nightmare to maintain as we add more tests to the project.
      
      It would be good to know what are the best practices in terms of managing/isolating tests so it involves less re-factoring and smooth integration between tests for various browser.
      
      How are you guys managing code-base as its gets larger?
      
    • This is kind of an old post, but if you ever found anything please share it!
  • CUIT is not able to perform actions after handling alert dialogs in Chrome
    5 Posts | Last post May 27, 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.
    • I sent { ENTER } to close the dialog box , which is really a dialog box confirm/alert executed with javascript , but the CUIT is not able to any perform action after handling alert dialogs, it is like if the alert was still open .
      
      The same behavior Occurs with Firefox, but the error is different , see:
      
      System.InvalidOperationException: [JavaScript Error: "a is null"(...)
      
      Chrome in the error is:
      unexpected alert open (Session info:"(...)
      
      Please help me =)
  • Best Way to Launch the Driver
    3 Posts | Last post May 21, 2015
    • 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"
      BrowserWindow.Launch("http://myWebsite.com")
      
      CODE TO CLICK ON SEARCH BUTTON
      
      
      
      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\");
      chromeDriver.Navigate().GoToUrl(http://myWebsite.com);
      
      CODE TO CLICK ON SEARCH BUTTON
      
      
      
      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?
      
      Thanks,
      
      Dave
      
      
      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");
                    
      
                      control.Find();
                      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 ....in chrome ...it is not identifying anyhow....
      is there any difference in search property in chrome and IE ....because for same table ...in IE it is giving control type htmltable and technology name Web but in chrome ..it 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?
      
      Thanks!
    • 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?
      
      Thanks 
  • 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. 
      
      Cheers!
    • Hi, 
        Last week I faced the same issue and finally fixed it by using JS to 
        retrieve.
        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: 
               browserWindow.
             
         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
      
      Thanks,
      Dave
       
1 - 10 of 162 Items