File tree Expand file tree Collapse file tree
dotnet/src/webdriver/Interactions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ public IList<ActionSequence> ToActionSequenceList()
6666 return new List < ActionSequence > ( this . sequences . Values ) . AsReadOnly ( ) ;
6767 }
6868
69+ /// <summary>
70+ /// Resets the list of sequences.
71+ /// </summary>
72+ public void ClearSequences ( )
73+ {
74+ this . sequences = new Dictionary < InputDevice , ActionSequence > ( ) ;
75+ }
76+
6977 /// <summary>
7078 /// Returns a string that represents the current <see cref="ActionBuilder"/>.
7179 /// </summary>
Original file line number Diff line number Diff line change @@ -483,6 +483,7 @@ public IAction Build()
483483 public void Perform ( )
484484 {
485485 this . actionExecutor . PerformActions ( this . actionBuilder . ToActionSequenceList ( ) ) ;
486+ this . actionBuilder . ClearSequences ( ) ;
486487 }
487488
488489 /// <summary>
You can’t perform that action at this time.
0 commit comments