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.
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
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.
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.
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?
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 ?
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= "a b c d e" , B="ab"
A dose not have B , "a b" is different from "ab"
Values of "InnerText" are not really controlled by CodedUITest. This can vary from browser to browser - depending upon how those browsers handle those controls.
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.
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
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 :(
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?
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 18.104.22.168
Please Help Me.
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 22.214.171.124 também. Minha versão no Chrome é 39.0.2171.99.
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)?
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.
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: http://stackoverflow.com/questions/24136894/stale-objects-in-coded-ui
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),
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
Result2 Name: CodedUITestMethod_XML (Data Row 0)
Result2 Outcome: Passed
Result2 Duration: 0:00:08.782808
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.
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.
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.
could you please help me to solve this issue ?
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.
2. Mouse.StartDragging(control, new Point(45, 9));
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?
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
@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).
I would like to run my tests on our lab machines through MTM. We currently have over 200 VMs so installing the Selenium components on each machine is impractical. Is there a way I can add these binaries to my framework Nuget package which gets consumed by all of my test projects? Do the files absolutely have to be in the locations specified as opposed to being referenced from within the project itself?
The binaries must go to the specified location as that is the only place we pick it up from.
I would recommend doing a silent install of the msi or using a nugget preinstall\ postinstall cmd from powershell.
The method you are mentioning - is not tested and not supported, however, if you can get the binaries to be placed in the same location where we drop it, there isn't any reason why it shouldn't work.
No there isn't any config file. The location is part of the product code. We pick up all extensions from the same location and it will not be possible to change this. Why can't you silent install the msi as part of the machine setup?
I have over 200 lab VMs out there and the easiest path for me would be to push out these DLLs along with the other libraries that get pushed out with my tests as opposed to having to do an install on every machine. Perhaps you could offer an option to read the location from a registry key or config file at some point...
Out of the two
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: