Exemplo n.º 1
0
        /// <summary>
        /// Set Options without index
        /// </summary>
        /// <param name="optionText">Text to set option</param>
        private bool SetOption(string optionText)
        {
            bool result = false;

            if (_controller.IsEnabled(new UiSelector().Text(optionText)))
            {
                result = _controller.Click(new UiSelector().Text(optionText));
            }
            else
            {
                throw new DeviceWorkflowException($"Selected object is not existed or enabled: {optionText}");
            }

            return(result);
        }
Exemplo n.º 2
0
 /// <summary>Returns if given resource identifier is enabled</summary>
 /// <param name="resourceId">Resource ID</param>
 /// <returns>True if found</returns>
 public bool ResourceIdEnabled(string resourceId)
 {
     return(_controller.IsEnabled(new UiSelector().ResourceId(resourceId)));
 }