Exemplo n.º 1
0
 /// <summary>
 /// Performs the playback of actions in this module.
 /// </summary>
 /// <remarks>You should not call this method directly, instead pass the module
 /// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method
 /// that will in turn invoke this method.</remarks>
 void ITestModule.Run()
 {
     Mouse.DefaultMoveTime = 300;
     Keyboard.DefaultKeyPressTime = 100;
     Delay.SpeedFactor = 1.0;
     Mouse.Enabled=false;
     
     TestAutothonRepository repo = TestAutothonRepository.Instance;
     WebElement elmTab;
     if(repo.StepInForumYouTube.VideosTabInfo.Exists(20000,out elmTab))
     {
     	elmTab.Click();
     	Report.Success(string.Format("Successfully clicked on {0} tab.",TabName));
     }
     else
     	throw new RanorexException(string.Format("Failed to find {0} tab.",TabName));
 }
Exemplo n.º 2
0
        /// <summary>
        /// Performs the playback of actions in this module.
        /// </summary>
        /// <remarks>You should not call this method directly, instead pass the module
        /// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method
        /// that will in turn invoke this method.</remarks>
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.0;
            Mouse.Enabled = false;

            TestAutothonRepository repo = TestAutothonRepository.Instance;
            WebElement             elmYoutubeChannel;

            if (repo.StepInForumYouTube.STePINForumInfo.Exists(10000, out elmYoutubeChannel))
            {
                elmYoutubeChannel.Click();
                Report.Success("Successfully clicked on StepInForum you tube channel.");
            }
            else
            {
                throw new RanorexException("Failed to find StepInForum youtube channel.");
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Performs the playback of actions in this module.
        /// </summary>
        /// <remarks>You should not call this method directly, instead pass the module
        /// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method
        /// that will in turn invoke this method.</remarks>
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.0;

            TestAutothonRepository repo = TestAutothonRepository.Instance;
            WebElement             elmAddText, elmSearchButton;

            if (repo.StepInForumYouTube.SearchQueryInfo.Exists(10000, out elmAddText))
            {
                elmAddText.PressKeys(Text);
                elmSearchButton = repo.StepInForumYouTube.SearchButton;
                elmSearchButton.Click();
                Report.Success(string.Format("Successfully searched the {0}.", Text));
            }
            else
            {
                throw new RanorexException("Failed to find search query.");
            }
        }