or
[Test]
public
void
TestTextBox()
{
WpfApplication wpfApp = Manager.LaunchNewApplication(@
"C:\Projects\myapp.exe"
);
var loginWindow = wpfApp.GetWindow(
"Login"
);
loginWindow.Find.ByName<TextBox>(
"usernameTextBox"
).Text =
"user1"
;
loginWindow.Find.ByName<PasswordBox>(
"passwordTextBox"
).Password =
"pass1"
;
loginWindow.Find.ByName<ComboBox>(
"environmentComboBox"
).SelectItemByText(
false
,
"DEV"
);
loginWindow.Find.ByName<Button>(
"connectButton"
).Click(MouseClickType.LeftClick,
false
,
false
, 0, 0, OffsetReference.AbsoluteCenter, ActionPointUnitType.Pixel);
}
loginWindow.Find.ByName<ComboBox>(
"environmentComboBox"
)
The selection of infragistics dropdown option is not setting the option
var combo = item.Find.ByExpression<HtmlInputCheckBox>("type=checkbox"
combo.Click();
combo.InvokeEvent(ScriptEventType
try
{
string automationID = "MyAutomationID";
Console.WriteLine(
"Find the element by automation ID"
);
FrameworkElement element = Application.Find.ByAutomationId(automationID);
Console.WriteLine(
"Found element"
);
}
catch
(Exception e)
{
Console.WriteLine(
"Caught Exception: "
+ e.Message);
}