Selenium components for Coded UI Cross Browser Testing

Free

Selenium components for Coded UI Cross Browser Testing

(9) Review
Visual Studio
2013, 2012
Download (19,270)
1/31/2014
1.4
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (9)
Q and A (99)
Sign in to write a review
Sort by:

by Ahsan Mumtaz | at 6:56 PM

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


  • he playback failed to find the control with the given search properties
    9 Posts | Last post 2:29 PM
    • I have seen this in previous posts ont his site and have tried all the proposed fixes and Im still getting the issue in the Chrome and Firefox browsers not being able to find this button control.
      
      The test cases can find the two test boxes and enter both the username and password, however when it comes to the pressing of the 'Sign-In' button it cannot find it
      
      Im using Visual Studio 2012 with Update 4 and the browsers are the following versions. Chrome - 37.0.2062.124 m, Firefox - 24.8.1
      
    • Test Name:	CodedUITestMethod1
      Test FullName:	Demo.CodedUITest2.CodedUITestMethod1
      Test Source:	\\licwpdfile04\jaeal0$\My Documents\Visual Studio 2012\Projects\Demo\Demo\CodedUITest2.cs : line 27
      Test Outcome:	Failed
      Test Duration:	0:00:36.2746942
      
      Result Message:	
      Test method Demo.CodedUITest2.CodedUITestMethod1 threw exception: 
      Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details: 
      TechnologyName:  'Web'
      ControlType:  'Button'
      TagName:  'BUTTON'
      Id:  ''
      Name:  ''
      DisplayText:  'Sign in'
      Type:  'submit'
       ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
      Result StackTrace:	
      at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.FindAllDescendants(String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth)
         at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindAllScreenElement(String queryId, Int32 depth, Boolean singleQueryId, Boolean throwException, Boolean resetSkipStep)
         at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindScreenElement(String queryId, Int32 depth, Boolean resetSkipStep)
         at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)
       --- End of inner exception stack trace ---
          at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapControlNotFoundException(COMException ex, IPlaybackContext context)
         at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
         at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
         at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String queryId)
         at Microsoft.VisualStudio.TestT
    • As a matter of interest my Chrome opens with a warning message saying the following
      
      "You are using an unsupported command-line flag: --ignore-certificate-errors. Stability and security will suffer"
      
      Not sure if this will assist in solving the issue but it's more info than we originally had
    • Hi,
      
      Regarding chrome warning message, Its because you are using higher version of chrome i.e >34. If you want to suppress this warning you can downgrade to 34. But it doesn't  make a difference.
      
      Regarding exception, can you please paste your code here. so that i will get clear idea.
      
      Thanks,
      Vj..
    • Hi here is my TestMethod
      
              [TestMethod]
              public void CodedUITestMethod1()
              {
                  BrowserWindow.CurrentBrowser = "Chrome";
      
                  using (BrowserWindow win = BrowserWindow.Launch(new Uri("http://someurl.com/")))
                  {
                      this.UIMap.SignIn();
                      this.UIMap.clickonthefirstmorebutton();
                      this.UIMap.clickontheclosebutton();
                      this.UIMap.SignOut();
                  }
              }
    • Here is the markup for the button
      
      <div class="form-group">
      	<button class="btn btn-primary pull-right">Sign in</button>
      	<a id="forgot-password-link" href="http://someurl.com">Forgotten your password?</a>
      
      </div>
    • Hi Vijay any luck ?
    • Hi Major Solutions,
      This is a generic failure exception. Does this troubleshooting blog help? http://blogs.msdn.com/b/tapas_sahoos_blog/archive/2011/11/07/troubleshooting-record-and-playback-issues-in-coded-ui-test.aspx
      
      If that does not help can you please point us to the page you are testing on?
      
      - Abhitej.
    • I'm also facing the same issue of warning ribbon saying "You are using an unsupported command-line flag". I can see in some other forums that it can be fixed temporarily by chromeOptions.AddArgument("--test-type");
      Can we use something like that in C# test, to switch the flag off ?
      
  • Unable to locate/highlight tabs in chrome browser
    4 Posts | Last post 6:15 AM
    • I am verifying link on website. Which opens in new tab. I verifies the url and close that tab, so by default it focuses on previous tab(i.e website path) and performs other actions. It works fine with IE but when i run it on chrome, it fails to find/locate the previous tab(ie. Website). 
      
      Here are the steps which i am following
      
      1. Visit site/page (Tab1)
      
      2. Click on link which is external and opens in new tab, Tab2(currently i have two opened tabs in my browser ie. Tab1, Tab2)
      
      3. close the new tab(Tab2) by verifying url of page(now only first tab is opened, Tab1)
      
      4. Now again i verify url of current tab, Tab1 but it fails here(in chrome but IE)
      
      Chrome Version. 34, WebDriver-2.8
      
      Here is the code which verifies Tab1 uri after closing tab2.
      
          
      
                 static BrowserWindow browser;
                 static HtmlDocument hDoc;
      
                 browser = BrowserWindow.Locate("xyz");
      
                  hDoc = new HtmlDocument(browser);
                  hDoc.TechnologyName = "Web";
                  hDoc.SearchProperties.Add(HtmlDocument.PropertyNames.FriendlyName, "abc");
      
      //Here i am forming uri by passing "absoluteUri" to method.
      
      Assert.AreEqual(browser.Uri.Scheme + "://" + browser.Uri.Host + "/" + "absoluteUri", browser.Uri.ToString(), "Browser uri doesnt match with expected");
    • Hi Abhiji_MSFT,
      
      Can you please provide your comments on this??
      
      Thanks,
      Vijay
    • Hi Vijay,
      Coded UI tests does not support playback on tabs. The best way around this would be to make chrome launch in a new window rather than a new tab. 
      
      - Abhitej.
    • Hi Abhitej,
      
      So if a page has multiple external links which are opening in new tab, which is as per requirement. Then how to validate such scenario???
      
      Thanks,
      Vijay
  • GetParent() behavior question
    5 Posts | Last post Mon 4:42 AM
    • Good morning,
      Has anyone come across this difference on how GetParent() on IE vs Chrome?
      
      I have a test that works on IE in which at some point I request the parent of any given HTML element. In IE I get the parent fine and in fact in this case I issue a couple of GetParent().GetParent(). 
      However in cross browser with Chrome the first GetParent() returns the window element and not the immediate HTML element.
      
      Is this a known issue and how have any of you worked around it?
      
      Thanks.
    • Hi Eduardo,
      This should ideally work. What control are you performing a GetParent() on? Can you please point us to a repro page if possible?
      
      - Abhitej.
    • Thanks for getting back to me Abhitej.
      Here is an actual test case using bing.com.
      Running in IE, I get the LI element as expected.
      Running in Chrome I get Window elements.
      
      
              public void getparenttest()
              {
                  BrowserWindow.CurrentBrowser = "Chrome";
                  BrowserWindow browserWindow = BrowserWindow.Launch("http://www.bing.com");
                  var crsitemspanCollection = new HtmlSpan(browserWindow);
                  crsitemspanCollection.SearchProperties.Add("class", "crs_item");
                  foreach (var crsSpan in crsitemspanCollection.FindMatchingControls())
                  {
                      //GetParen().GetParent() should get the <li>
                      var liEle = crsSpan.GetParent().GetParent();
                      Console.WriteLine("Control Type: {0}", liEle.ClassName);
                  }
              }
    • Now I have another interesting twist.
      Since I cannot get "Selenium components" to give the correct result for GetParent() in Chrome, I implemented it using ExecuteScript "...arguments[0].parentNode.parentNode...etc". 
      The twisted part with this approach is that from the resulting Control that I get back from the javascript, I can almost do anything with it: GetChildren(), SetProperty(name,value), But! I cannot get Top. Property on the resulturend control or any other controls the I obtain by GetChildren() and when the resulting control is the root of another Control search. 
      
      Again, I am reporting this here because it works fine on IE.
      
      I will probably be ok getting the .Top property using again ExecuteScript, but at this rate I will end up moving all my actions to ExecuteScript :)
    • Thanks for letting us know Eduardo. We are investigating this. Right now I believe ExecuteScript is the best way to workaround this. Apologies for the inconvenience.
      
      - Abhitej.
  • Unable to launch firefox
    4 Posts | Last post Thu 3:42 PM
    • Hi,
      
      I am using firefox ver. 32.0.3 and chrome driver ver.28. I am unable to launch the browser now, previously i used to, for lower version of firefox. Is it known limitation or so?
      
      Thanks,
      Vj...
      
      
    • Throwing UITestException: An error occurred while connecting to Firefox.
      
      Thanks,
      Vj...
    • I second that. The whole logs point to being unable to initiate socket connection. I already verified my firewall by turning it off completely. .Lauch(...) would not work at all.
      
      Let's see what happens.
    • @VijayG7,
      I found this down on another thread.
      
      Vaibhav Ganesan
      Hi kvk,
      Coded UI Playback on latest Firefox (version 32.0) with Selenium binaries (version 2.42.0) throwing exception "Failed to start up socket within 45000 ms" was a Selenium issue which is fixed in the latest Selenium bits (http://selenium-release.storage.googleapis.com/2.43/selenium-dotnet-strongnamed-2.43.1.zip) 
      We have tested this works with latest Firefox.
      
      -Vaibhav
  • Chrome gets closed after the testMethod execution
    1 Posts | Last post Wed 1:21 PM
    • We have a requirement of opening a browser in one TestMethod and login from another TestMethod.  We are achieving this by setting the “CloseOnPlaybackCleanup” property to false for the BrowserWindow instance.
      
      The browser does not get closed in IE but gets closed in Chrome and Firefox.
      
      Any advices on how to achieve it?
      
      Regards,
      kvk1985
  • Root element of a search action behaves strangly.
    1 Posts | Last post September 23, 2014
    • 
      I have a collection of DIV elements that I get thru rootelement.GetChildren()
      Let’s say (foreach frm in rootelement.GetChildren() )
      
      <DIV id=”x”>
      <DIV id=”y”>
      <DIV id=”z”>
      
      These DIV elements each have some content that gets processed and loaded into a class, say (OrderEntry objOrderEntry = new OrderEntry(frm) )
      
      While processing each one we query the resulting class for a Name property.
      String.IsNullOrEmpty(objOrderEntry.Name)
      
      When this is true we attempt to query the current DIV and find out if there are other sub children DIVs.
      We do this because an instance of OrderEntry with empty Name could mean I have details inside my root DIV.
      
      <DIV id=”x”>
            <DIV id=”x.1”>
            <DIV id=”x.2”>
      <DIV id=”y”>
      <DIV id=”z”>
            <DIV id=”z.1”>
           <DIV id=”z.2”>
      
      The way we query is as follows.
      
      //Nameless parent section DIV (x,y,z) query for possible subitems.
      if (String.IsNullOrEmpty(objOrderEntry.Name) {
      var frmchildstep1 =new HtmlDiv(frm); 
      frmchildstep1.SearchProperites.Add(“class", “panel-row noHeader", PropertyExpressionOperator.Contains);
      var panelCollDef = new HtmlDiv(frmchildstep1);
      panelCollDef.SearchProperties.Add("id", "_Canvas", PropertyExpressionOperator.Contains);
      panelCollDef.SearchProperties.Add("MaxDepth", "3"); //Don't go too far as deeper canvas would be part of subpart.
      
      	If (panelCollDef.TryFind()) {
      		panelCollDef.FindMatchingControls()  
      …. More stuff
      }
      }
      
      
      What results of all this is that my frm variable from foreach gets set to the element who enter last into the (//Nameless parent section)
      I know this because the id that gets returned is form the last one and this DOES NOT happen when I am testing with IE only with CHROME.
      
      It might be a long shot to get anybody’s attention, but at least be aware of this odd behavior.
      
  • The above component does not work with Firefox 32.0.2
    3 Posts | Last post September 23, 2014
    • I downloaded the attached components and tried to run my testscript in Firefox.  It opens an empty Firefox window and waits there.  After sometime, it fails with message "Failed to start up socket within ...".
      
      After some google searching, it seems that selenium has a fix for this in its 2.43 version.
      
      When I used the selenium C# dlls of 2.43 version, my testscript is failing with message -
      
      "Result Message:	
      Test method firefox.CodedUITest1.CodedUITestMethod1 threw exception: 
      System.IO.FileLoadException: Could not load file or assembly 'WebDriver, Version=2.39.0.0, Culture=neutral, PublicKeyToken=1c2bd1631853048f' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) ---> System.IO.FileLoadException: A strongly-named assembly is required."
      
      So, does it means that the dll "" is has version specific reference to the Selenium dotnet binding dlls.
      
      If yes, then what are the plans of releasing a crossbrowserproxy dll compatible to selenium 2.43.1.
      
      Downgrading to Firefox 31 works fine but we want to test our application on the latest firefox.
    • I've had a similar issue. My Coded UI scripts just stopped working. Firefox would not open, it opened in task manager but did not open a window. 
      After reading about this I reset Firefox to remove any add-ons so that it would load ok. However after I reset Firefox it can no longer find firefox to open it up. Coded UI scripts fail with null reference and no source messages as it can't find the firefox.exe anymore for some reason. This has all occurred since 32 and reinstalling firefox and the components and even .net framework has not worked.
    • Hi kvk,
      Coded UI Playback on latest Firefox (version 32.0) with Selenium binaries (version 2.42.0) throwing exception "Failed to start up socket within 45000 ms" was a Selenium issue which is fixed in the latest Selenium bits (http://selenium-release.storage.googleapis.com/2.43/selenium-dotnet-strongnamed-2.43.1.zip) 
      We have tested this works with latest Firefox.
      
      -Vaibhav
  • Handling popups in chrome
    2 Posts | Last post September 20, 2014
    • Hi,
      
      I have an issue with recognizing a chrome window which is poping up after clicking on a link in a "main" chrome window. I can locate this as WinWindow element but not as BrowserWindow element (when using Title as search property).
      What I tried so far:
      1. Cast WinWindow to BrowseWindow - can't perform cast
      2. Use BrowserWindow.Locate - cannot find window with specified title
      3. Use BrowserWindow.FindMatchingControls - method not implemented for chrome 
      
      In general, is it possible at all to locate BrowseWindow which wasn't opened using BrowserWindow.Launch method? I got it working for IE but did not successed with Chrome.
    • Hi Igor,
      Does this link help: https://cuite.codeplex.com/discussions/432231? 
      
      -Abhitej.
  • Some functionality is broken after upgrading Chrome to ver. 36
    10 Posts | Last post September 17, 2014
    • Hi,
      Don't know where to open bug, so I'll report it here:
      After upgrading chrome to version 36.xxx, our CodedUI tests stopped working.
      Here is the error message reported by Selenium Component:
      
      Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details: 
      TechnologyName:  'MSAA'
      ControlType:  'Document'
       ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
      
      The same code works perfectly with IE8/8/10, Firefox (all versions) and Chrome 35.xxx.
      
      I still can get my code working by:
      1. Setting EqtTraceLevel to 0 (currently it is 4) in application configuration file.
      2. Avoid accessing BoundingRectangle property of UITestControl (it always fails with the above message on Chrome 36 for every control).
      But this would break many of our tests.
      
      Any help would be appreciated.
      Thanks.
    • Hi Igor,
      Can you try performing a browser refresh before accessing these properties. This is a known issue and we are working on it.
      
      - Abhitej.
    • Hi there, I'm experiencing the same exception ("Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties.") when calling Mouse.Click() in Chrome 36. I assume this is because Mouse.Click() depends on the BoundingRectangle. Refreshing the page via BrowserWindow.Refresh() prior to making the call to Mouse.Click() has no effect, the exception still fires.
      
      Stack trace:
      Test Name:	SevereFishhookInEye
      Test Outcome:	Failed
      Result Message:	
      Test method TrainingExercise.CodedUITests.SymptomCheckerTests.SevereFishhookInEye threw exception: 
      Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details: 
      TechnologyName:  'MSAA'
      ControlType:  'Document'
       ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
      
      Funny thing, though, further down the trace I can see the lines:
      V, 5784, 14, 2014/08/08, 15:17:48.768, 21398635847, QTAgent32, CrossBrowserPlugin : Search : Trying out search using FindElementsBy
      V, 5784, 14, 2014/08/08, 15:17:48.802, 21398719599, QTAgent32, PERF: CrossBrowserPlugin: CreateCrossBrowserElementInstanceWithoutInitialize.: took 3.0662 ms
      V, 5784, 14, 2014/08/08, 15:17:48.805, 21398727645, QTAgent32, CrossBrowserPlugin: Search: Element matched other search properties.
      V, 5784, 14, 2014/08/08, 15:17:48.808, 21398735348, QTAgent32, PERF: CrossBrowserPlugin: AddXPathToElements: took 0.0078 ms
      I, 5784, 14, 2014/08/08, 15:17:48.809, 21398738518, QTAgent32, CrossBrowserPlugin : Search Successful
      V, 5784, 14, 2014/08/08, 15:17:48.809, 21398738704, QTAgent32, PERF: crossBrowserTestPlugin: Search: took 57.9079 ms
      
      So it looks like Chrome is actually finding the element selected, but the COM component isn't getting what it expects to be returned.
    • I am having the same issue getting the .Top property of my control. The control exists. Any updates on a fix/workaround for this issue?
    • Hi Eduardo and Aaron, 
      We do not have an ETA for the fix yet. 
      As a work-around, before accessing any control on the page, try refreshing the page with-
      
      Keyboard.SendKeys("{F5}");
      Playback.Wait(2000);
      
      We have tested this and it works-around the issue for us.
      
      -Vaibhav
      
    • Thanks for getting back to us Vaibhav. Unfortunately for us that work around wont work because the page were we get the issue is a form and a page refresh causes a confirmation to leave or stay in the page and other unexpected behavior with form values also take place. But maybe we can figure something out to don't need to get coordinates.
      
      The reason we ended up trying to get coordinates is because the inconsistency we observed with mouse.clicks and hovers when the control is off screen. It would work on some machines and not in others; even it would work sometimes and not others.
      
    • Hi All,
      The Coded UI Playback issue on Chrome throwing exception-
      
      Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details: 
      TechnologyName:  'MSAA'
      ControlType:  'Document'
       ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
      
      has been resolved on latest Chrome Version 37.0.2062.102 m.
      
      It was an intermittent issue in Chrome and needs no fix/update for the plugin.
      
      -Vaibhav
    • Vaibhav,
      
      Perfect timing with this update. I just updated Chrome to 37 and it is working.  Thanks!
      
      Mike
    • Hi Vaibhav / Mike,
      
      I have some problem executing on Chrome. I would say am stuck at the start point itself. Can you guys assist me in overcoming this issue. I have posted a Discussion pertaining to my problem!!!! If required I can share you the Log of the test too.
      
    • I can confirm that the issue is resolved with Chrome 37.xxx
      
      Thanks.
  • Unable to start with cross browser testing.
    5 Posts | Last post September 17, 2014
    • I am currently using VSTS 2013 and I want to test my application on Chrome.  The steps I performed are same as that of the video shared in the link:
      
      http://blogs.msdn.com/b/visualstudioalm/archive/2012/10/30/introducing-cross-browser-testing-with-coded-ui-tests.aspx?PageIndex=3#comments
      
      Step 1: I followed all the mentioned steps for Downloading "Selenium component for Chrome driver"
      
      Step 2: I then recorded my test on IE 11.
      
      Step 3: When I tried to play back on Chrome (Latest Version 37), the test fails stating below error.
      
      Result Message:
      
      Test method Automation1.CodedUI_Tests.CodedUITest1.CodedUITestMethod1 threw exception:
      
      Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: Unable to find the top level element of the control ---> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: Unable to find browser window with 'Amazon.com Sign In' in the title.
      
      But the first problem I could sense here is there isn't any chrome browser started. By referring the video
      
      I could understand that a command prompt window opens when the selected test is Run.
      
      Please assist me on this as its very urgent for me to proceed further on writing my own Coded UI tests.
      
      Regards
      
      Nazeer
    • Hi Nazeer,
      Can you please paste the code you are trying to test as well? Does the following simple code work for you:
      
      BrowserWindow.CurrentBrowser = "chrome";
      BrowserWindow bw = BrowserWindow.Launch(new System.Uri("www.bing.com"));
      
      -Abhitej.
    • Abhitej,
      
      Thanks for your prompt reply. You solved my first problem. I now could see the chrome browser being driven.
      
      But once the chrome browser starts I am seeing this message on chrome stating 'You are using an unsupported command-line flag: --ignore-certificate-errors. Stability and security will suffer'
      
      As I said earlier I just recorded on IE and Playing back on chrome. The below is the generated code.
      
      [TestMethod]
      public void CodedUITestMethod1()
              {
                  BrowserWindow.CurrentBrowser = "Chrome";
                  BrowserWindow bw = BrowserWindow.Launch(new System.Uri("http://www.amazon.in/"));
                  // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
                  this.UIMap.AmazonShoppe();
                  this.UIMap.AssertMethod1();
              }
      
      I am pasting the rest of the code pertaining to respective methods because the editor has maximum length.
      
    • public void AmazonShoppe()
              {
                  // Set flag to allow play back to continue if non-essential actions fail. (For example, if a mouse hover action fails.)
                  Playback.PlaybackSettings.ContinueOnError = true;
      
                  // Mouse hover '+You Gmail Images' pane at (1, 1)
                  Mouse.Hover(uIYouGmailImagesPane, new Point(1, 1));
      
                  // Reset flag to ensure that play back stops if there is an error.
                  Playback.PlaybackSettings.ContinueOnError = false;
      
                  // Click menu item numbered 2 in 'Address Combo Control' menu item
                  Mouse.Click(uIItemMenuItem, new Point(132, 20));
      
                  //// Go to web page 'http://www.amazon.com/'
                  //uIGoogleInternetExplorWindow.NavigateToUrl(new System.Uri(this.AmazonShoppeParams.UIGoogleInternetExplorWindowUrl));
      
                  // Type 'Ha' in 'Search' text box
                  uISearchEdit.Text = this.AmazonShoppeParams.UISearchEditText;
      
                  // Set flag to allow play back to continue if non-essential actions fail. (For example, if a mouse hover action fails.)
                  Playback.PlaybackSettings.ContinueOnError = true;
      
                  // Reset flag to ensure that play back stops if there is an error.
                  Playback.PlaybackSettings.ContinueOnError = false;
      
                  // Click 'harry potter' pane
                  Mouse.Click(uIHarrypotterPane, new Point(56, 18));
      
                  // Click 'Harry Potter and the Sorcerer's Stone (Book 1)' link
                  Mouse.Click(uIHarryPotterandtheSorHyperlink, new Point(186, 0));
      
                  // Click 'Add to Cart' button
                  Mouse.Click(uIAddtoCartButton, new Point(98, 14));
      
                  // Click 'Proceed to checkout' link
                  Mouse.Click(uIProceedtocheckoutHyperlink, new Point(35, 9));
              }
    • Nazeer,
      This is a known issue. This should however not fail playback. Are you seeing playback failures?
      
      - Abhitej.
1 - 10 of 99 Items