Example #1
0
        public void ClickClicks()
        {
            var dataGrid = App.DataGrid("editableDataGrid");

            dataGrid.RowByIndex(0).Button("innerButton").Click();
            App.TextBlock("messageTextBlock").RequireText("Clicked at Button 1");
            App.Button("okButton").Click();

            dataGrid.RowByIndex(1).Button("innerButton").Click();
            App.TextBlock("messageTextBlock").RequireText("Clicked at Button 2");
            App.Button("okButton").Click();
        }
        public void ClickClicks()
        {
            var textBox = App.TextBox("clearTextBox");
            var button  = App.Button("clearButton");

            textBox.SetText("This text should be cleared by the button above");
            button.Click();
            textBox.RequireText("");
        }