MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / PerformActions

Method PerformActions

dotnet/src/webdriver/WebDriver.cs:385–402  ·  view source on GitHub ↗

Performs the specified list of actions with this action executor. The list of action sequences to perform.

(IList<ActionSequence> actionSequenceList)

Source from the content-addressed store, hash-verified

383 /// </summary>
384 /// <param name="actionSequenceList">The list of action sequences to perform.</param>
385 public void PerformActions(IList<ActionSequence> actionSequenceList)
386 {
387 if (actionSequenceList == null)
388 {
389 throw new ArgumentNullException(nameof(actionSequenceList), "List of action sequences must not be null");
390 }
391
392 List<object> objectList = new List<object>();
393 foreach (ActionSequence sequence in actionSequenceList)
394 {
395 objectList.Add(sequence.ToDictionary());
396 }
397
398 Dictionary<string, object?> parameters = new Dictionary<string, object?>();
399 parameters["actions"] = objectList;
400
401 this.Execute(DriverCommand.Actions, parameters);
402 }
403
404 /// <summary>
405 /// Resets the input state of the action executor.

Callers 1

PerformMethod · 0.45

Calls 3

ExecuteMethod · 0.95
AddMethod · 0.45
ToDictionaryMethod · 0.45

Tested by

no test coverage detected