...

Source file src/github.com/playwright-community/playwright-go/generated-enums.go

Documentation: github.com/playwright-community/playwright-go

     1  package playwright
     2  
     3  func getMixedState(in string) *MixedState {
     4  	v := MixedState(in)
     5  	return &v
     6  }
     7  
     8  type MixedState string
     9  
    10  var (
    11  	MixedStateOn    *MixedState = getMixedState("On")
    12  	MixedStateOff               = getMixedState("Off")
    13  	MixedStateMixed             = getMixedState("Mixed")
    14  )
    15  
    16  func getColorScheme(in string) *ColorScheme {
    17  	v := ColorScheme(in)
    18  	return &v
    19  }
    20  
    21  type ColorScheme string
    22  
    23  var (
    24  	ColorSchemeLight        *ColorScheme = getColorScheme("light")
    25  	ColorSchemeDark                      = getColorScheme("dark")
    26  	ColorSchemeNoPreference              = getColorScheme("no-preference")
    27  )
    28  
    29  func getForcedColors(in string) *ForcedColors {
    30  	v := ForcedColors(in)
    31  	return &v
    32  }
    33  
    34  type ForcedColors string
    35  
    36  var (
    37  	ForcedColorsActive *ForcedColors = getForcedColors("active")
    38  	ForcedColorsNone                 = getForcedColors("none")
    39  )
    40  
    41  func getReducedMotion(in string) *ReducedMotion {
    42  	v := ReducedMotion(in)
    43  	return &v
    44  }
    45  
    46  type ReducedMotion string
    47  
    48  var (
    49  	ReducedMotionReduce       *ReducedMotion = getReducedMotion("reduce")
    50  	ReducedMotionNoPreference                = getReducedMotion("no-preference")
    51  )
    52  
    53  func getMouseButton(in string) *MouseButton {
    54  	v := MouseButton(in)
    55  	return &v
    56  }
    57  
    58  type MouseButton string
    59  
    60  var (
    61  	MouseButtonLeft   *MouseButton = getMouseButton("left")
    62  	MouseButtonRight               = getMouseButton("right")
    63  	MouseButtonMiddle              = getMouseButton("middle")
    64  )
    65  
    66  func getKeyboardModifier(in string) *KeyboardModifier {
    67  	v := KeyboardModifier(in)
    68  	return &v
    69  }
    70  
    71  type KeyboardModifier string
    72  
    73  var (
    74  	KeyboardModifierAlt     *KeyboardModifier = getKeyboardModifier("Alt")
    75  	KeyboardModifierControl                   = getKeyboardModifier("Control")
    76  	KeyboardModifierMeta                      = getKeyboardModifier("Meta")
    77  	KeyboardModifierShift                     = getKeyboardModifier("Shift")
    78  )
    79  
    80  func getScreenshotAnimations(in string) *ScreenshotAnimations {
    81  	v := ScreenshotAnimations(in)
    82  	return &v
    83  }
    84  
    85  type ScreenshotAnimations string
    86  
    87  var (
    88  	ScreenshotAnimationsDisabled *ScreenshotAnimations = getScreenshotAnimations("disabled")
    89  	ScreenshotAnimationsAllow                          = getScreenshotAnimations("allow")
    90  )
    91  
    92  func getScreenshotFonts(in string) *ScreenshotFonts {
    93  	v := ScreenshotFonts(in)
    94  	return &v
    95  }
    96  
    97  type ScreenshotFonts string
    98  
    99  var (
   100  	ScreenshotFontsReady  *ScreenshotFonts = getScreenshotFonts("ready")
   101  	ScreenshotFontsNowait                  = getScreenshotFonts("nowait")
   102  )
   103  
   104  func getScreenshotSize(in string) *ScreenshotSize {
   105  	v := ScreenshotSize(in)
   106  	return &v
   107  }
   108  
   109  type ScreenshotSize string
   110  
   111  var (
   112  	ScreenshotSizeCss    *ScreenshotSize = getScreenshotSize("css")
   113  	ScreenshotSizeDevice                 = getScreenshotSize("device")
   114  )
   115  
   116  func getScreenshotType(in string) *ScreenshotType {
   117  	v := ScreenshotType(in)
   118  	return &v
   119  }
   120  
   121  type ScreenshotType string
   122  
   123  var (
   124  	ScreenshotTypePng  *ScreenshotType = getScreenshotType("png")
   125  	ScreenshotTypeJpeg                 = getScreenshotType("jpeg")
   126  )
   127  
   128  func getElementState(in string) *ElementState {
   129  	v := ElementState(in)
   130  	return &v
   131  }
   132  
   133  type ElementState string
   134  
   135  var (
   136  	ElementStateVisible  *ElementState = getElementState("visible")
   137  	ElementStateHidden                 = getElementState("hidden")
   138  	ElementStateStable                 = getElementState("stable")
   139  	ElementStateEnabled                = getElementState("enabled")
   140  	ElementStateDisabled               = getElementState("disabled")
   141  	ElementStateEditable               = getElementState("editable")
   142  )
   143  
   144  func getWaitForSelectorState(in string) *WaitForSelectorState {
   145  	v := WaitForSelectorState(in)
   146  	return &v
   147  }
   148  
   149  type WaitForSelectorState string
   150  
   151  var (
   152  	WaitForSelectorStateAttached *WaitForSelectorState = getWaitForSelectorState("attached")
   153  	WaitForSelectorStateDetached                       = getWaitForSelectorState("detached")
   154  	WaitForSelectorStateVisible                        = getWaitForSelectorState("visible")
   155  	WaitForSelectorStateHidden                         = getWaitForSelectorState("hidden")
   156  )
   157  
   158  func getWaitUntilState(in string) *WaitUntilState {
   159  	v := WaitUntilState(in)
   160  	return &v
   161  }
   162  
   163  type WaitUntilState string
   164  
   165  var (
   166  	WaitUntilStateLoad             *WaitUntilState = getWaitUntilState("load")
   167  	WaitUntilStateDomcontentloaded                 = getWaitUntilState("domcontentloaded")
   168  	WaitUntilStateNetworkidle                      = getWaitUntilState("networkidle")
   169  	WaitUntilStateCommit                           = getWaitUntilState("commit")
   170  )
   171  
   172  func getLoadState(in string) *LoadState {
   173  	v := LoadState(in)
   174  	return &v
   175  }
   176  
   177  type LoadState string
   178  
   179  var (
   180  	LoadStateLoad             *LoadState = getLoadState("load")
   181  	LoadStateDomcontentloaded            = getLoadState("domcontentloaded")
   182  	LoadStateNetworkidle                 = getLoadState("networkidle")
   183  )
   184  
   185  func getMedia(in string) *Media {
   186  	v := Media(in)
   187  	return &v
   188  }
   189  
   190  type Media string
   191  
   192  var (
   193  	MediaScreen *Media = getMedia("screen")
   194  	MediaPrint         = getMedia("print")
   195  	MediaNull          = getMedia("null")
   196  )
   197  
   198  func getSameSiteAttribute(in string) *SameSiteAttribute {
   199  	v := SameSiteAttribute(in)
   200  	return &v
   201  }
   202  
   203  type SameSiteAttribute string
   204  
   205  var (
   206  	SameSiteAttributeStrict *SameSiteAttribute = getSameSiteAttribute("Strict")
   207  	SameSiteAttributeLax                       = getSameSiteAttribute("Lax")
   208  	SameSiteAttributeNone                      = getSameSiteAttribute("None")
   209  )
   210  

View as plain text