Hi Admin,
I am trying to automate a application in which on switching from one page to another page execute command failed exception comes.
Switching happens when a button is clicked on home page using click() method which switches to another page of application.
Error generated is below
ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_8b8c8968-8891-495b-b872-90eb95904be1',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.IO.IOException: Pipe is broken.
at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
at System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.Pipes.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
After this exception the active browser becomes null
ActiveBrowser.IsConnected gives false and also Manager.ActiveBrowsers count is 0
Note:- When i run the test in debug mode and when i perform the click () operation the following exception is not received and ActiveBrowser.IsConnected comes true and after that test runs smoothly
Solution Tried:-
I have applied Thread.Sleep(10000) before click on the button which takes me to next page and
also after clicking the button.

Hello,
I am trying to construct a new load test but I am running into an issue when examining our website that starts off as 'http' and has no 'www.' in the url. I am redirected to a page that I cannot move forward with (see attached). Please advise.
Thanks,
Tom

I am using Kendo UI MVVM in my site. I am building tests with the Testing Framework.
I find the HtmlInputControl and assign the Value, I can see it fill in on the page.
I then call input.InvokeEvent( ScriptEventType.OnBlur ); to try and force the Kendo MVVM to assign the value to the model.
It does not seem to work for plain inputs (type=text) or textarea's. Kendo UI ComboBox, Autocomplete, NumbericInput do work with the above process.
Any ideas?

I'm currently running into a problem with an automated Firefox test where it hits an warning and a dialog box pops up. I've attached a screenshot of the dialog box. I want to have WebAii click "Continue" and move on through the test. I have the following code and it catches the dialog box but doesn't press "Continue". I've also tried to circumvent the issue by disabling all warnings that could relate to this. I have also tried changing the buttonID Parameter from 0-2 and it seemed to have no effect. Any insight would be greatly appreciated.
GenericDialog securityWarningDialog = new GenericDialog(scenario.Manager.ActiveBrowser, "Security Warning", false, 0); scenario.Manager.DialogMonitor.AddDialog(securityWarningDialog); scenario.Manager.DialogMonitor.Start(); browser.Actions.Click(loginButton); scenario.Manager.DialogMonitor.Stop(); Assert.IsTrue(scenario.Manager.Browsers.Count == 1); 
Hi,
Is it possible to get the element with <No Name>?
Using "ByExpression" I need to get a value: "Value is too large [> 40]"
I try to like this:
Example1:
ContentPresenter searchScroll = WindowScreenActuarialAssumptions.MainWindow.Find.ByExpression(new XamlFindExpression("DataContext='Value is too large [> 40]'")).As<ContentPresenter>();
Example2:
var txtBlock = WindowScreenActuarialAssumptions.MainWindow.Find.ByTextContent("");

Hi team,
The application under test is asking to enter some values in a dialog (Capture 1) and when I recorded, it shows as a Prompt Dialog (Capture 2).
I added a step to handle this dialog but when the script is running Test Studio is unable to enter provided value and click on the button.
This dialog can be dragged over the page.
I've gone through your threads but couldn't find any for handling Prompt dialog.
Could you please provide a sample coded step to handle above two instances for Prompt dialog?
Regards,
Harsha

Hello
I tried to run containd in QuickStarts_NUnit_CS from the install to no avail.
1, Created new project from existing code, in VS community 2017
2, selected C#
3,Select the location of where to find the code as \QuickStarts_NUnit_CS
4,gave it a name
5,selected class library
A new project is created but, I had to manually link to ArtOfTest dll to make many error go away,
Plus the using nunit,framework statment is "not found" , right now I am have trouble locating where nnunit.framework is
It is installed, and I found it easily enough when using a visual studio unit test solution.
Please help
Ola
Hello!
I have been running into trouble running tests from TFS 2017 builds for several weeks now. I will do my best to sum up the situation and point out important details.
I have a c# project containing my UI tests that use ArtOfTest.WebAii.dll. The general structure of the tests is:
01.try02.{03. log.Info("Starting ConnectAndDisposeTest");04. 05. var manager = new Manager(true);06. Process proc = Process.GetProcessesByName("WPF").FirstOrDefault();07. if (proc == null)08. {09. log.Info("Launching app");10. manager.LaunchNewApplication(@"C:\repo\WPF.exe");11. log.Info("Launched app");12. }13. else14. {15. log.Info("Connecting to app");16. manager.ConnectToApplication(proc);17. log.Info("Connected to app");18. }19. 20. log.Info("Disposing");21. 22. manager.Dispose();23. 24. log.Info("Disposed");25. await Task.Delay(1.Seconds());26. }27. catch (AppDomainUnloadedException ex)28. {29. log.Fatal(ex);30. }31. catch (Exception ex)32. {33.log.Error(ex);34. }35.}
When I run this test with `vstest.console.exe .\WPFTest.dll /TestCaseFilter:FullyQualifiedName~ConnectAndDispose /InIsolation`, I see the following error in the console:
Warning: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain. This can happen if the test(s) started a thread but did not stop it. Make sure that all the threads started by the test(s) are stopped before completion.
In addition to this, when TFS runs these tests as part of the `Run Functional Test` task (https://github.com/Microsoft/vsts-tasks/blob/master/Tasks/RunDistributedTests/README.md), the test runner intermittently stops responding, stops sending results to TFS, and causes the test runner for that machine to abort and fail those tests.
I've done nearly everything I can to try to identify what might be causing the hanging/unresponsive behavior, but I've reached the end of my expertise. What can I do to diagnose the problem and/or work around it to prevent the test runner from hanging? Is it possible that this `System.AppDomainUnloadedException` is causing this unresponsive behavior?
Please let me know if you need additional details. Thank you!

Hi all,
we just started to write UI tests, and we want to write them programmatically, e.g. w/o recording. With the setting of Automation IDs and the corresponding Find calls, this works as expected. On the other hand - this is the same result as with Selenium and the Appium driver. So I thought I could use the TTF to get a bit further.
Now what I wanted to to is to get a content element and observe its datacontext. Is that possible? Something like
var detailsView = SutSession.MainWindow.Find.ByAutomationId("DetailsRegion").As<ContentControl>();
detailsView.DataContext.ShouldBeOfType<FlightViewModel>();
Bat as far as I can see, I only get the TTF wrapper classes as a result, getn't I?
