Exemplo n.º 1
0
        protected override void ExecuteTestRun(WindowsFramework framework)
        {
            SelectOtherControls();
            slider = MainWindow.Get<Slider>("Slider");

            RunTest(SetValue);
            RunTest(LargeIncrement);
            RunTest(LargeDecrement);
            RunTest(SmallIncrement);
            RunTest(SmallDecrement);
        }
Exemplo n.º 2
0
        public void ThirdWindowTBtnSlider()
        {
            setupapp();
            Window mainWindow = application.GetWindow("MainWindow");

            TestStack.White.UIItems.TabItems.TabPage tabInput = mainWindow.Get <White.UIItems.TabItems.TabPage>(SearchCriteria.ByText("Other Controls"));
            tabInput.Click();
            TestStack.White.UIItems.Hyperlink hlink = mainWindow.Get <White.UIItems.Hyperlink>(SearchCriteria.ByText("Link Text"));
            hlink.Click();
            TestStack.White.UIItems.Button btnaddtextbox = mainWindow.Get <White.UIItems.Button>(SearchCriteria.ByText("Add TextBox"));
            btnaddtextbox.Click();
            btnaddtextbox.Click();
            btnaddtextbox.Click();
            btnaddtextbox.Click();
            TestStack.White.UIItems.Slider sldrOne = mainWindow.Get <White.UIItems.Slider>(SearchCriteria.ByAutomationId("Slider"));
            sldrOne.LargeIncrementButton.Click();
            Thread.Sleep(4000);
            sldrOne.LargeDecrementButton.Click();
            Thread.Sleep(4000);
        }
Exemplo n.º 3
0
 public void Setup()
 {
     SelectOtherControls();
     slider = MainWindow.Get<Slider>("Slider");
 }