Defines an action that consists of a list of other actions to be performed in the browser.
Inheritance: IAction
コード例 #1
0
ファイル: Actions.cs プロジェクト: brucezhang80/Selenium2
        /// <summary>
        /// Builds the sequence of actions.
        /// </summary>
        /// <returns>A composite <see cref="IAction"/> which can be used to perform the actions.</returns>
        public IAction Build()
        {
            CompositeAction toReturn = this.action;

            this.action = new CompositeAction();
            return(toReturn);
        }
コード例 #2
0
        public IAction Build()
        {
            CompositeAction result = this.action;

            this.action = new CompositeAction();
            return(result);
        }
コード例 #3
0
        /// <summary>
        /// Builds the sequence of actions.
        /// </summary>
        /// <returns>A composite <see cref="IAction"/> which can be used to perform the actions.</returns>
        public IAction Build()
        {
            IAction toReturn = new BuiltAction(driver, actionBuilder, action);

            action        = new CompositeAction();
            actionBuilder = new ActionBuilder();
            return(toReturn);
        }
コード例 #4
0
 public BuiltAction(IWebDriver driver, ActionBuilder actionBuilder, CompositeAction action)
 {
     this.driver        = driver;
     this.actionBuilder = actionBuilder;
     this.action        = action;
 }
コード例 #5
0
ファイル: Actions.cs プロジェクト: akiellor/selenium
 /// <summary>
 /// Builds the sequence of actions.
 /// </summary>
 /// <returns>A composite <see cref="IAction"/> which can be used to perform the actions.</returns>
 public IAction Build()
 {
     CompositeAction toReturn = this.action;
     this.action = new CompositeAction();
     return toReturn;
 }