Selenium components for Coded UI Cross Browser Testing


Selenium components for Coded UI Cross Browser Testing

(14) Review
Visual Studio
2013, 2012
Download (25,259)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (14)
Q and A (149)
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

  • Browser closing
    1 Posts | Last post 3:51 PM
    • Would it be possible for this product to honor the CloseOnPlaybackCleanup property of the BrowserWindow object and not close the browser after each test is completed?
  • Keyboard.SendKeys vs Control.Text = "Value"
    2 Posts | Last post 12:16 PM
    • Out of the two
      1. Keyboard.SendKeys 
      2. Control.Text = "Value"
      Which is better for entering value in a simple HTML text filed.  In most of the case both are working, but i came across few times where Control.Text = "Value" fails with error message like below.
      "... threw exception:  
      Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException: Cannot perform 'SetProperty of Text with value "A..." on the control. Additional Details: 
      TechnologyName:  'Web'
      ControlType:  'Edit'
      TagName:  'INPUT'
      Id:  'xxxxx'
      Name:  'xxxxx'
    • Depends on the control.
      Keyboard.SendKeys emulates actual low-level keyboard typing. This might be required when the text control has some javascript events linked to it - which can only be invoked when someone types the letters. 
      On the other hand, .Text is programmatic setting of value and it depends on the control. Some controls might be defined in such a way that they do not support "setting" of value. 
  • Multiple UI Maps and cross browser testing
    5 Posts | Last post 12:13 PM
    • Hi, 
      I get the exception 'stale element reference: element is not attached to the page document
        (Session info: chrome=39.0.2171.71)
        (Driver info: chromedriver=2.8.241075,platform=Windows NT 6.3 x86_64)'
      I feel this is due to the usage of multiple UIMaps. Each time I use a method which is in a different UIMap, I get this exception.
      I have tried the following - 
      1) Adding wait.
      2) Browser refresh. Is browser refresh supported on non-IE browsers? 
      Please suggest a solution for this. 
      Thank you.
    • This usually happens when the control cached by the test is stale. Try adding this to the "Control" object that is throwing above error:
      This ensures that CodedUITest will always search for the control instead of using the one in cache.
    • Hi,
      I have this problem too and I can not solve it.
      Do you have an alternate solution?
      Why is this happening?
    • I tried to understand what's going on. And what I saw was that the problem probably it's :
      when changed the title to the browser after logging and it seems that he can not access the browser but he find it (its properties was updated the url )
      It seems that when he changed the title is not recognizing that it's the same process
      Direct access to the browser object of bringing null reference exception
      Approach that does not directly - bringing fall above stale element
      I have tried the following - 
      1) Adding wait.
      2) Browser refresh. 
      3) Browser.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
      4) Browser.locate..
      and nothing!!
      could you please help me to solve this issue ?
    • Can you try getting the element using "JavaScript execution" i.e. BrowserWindow.ExecuteScript and fetching the element?
  • XML Data driven test - why two entries for a single test?
    3 Posts | Last post 11:54 AM
    • I am using the below XML, and Test attribute.  When I run the test using IDE, I am seeing two results in the test explorer window.  When I create an Order test I am seeing the result count is doubled.  My test data is such that only one data per test case will come from XML.
      <?xml version="1.0" encoding="utf-8" ?>
      [DataSource("Microsoft.VisualStudio.TestTools.DataSource.XML", "|DataDirectory|\\TestData01.xml", "acc1", DataAccessMethod.Sequential),
                DeploymentItem("TestData01.xml"), TestMethod]
      In the code, I am using the below to get the login id for the given test case: TestContext.DataRow["loginID"]
    • This is how the result output in the test explorer window:
      Test Name:	CodedUITestMethod_XML
      Test FullName:	DataDrivenTestingSample.CodedUITest1.CodedUITestMethod_XML
      Test Source:	d:\MyMedia\eLearning\DotNet\CodeExamples\DataDrivenTestingSample\DataDrivenTestingSample\CodedUITest1.cs : line 28
      Test Outcome:	Passed
      Test Duration:	0:00:17.7147012
      Result1 Name:	CodedUITestMethod_XML
      Result1 Outcome:	Passed
      Result1 Duration:	0:00:08.9318932
      Result1 Message:
      Result1 StackTrace:
      Result2 Name:	CodedUITestMethod_XML (Data Row 0)
      Result2 Outcome:	Passed
      Result2 Duration:	0:00:08.782808
      Result2 Message:
      Result2 StackTrace:
    • Hi, 
      This is by design. First Row shows the overall status of the Ordered tests. if there is more than one test in the Ordered test list, then the first entry shows the overall information of all the tests. 
      From second entry onwards, it shows the data of each individual tests.
  • What versions of Firefox are supported?
    2 Posts | Last post 11:42 AM
    • 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. 
  • Consider space in inner text of Assert in cross browser playback
    6 Posts | Last post Tue 8:05 PM
    • Hi 
      I use MTM 2013, and I have a problem with Assert in cross browser playback.
      Inner text of assert in  IE save without any space, while in chrome or Firefox consider all space in inner text. because of this , all of test in cross browser playback has failed.
      could you please help me to solve this issue ?
    • Hi Farinaz
      You can update your code to try a .Contains assertion instead of a .Equals.
    • Hi Srishti 
      thanks for you're replay 
      .Contains does not work too, because this method say: string A contains String B,but string A does not have  exactly string B 
      forexample: A[9]= "a b c d e" , B[2]="ab"
      A dose not have B , "a b" is different from "ab"
    • Hi Farinaz,
      Values of "InnerText" are not really controlled by CodedUITest. This can vary from browser to browser - depending upon how those browsers handle those controls. 
      Also, "innerText" is not a W3C compliant property. Mozilla supports W3C compatible properties only. Use "textContext" or "innerHTML" (you can use CUIT's JavaScript execution API to fetch these properties - if required). 
      InnerText exists as property in CUIT because IE supports it primarily.
      Use "textContent" or "innerHTML" and compare those values between IE and other browsers as they are W3C compliant properties.
    • Hi Sai
      thanks for you're help
      do you have any sample of "CUIT's JavaScript execution API" ?
    • Farinaz,
      Does this help: ? 
  • Unable To Perform Cross Browser Testing in VS2012
    8 Posts | Last post Tue 7:53 PM
    • Error:stale element reference: element is not attached to the page document(Chrome)
      1-Recorded a Small Flow Using IE.
      2-Played The Test Case in IE Which is Working Fine.
      3-Installed Selenium Component and Changed The Browser Window To Chrome
      4-Run The Test Case
      Note:It is able to open the URL in Chrome but Fail To Identify a Button Having ID.
      Question 1: Does "Locate Control in UI" Works in Chrome or its only For IE?
      I Read all Thread related to this issue posted but still it is not resolved. Can anyone help me to resolve this issue
    • V-VACHAN/Abhitej
      Will you please help me to resolve the issue.
      V-VACHAN-I wanted to know how your controls are identified in Chrome.
      Please let me know, I tried my best but still not able to locate a simple button in Chrome, which works perfect in IE :(
    • Hi,
      Are you using "CodedUITestEditor" (by opening UIMap file) to Locate a "Recorded" control? If this is the case, it is not supported in Chrome.
      If there is a "Test Run" issue as well, then please post your Chrome Version and Selenium web driver DLLs version number. 
      Also, Did you update the Selenium web dlls as mentioned in the blog above to 2.43.1?
    • Hi Sai,
      Following Things I did.
      1- Recorded a Flow in IE using Coded UI Test Builder.
      2-Ran in in IE which Is working Fine and All Controls Are Identified
      3-Change The Browser BrowserWindow.CurrentBrowser = "Firefox"
      Got Error as "element is no longer attached to the dom", even After Playback.Wait()
      I tried even Capture one Control in IE using Coded UI Test(Only One Control), and perform Click on that Control,and Changed the Browser To Chrome.
      It is Not Identifying The Control too.
      Note: The Current Version of The Selenium Web Driver is
      Please Help Me.
    • Olá, 
      Eu estou com o mesmo problema. Ao executar um teste gerado através do Coded UI Test Builder, no IE ele funciona perfeitamente, mas no Chrome um botão não é encontrado. Eu estou usando o Selenium também. Minha versão no Chrome é 39.0.2171.99.
    • Can anyone please resolve this issue....or any help will be appreciated..
    • Help Please.....
    • Hi,
      There seems to be multiple reports of this issue. Can you please point us to a repro site for this? 
      Also have you tried updating to the latest chrome driver and selenium dot net bindings (do pick up the strong named version of it)?
      - Abhitej.
  • WaitForControlNotExist does not work with chrome
    2 Posts | Last post Tue 7:45 PM
    • Hi,
      Our scripts working fine with IE, but if we run with chrome then we got error StaleElementRefrenceException.
      This error appears where we written WaitForControlNotExist OR WaitForControlExist
      If we use Thread.Sleep instead of WaitForControlNotExist then it works fine, but this does not resolve what we trying to do.
      Please suggest.
    • This happens when the control that you are waiting on was loaded earlier followed by a navigation to another page. Can you try the AlwaysSearch configuration as mentioned here:
      - Abhitej.
  • Not able to install it - i have dotnet framework 4.5
    2 Posts | Last post Tue 7:40 PM
    • Hi - I downloaded it. When i try to install it, i get an error that it requires dotnet framework 3.5. I have dotnet framework 4.5 installed in my machine. Please suggest. Thanks!
    • You need to enable .Net 3.5 from Control Panel. "Turn Windows Features on\off" -> .Net Framework 3.5. Then try installing the MSI. 
      - Abhitej 
  • Mouse.StartDraggin in Firefox causes PlaybackFailureException
    6 Posts | Last post March 04, 2015
    • I'm using the latest version of the Selenium components for Coded UI, v1.5 released on 11/14/2014. Problem occurs in both Firefox 35 and 33.
      I'm having an issue with dragging in Firefox. The web application under test uses the JavaScript-heavy ExtJS framework. The control itself seems to have the correct search properties and parent control defined - calling control.DrawHighlight() highlights the correct control, and Mouse.Click(control) works. However, any of the following attempts to drag cause a Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException to be thrown:
      1. Mouse.StartDragging(control);
      2. Mouse.StartDragging(control, new Point(45, 9));
      3. Mouse.Click(control);
      Calling Mouse.Move(control) or Mouse.Move(control, new Point(45, 9)) to  "forcefully" move the cursor over the control strangely sends the cursor to the top-left corner of the screen, rather than to the specified control, so that won't work.
      The post by rDevakumar on Feb 3, 2015 also mentions problems dragging and dropping - are these issues related?
    • Hi,
      I am also facing the issue, i.e. controls is searched correctly but I get error "Cannot perform drag on the control". For me its not working on both chrome & Firefox.
      I also tries Mouse.startDragging(control.boundingrectangle.location) but its didn't worked. 
      Let me know if you find the solution
    • Can anyone please help us on this issue, as I am still struggling with this it and its getting critical day by day
    • I have tried many options but Mouse hover, mouse move, mouse drag are not working in Chrome (but working in IE).  For now we kept these as out of scope for automation in Chrome :(
    • @mperlman & @rDevaKumar,
      After all the struggle and R&D i have concluded that HTML5 is causing the problem and our application use it extensively.Please let me know if this is the case with you guys as well, also please share your findings
      For firefox we still have a workaround using selenium webdriver for performing dragdrop, but this require lot changes in your automation framework code.
    • Hi Preeti, our application also uses HTML5, but i doubt whether that is the reason for having this issue.
      Also, i am not clear about your second point on using selenium webdriver as 'workaround' and changes needed in automation code.  We are using Selenium and chromium drivers, but haven't tested this drag/drop in Firefox so far (I have a problem with Firefox now, selenium driver stopped working after the latest version of Firefox is updated).
1 - 10 of 149 Items