Beispiel #1
0
 public override void Click(int sleepTimeout = 0)
 {
     Log.Action($"Click '{ComponentName} button'");
     Wait.Condition(() => Action.Click(By, FrameBy, sleepTimeout),
                    DefaultActionWaitCondition,
                    DefaultActionWaitTimeout);
 }
Beispiel #2
0
 //*****     ACTION     **********************************************************************************************************************
 /// <summary>
 ///     Select option if it not selected yet
 /// </summary>
 /// <param name="option">Option text</param>
 /// <returns>true if selection excecuted</returns>
 public bool SelectOption(string option)
 {
     if (!IsOptionSelected(option))
     {
         Log.Action($"Select {option} in {ComponentName}.");
         Wait.Condition(
             () => GetSelectElement().SelectByText(option),
             DefaultActionWaitCondition,
             DefaultActionWaitTimeout);
         return(true);
     }
     return(false);
 }