示例#1
0
        /// <summary>
        /// A text checkpoint using perfecto's extended mobile:checkpoint:text command.
        /// </summary>
        /// <param name="textToFind">The needle text you are looking for in your haystack.</param>
        /// <param name="timeoutInSeconds">Timeout in seconds.</param>
        /// <returns>Bool indicating if the text was found.</returns>
        protected static bool Checkpoint(string textToFind, RemoteWebDriverExtended driver, int?timeoutInSeconds = 25)
        {
            Console.WriteLine(string.Format("Checking text {0} on {1}", textToFind, GetDeviceModel(driver)));

            long uxTimer;

            return(PerfectoUtils.OCRTextCheckPoint(out uxTimer, driver, textToFind, 0, timeoutInSeconds ?? 25, true, "Checkpoint timer", "Checkpoint timer"));
        }
 /// <summary>
 /// A text checkpoint using perfecto's extended mobile:checkpoint:text command.
 /// </summary>
 /// <param name="textToFind">The needle text you are looking for in your haystack.</param>
 /// <param name="timeoutInSeconds">Timeout in seconds.</param>
 /// <returns>Bool indicating if the text was found.</returns>
 protected static bool Checkpoint(string textToFind, AppiumDriver <IWebElement> driver, int?timeoutInSeconds = 25)
 {
     Console.WriteLine(string.Format("Checking text {0} on {1}", textToFind, GetDeviceModel(driver)));
     return(PerfectoUtils.OCRTextCheckPoint(driver, textToFind, timeoutInSeconds ?? 25));
 }