Example #1
0
 public void Execute(Arguments arguments)
 {
     try
     {
         IEWrapper ie = IEManager.CurrentIE;
         ie.SetAttribute(arguments.Name.Value,
                         arguments.Value?.Value,
                         arguments.Search.Value,
                         arguments.By.Value,
                         (int)arguments.Timeout.Value.TotalMilliseconds,
                         arguments.NoWait.Value);
     }
     catch (Exception ex)
     {
         throw new ApplicationException($"Error occured while setting value '{arguments.Value?.Value ?? string.Empty}' of attribute '{arguments.Name.Value}'. Message: {ex.Message}", ex);
     }
 }