View Javadoc

1   /*
2    * Copyright 2008 Robert Zimmermann
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *
16   */
17  package com.unitedinternet.portal.selenium.utils.logging;
18  
19  /**
20   * Special logging commands to extend CommandProcessor of Selenium.
21   *
22   * @author Robert Zimmermann
23   *
24   * $Id: SeleniumCommandExtensions.java 111 2008-04-18 15:21:02Z ralf2511 $
25   */
26  public enum SeleniumCommandExtensions {
27      // TODO: adjust eclipse code formatter to keep enum element each on one line
28      COMMAND_EXTENSION_LOG_COMMENT("X-1and1-logComment"),
29      COMMAND_EXTENSION_LOG_AUTO_SCREENSHOT("X-1and1-logAutoScreenshot"),
30      COMMAND_EXTENSION_LOG_ASSERTION("X-1and1-logAssertion"),
31      COMMAND_EXTENSION_LOG_RESOURCE("X-1and1-logResource");
32  
33      private String name;
34  
35      private SeleniumCommandExtensions(String newName) {
36          this.name = newName;
37      }
38  
39      public String getName() {
40          return this.name;
41      }
42  }