aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/tools/webdriver/webdriver/capabilities.py
blob: 44bb1fd647d45db22bc306d01bf0a737d09891e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""Definition of various capability-related constants."""

class Capability:
    """Standard capability names."""
    BROWSER_NAME = 'browserName'
    BROWSER_VERSION = 'browserVersion'
    PAGE_LOADING_STRATEGY = 'pageLoadingStrategy'
    PLATFORM_NAME = 'platformName'
    PLATFORM_VERSION = 'platformVersion'
    SECURE_SSL = 'secureSsl'
    TAKES_SCREENSHOT = 'takesScreenshot'
    TAKE_ELEMENT_SCREENSHOT = 'takeElementScreenshot'
    TOUCH_ENABLED = 'touchEnabled'

class Platform:
    """Standard OS names."""
    ANY = 'any'
    ANDROID = 'android'
    IOS = 'ios'
    LINUX = 'linux'
    MAC = 'mac'
    UNIX = 'unix'
    WINDOW = 'windows'

class PageLoadingStrategy:
    """Standard page loading strategies."""
    CONSERVATIVE = 'conservative'
    NORMAL = 'normal'
    EAGER = 'eager'
    NONE = 'none'