Created
April 6, 2011 20:31
-
-
Save vquaiato/906462 to your computer and use it in GitHub Desktop.
Teste de interface com TestApi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Test] | |
| public void toolbox_com_1_item_gera_toolboxwindow_com_1_botao() | |
| { | |
| string sampleAppPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase), "Dashboard.exe"); | |
| AutomatedApplication a = new OutOfProcessApplication(new OutOfProcessApplicationSettings | |
| { | |
| ProcessStartInfo = new ProcessStartInfo(sampleAppPath), | |
| ApplicationImplementationFactory = new UIAutomationOutOfProcessApplicationFactory() | |
| }); | |
| a.Start(); | |
| a.WaitForMainWindow(TimeSpan.FromSeconds(10)); | |
| var mainWindow = a.MainWindow as AutomationElement; | |
| AutomationElement inputTextBox = AutomationUtilities.FindElementsById(mainWindow, "someInput")[0]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment