"Fossies" - the Fresh Open Source Software Archive

Member "selenium-selenium-4.8.1/py/selenium/webdriver/common/keys.py" (17 Feb 2023, 2317 Bytes) of package /linux/www/selenium-selenium-4.8.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "keys.py" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 4.7.0_vs_4.8.0.

    1 # Licensed to the Software Freedom Conservancy (SFC) under one
    2 # or more contributor license agreements.  See the NOTICE file
    3 # distributed with this work for additional information
    4 # regarding copyright ownership.  The SFC licenses this file
    5 # to you under the Apache License, Version 2.0 (the
    6 # "License"); you may not use this file except in compliance
    7 # with the License.  You may obtain a copy of the License at
    8 #
    9 #   http://www.apache.org/licenses/LICENSE-2.0
   10 #
   11 # Unless required by applicable law or agreed to in writing,
   12 # software distributed under the License is distributed on an
   13 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   14 # KIND, either express or implied.  See the License for the
   15 # specific language governing permissions and limitations
   16 # under the License.
   17 
   18 """The Keys implementation."""
   19 
   20 
   21 class Keys:
   22     """Set of special keys codes."""
   23 
   24     NULL = "\ue000"
   25     CANCEL = "\ue001"  # ^break
   26     HELP = "\ue002"
   27     BACKSPACE = "\ue003"
   28     BACK_SPACE = BACKSPACE
   29     TAB = "\ue004"
   30     CLEAR = "\ue005"
   31     RETURN = "\ue006"
   32     ENTER = "\ue007"
   33     SHIFT = "\ue008"
   34     LEFT_SHIFT = SHIFT
   35     CONTROL = "\ue009"
   36     LEFT_CONTROL = CONTROL
   37     ALT = "\ue00a"
   38     LEFT_ALT = ALT
   39     PAUSE = "\ue00b"
   40     ESCAPE = "\ue00c"
   41     SPACE = "\ue00d"
   42     PAGE_UP = "\ue00e"
   43     PAGE_DOWN = "\ue00f"
   44     END = "\ue010"
   45     HOME = "\ue011"
   46     LEFT = "\ue012"
   47     ARROW_LEFT = LEFT
   48     UP = "\ue013"
   49     ARROW_UP = UP
   50     RIGHT = "\ue014"
   51     ARROW_RIGHT = RIGHT
   52     DOWN = "\ue015"
   53     ARROW_DOWN = DOWN
   54     INSERT = "\ue016"
   55     DELETE = "\ue017"
   56     SEMICOLON = "\ue018"
   57     EQUALS = "\ue019"
   58 
   59     NUMPAD0 = "\ue01a"  # number pad keys
   60     NUMPAD1 = "\ue01b"
   61     NUMPAD2 = "\ue01c"
   62     NUMPAD3 = "\ue01d"
   63     NUMPAD4 = "\ue01e"
   64     NUMPAD5 = "\ue01f"
   65     NUMPAD6 = "\ue020"
   66     NUMPAD7 = "\ue021"
   67     NUMPAD8 = "\ue022"
   68     NUMPAD9 = "\ue023"
   69     MULTIPLY = "\ue024"
   70     ADD = "\ue025"
   71     SEPARATOR = "\ue026"
   72     SUBTRACT = "\ue027"
   73     DECIMAL = "\ue028"
   74     DIVIDE = "\ue029"
   75 
   76     F1 = "\ue031"  # function  keys
   77     F2 = "\ue032"
   78     F3 = "\ue033"
   79     F4 = "\ue034"
   80     F5 = "\ue035"
   81     F6 = "\ue036"
   82     F7 = "\ue037"
   83     F8 = "\ue038"
   84     F9 = "\ue039"
   85     F10 = "\ue03a"
   86     F11 = "\ue03b"
   87     F12 = "\ue03c"
   88 
   89     META = "\ue03d"
   90     COMMAND = "\ue03d"
   91     ZENKAKU_HANKAKU = "\ue040"