Exemplo n.º 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 SelectSelectsTheRow()
        {
            var dataGrid  = App.DataGrid("musiciansDataGrid");
            var textBlock = App.TextBlock("musicianTextBlock");

            dataGrid.RowByIndex(0).Select();
            textBlock.RequireText("Alex plays Guitar");
            dataGrid.RowByIndex(1).Select();
            textBlock.RequireText("Geddy plays Bass");
            dataGrid.RowByIndex(2).Select();
            textBlock.RequireText("Neil plays Drums");
        }
 public void RequireTextPassesForCorrectValues()
 {
     App.TextBlock("textBlock").RequireText("This is a TextBlock");
 }