1
- using System ;
2
- using Boa . Constrictor . Screenplay ;
1
+ // using Boa.Constrictor.Screenplay;
3
2
4
- namespace Boa . Constrictor . Selenium
5
- {
6
- /// <summary>
7
- /// Performs a list of tasks within a frame then switches to DefaultContent.
8
- /// </summary>
9
- public class PerformInFrame : ITask
10
- {
11
- #region Constructors
3
+ // namespace Boa.Constrictor.Selenium
4
+ // {
5
+ // /// <summary>
6
+ // /// Performs a list of tasks within a frame then switches to DefaultContent.
7
+ // /// </summary>
8
+ // public class PerformInFrame : ITask
9
+ // {
10
+ // #region Constructors
12
11
13
- /// <summary>
14
- /// Private constructor.
15
- /// (Use static builder methods to construct.)
16
- /// </summary>
17
- /// <param name="locator">The locator.</param>
18
- /// <param name="tasks">The Task list.</param>
19
- private PerformInFrame ( IWebLocator locator , ITask [ ] tasks )
20
- {
21
- Locator = locator ;
22
- Tasks = tasks ;
23
- }
12
+ // /// <summary>
13
+ // /// Private constructor.
14
+ // /// (Use static builder methods to construct.)
15
+ // /// </summary>
16
+ // /// <param name="locator">The locator.</param>
17
+ // /// <param name="tasks">The Task list.</param>
18
+ // private PerformInFrame(IWebLocator locator, ITask[] tasks)
19
+ // {
20
+ // Locator = locator;
21
+ // Tasks = tasks;
22
+ // }
24
23
25
- #endregion
24
+ // #endregion
26
25
27
- #region Properties
26
+ // #region Properties
28
27
29
- /// <summary>
30
- /// The locator.
31
- /// </summary>
32
- private IWebLocator Locator { get ; }
28
+ // /// <summary>
29
+ // /// The locator.
30
+ // /// </summary>
31
+ // private IWebLocator Locator { get; }
33
32
34
- /// <summary>
35
- /// The Task list.
36
- /// </summary>
37
- private ITask [ ] Tasks { get ; }
33
+ // /// <summary>
34
+ // /// The Task list.
35
+ // /// </summary>
36
+ // private ITask[] Tasks { get; }
38
37
39
- #endregion
38
+ // #endregion
40
39
41
- #region Builder Methods
40
+ // #region Builder Methods
42
41
43
- /// <summary>
44
- /// Builder method.
45
- /// </summary>
46
- /// <param name="locator">The locator.</param>
47
- /// <param name="tasks">The Task list.</param>
48
- public static PerformInFrame At ( IWebLocator locator , params ITask [ ] tasks ) =>
49
- new PerformInFrame ( locator , tasks ) ;
42
+ // /// <summary>
43
+ // /// Builder method.
44
+ // /// </summary>
45
+ // /// <param name="locator">The locator.</param>
46
+ // /// <param name="tasks">The Task list.</param>
47
+ // public static PerformInFrame At(IWebLocator locator, params ITask[] tasks) =>
48
+ // new PerformInFrame(locator, tasks);
50
49
51
- #endregion
50
+ // #endregion
52
51
53
- #region Methods
52
+ // #region Methods
54
53
55
- /// <summary>
56
- /// Runs the Tasks in the order given by the list.
57
- /// </summary>
58
- /// <param name="actor">The Screenplay Actor.</param>
59
- public void PerformAs ( IActor actor )
60
- {
61
- actor . AttemptsTo ( SwitchFrame . To ( Locator ) ) ;
62
- actor . AttemptsTo ( RunTasks . InOrder ( Tasks ) ) ;
63
- actor . AttemptsTo ( SwitchFrame . ToDefaultContent ( ) ) ;
64
- }
54
+ // /// <summary>
55
+ // /// Runs the Tasks in the order given by the list.
56
+ // /// </summary>
57
+ // /// <param name="actor">The Screenplay Actor.</param>
58
+ // public void PerformAs(IActor actor)
59
+ // {
60
+ // actor.AttemptsTo(SwitchFrame.To(Locator));
61
+ // actor.AttemptsTo(RunTasks.InOrder(Tasks));
62
+ // actor.AttemptsTo(SwitchFrame.ToDefaultContent());
63
+ // }
65
64
66
- /// <summary>
67
- /// Returns a description of the Task.
68
- /// </summary>
69
- /// <returns></returns>
70
- public override string ToString ( ) =>
71
- $ "run Tasks within the frame '{ Locator . Description } '";
65
+ // /// <summary>
66
+ // /// Returns a description of the Task.
67
+ // /// </summary>
68
+ // /// <returns></returns>
69
+ // public override string ToString() =>
70
+ // $"run Tasks within the frame '{Locator.Description}'";
72
71
73
- #endregion
74
- }
75
- }
72
+ // #endregion
73
+ // }
74
+ // }
0 commit comments