playwright-go/scripts/data/interfaces.json
2021-07-31 10:48:30 +02:00

1229 lines
21 KiB
JSON

{
"BindingCall": {
"Call": [
"f BindingCallFunction",
null
]
},
"Browser": {
"extends": [
"EventEmitter"
],
"Close": [
null,
"error"
],
"Contexts": [
null,
"[]BrowserContext"
],
"IsConnected": [
null,
"bool"
],
"NewContext": [
"options ...BrowserNewContextOptions",
"(BrowserContext, error)"
],
"NewPage": [
"options ...BrowserNewContextOptions",
"(Page, error)"
],
"NewBrowserCDPSession": [
null,
"(CDPSession, error)"
],
"Version": [
null,
"string"
]
},
"CDPSession": {
"extends": [
"EventEmitter"
],
"Detach": [
null,
"error"
],
"Send": [
"method string, params map[string]interface{}",
"(interface{}, error)"
]
},
"BrowserContext": {
"extends": [
"EventEmitter"
],
"AddCookies": [
"cookies ...SetNetworkCookieParam",
"error"
],
"AddInitScript": [
"script BrowserContextAddInitScriptOptions",
"error"
],
"Browser": [
null,
"Browser"
],
"ClearCookies": [
null,
"error"
],
"ClearPermissions": [
null,
"error"
],
"Close": [
null,
"error"
],
"Cookies": [
"urls ...string",
"([]*NetworkCookie, error)"
],
"ExpectEvent": [
"event string, cb func() error",
"(interface{}, error)"
],
"ExposeBinding": [
"name string, binding BindingCallFunction, handle ...bool",
"error"
],
"ExposeFunction": [
"name string, binding ExposedFunction",
"error"
],
"GrantPermissions": [
"permissions []string, options ...BrowserContextGrantPermissionsOptions",
"error"
],
"NewCDPSession": [
"page Page",
"(CDPSession, error)"
],
"NewPage": [
"options ...BrowserNewPageOptions",
"(Page, error)"
],
"Pages": [
null,
"[]Page"
],
"SetDefaultNavigationTimeout": [
"timeout float64",
null
],
"SetDefaultTimeout": [
"timeout float64",
null
],
"SetExtraHTTPHeaders": [
"headers map[string]string",
"error"
],
"SetGeolocation": [
"gelocation *SetGeolocationOptions",
"error"
],
"ResetGeolocation": [
null,
"error"
],
"Route": [
"url interface{}, handler routeHandler",
"error"
],
"SetOffline": [
"offline bool",
"error"
],
"StorageState": [
"path ...string",
"*StorageState, error"
],
"Unroute": [
"url interface{}, handler ...routeHandler",
"error"
],
"WaitForEvent": [
"event string, predicate ...interface{}",
"interface{}"
]
},
"BrowserType": {
"ExecutablePath": [
null,
"string"
],
"Launch": [
"options ...BrowserTypeLaunchOptions",
"(Browser, error)"
],
"LaunchPersistentContext": [
"userDataDir string, options ...BrowserTypeLaunchPersistentContextOptions",
"(BrowserContext, error)"
],
"Name": [
null,
"string"
]
},
"ConsoleMessage": {
"Args": [
null,
"[]JSHandle"
],
"Location": [
null,
"ConsoleMessageLocation"
],
"String": [
null,
"string"
],
"Text": [
null,
"string"
],
"Type": [
null,
"string"
]
},
"Dialog": {
"Accept": [
"texts ...string",
"error"
],
"DefaultValue": [
null,
"string"
],
"Dismiss": [
null,
"error"
],
"Message": [
null,
"string"
],
"Type": [
null,
"string"
]
},
"Download": {
"Delete": [
null,
"error"
],
"Failure": [
null,
"error"
],
"Path": [
null,
"(string, error)"
],
"SaveAs": [
"path string",
"error"
],
"String": [
null,
"string"
],
"SuggestedFilename": [
null,
"string"
],
"URL": [
null,
"string"
]
},
"ElementHandle": {
"extends": [
"JSHandle"
],
"BoundingBox": [
null,
"(*Rect, error)"
],
"Check": [
"options ...ElementHandleCheckOptions",
"error"
],
"Click": [
"options ...ElementHandleClickOptions",
"error"
],
"ContentFrame": [
null,
"Frame, error"
],
"Dblclick": [
"options ...ElementHandleDblclickOptions",
"error"
],
"DispatchEvent": [
"typ string, initObjects ...interface{}",
"error"
],
"EvalOnSelector": [
"selector string, expression string, options ...interface{}",
"interface{}, error"
],
"EvalOnSelectorAll": [
"selector string, expression string, options ...interface{}",
"interface{}, error"
],
"Fill": [
"value string, options ...ElementHandleFillOptions",
"error"
],
"Focus": [
null,
"error"
],
"GetAttribute": [
"name string",
"(string, error)"
],
"Hover": [
"options ...ElementHandleHoverOptions",
"error"
],
"InnerHTML": [
null,
"string, error"
],
"InnerText": [
null,
"(string, error)"
],
"IsChecked": [
null,
"bool, error"
],
"IsDisabled": [
null,
"bool, error"
],
"IsEditable": [
null,
"bool, error"
],
"IsEnabled": [
null,
"bool, error"
],
"IsHidden": [
null,
"bool, error"
],
"IsVisible": [
null,
"bool, error"
],
"OwnerFrame": [
null,
"(Frame, error)"
],
"Press": [
"key string, options ...ElementHandlePressOptions",
"error"
],
"QuerySelector": [
"selector string",
"(ElementHandle, error)"
],
"QuerySelectorAll": [
"selector string",
"([]ElementHandle, error)"
],
"Screenshot": [
"options ...ElementHandleScreenshotOptions",
"([]byte, error)"
],
"ScrollIntoViewIfNeeded": [
"options ...ElementHandleScrollIntoViewIfNeededOptions",
"error"
],
"SelectOption": [
"values SelectOptionValues, options ...ElementHandleSelectOptionOptions",
"([]string, error)"
],
"SelectText": [
"options ...ElementHandleSelectTextOptions",
"error"
],
"SetInputFiles": [
"files []InputFile, options ...ElementHandleSetInputFilesOptions",
"error"
],
"Tap": [
"options ...ElementHandleTapOptions",
"error"
],
"TextContent": [
null,
"(string, error)"
],
"Type": [
"value string, options ...ElementHandleTypeOptions",
"error"
],
"Uncheck": [
"options ...ElementHandleUncheckOptions",
"error"
],
"WaitForElementState": [
"state string, options ...ElementHandleWaitForElementStateOptions",
"error"
],
"WaitForSelector": [
"selector string, options ...ElementHandleWaitForSelectorOptions",
"(ElementHandle, error)"
]
},
"EventEmitter": {
"Emit": [
"name string, payload ...interface{}",
null
],
"ListenerCount": [
"name string",
"int"
],
"On": [
"name string, handler interface{}",
null
],
"Once": [
"name string, handler interface{}",
null
],
"RemoveListener": [
"name string, handler interface{}",
null
]
},
"FileChooser": {
"Element": [
null,
"ElementHandle"
],
"IsMultiple": [
null,
"bool"
],
"Page": [
null,
"Page"
],
"SetFiles": [
"files []InputFile, options ...ElementHandleSetInputFilesOptions",
"error"
]
},
"Frame": {
"AddScriptTag": [
"options PageAddScriptTagOptions",
"(ElementHandle, error)"
],
"AddStyleTag": [
"options PageAddStyleTagOptions",
"(ElementHandle, error)"
],
"Check": [
"selector string, options ...FrameCheckOptions",
"error"
],
"ChildFrames": [
null,
"[]Frame"
],
"Click": [
"selector string, options ...PageClickOptions",
"error"
],
"Content": [
null,
"(string, error)"
],
"Dblclick": [
"selector string, options ...FrameDblclickOptions",
"error"
],
"DispatchEvent": [
"selector, typ string, eventInit interface{}, options ...PageDispatchEventOptions",
"error"
],
"Evaluate": [
"expression string, options ...interface{}",
"interface{}, error"
],
"EvaluateHandle": [
"expression string, options ...interface{}",
"JSHandle, error"
],
"EvalOnSelector": [
"selector string, expression string, options ...interface{}",
"(interface{}, error)"
],
"EvalOnSelectorAll": [
"selector string, expression string, options ...interface{}",
"(interface{}, error)"
],
"Fill": [
"selector string, value string, options ...FrameFillOptions",
"error"
],
"Focus": [
"selector string, options ...FrameFocusOptions",
"error"
],
"FrameElement": [
null,
"ElementHandle, error"
],
"GetAttribute": [
"selector string, name string, options ...PageGetAttributeOptions",
"string, error"
],
"Goto": [
"url string, options ...PageGotoOptions",
"Response, error"
],
"Hover": [
"selector string, options ...PageHoverOptions",
"error"
],
"InnerHTML": [
"selector string, options ...PageInnerHTMLOptions",
"string, error"
],
"InnerText": [
"selector string, options ...PageInnerTextOptions",
"string, error"
],
"IsDetached": [
null,
"bool"
],
"IsChecked": [
"selector string, options ...FrameIsCheckedOptions",
"bool, error"
],
"IsDisabled": [
"selector string, options ...FrameIsDisabledOptions",
"bool, error"
],
"IsEditable": [
"selector string, options ...FrameIsEditableOptions",
"bool, error"
],
"IsEnabled": [
"selector string, options ...FrameIsEnabledOptions",
"bool, error"
],
"IsHidden": [
"selector string, options ...FrameIsHiddenOptions",
"bool, error"
],
"IsVisible": [
"selector string, options ...FrameIsVisibleOptions",
"bool, error"
],
"Name": [
null,
"string"
],
"Page": [
null,
"Page"
],
"ParentFrame": [
null,
"Frame"
],
"Press": [
"selector, key string, options ...PagePressOptions",
"error"
],
"QuerySelector": [
"selector string",
"(ElementHandle, error)"
],
"QuerySelectorAll": [
"selector string",
"([]ElementHandle, error)"
],
"SetContent": [
"content string, options ...PageSetContentOptions",
"error"
],
"SelectOption": [
"selector string, values SelectOptionValues, options ...FrameSelectOptionOptions",
"([]string, error)"
],
"SetInputFiles": [
"selector string, files []InputFile, options ...FrameSetInputFilesOptions",
"error"
],
"Tap": [
"selector string, options ...FrameTapOptions",
"error"
],
"TextContent": [
"selector string, options ...FrameTextContentOptions",
"string, error"
],
"Title": [
null,
"string, error"
],
"Type": [
"selector, text string, options ...PageTypeOptions",
"error"
],
"URL": [
null,
"string"
],
"Uncheck": [
"selector string, options ...FrameUncheckOptions",
"error"
],
"WaitForEvent": [
"event string, predicate ...interface{}",
"interface{}"
],
"WaitForFunction": [
"expression string, arg interface{}, options ...FrameWaitForFunctionOptions",
"(JSHandle, error)"
],
"WaitForLoadState": [
"given ...string",
null
],
"WaitForNavigation": [
"options ...PageWaitForNavigationOptions",
"(Response, error)"
],
"WaitForSelector": [
"selector string, options ...PageWaitForSelectorOptions",
"(ElementHandle, error)"
],
"WaitForTimeout": [
"timeout float64",
null
]
},
"JSHandle": {
"AsElement": [
null,
"ElementHandle"
],
"Dispose": [
null,
"error"
],
"Evaluate": [
"expression string, options ...interface{}",
"interface{}, error"
],
"EvaluateHandle": [
"expression string, options ...interface{}",
"JSHandle, error"
],
"GetProperties": [
null,
"map[string]JSHandle, error"
],
"GetProperty": [
"name string",
"JSHandle, error"
],
"JSONValue": [
null,
"interface{}, error"
],
"String": [
null,
"string"
]
},
"Keyboard": {
"Down": [
"key string",
"error"
],
"InsertText": [
"text string",
"error"
],
"Press": [
"key string, options ...KeyboardPressOptions",
"error"
],
"Type": [
"text string, options ...KeyboardTypeOptions",
"error"
],
"Up": [
"key string",
"error"
]
},
"Mouse": {
"Click": [
"x, y float64, options ...MouseClickOptions",
"error"
],
"Dblclick": [
"x, y float64, options ...MouseDblclickOptions",
"error"
],
"Down": [
"options ...MouseDownOptions",
"error"
],
"Move": [
"x float64, y float64, options ...MouseMoveOptions",
"error"
],
"Up": [
"options ...MouseUpOptions",
"error"
]
},
"Page": {
"extends": [
"EventEmitter"
],
"Mouse": [
null,
"Mouse"
],
"Keyboard": [
null,
"Keyboard"
],
"Touchscreen": [
null,
"Touchscreen"
],
"AddInitScript": [
"script PageAddInitScriptOptions",
"error"
],
"AddScriptTag": [
"options PageAddScriptTagOptions",
"(ElementHandle, error)"
],
"AddStyleTag": [
"options PageAddStyleTagOptions",
"(ElementHandle, error)"
],
"BringToFront": [
null,
"error"
],
"Check": [
"selector string, options ...FrameCheckOptions",
"error"
],
"Click": [
"selector string, options ...PageClickOptions",
"error"
],
"Close": [
"options ...PageCloseOptions",
"error"
],
"Content": [
null,
"string, error"
],
"Context": [
null,
"BrowserContext"
],
"Dblclick": [
"expression string, options ...FrameDblclickOptions",
"error"
],
"DispatchEvent": [
"selector string, typ string, options ...PageDispatchEventOptions",
"error"
],
"ExposeBinding": [
"name string, binding BindingCallFunction, handle ...bool",
"error"
],
"ExposeFunction": [
"name string, binding ExposedFunction",
"error"
],
"EmulateMedia": [
"options ...PageEmulateMediaOptions",
"error"
],
"Evaluate": [
"expression string, options ...interface{}",
"interface{}, error"
],
"EvaluateHandle": [
"expression string, options ...interface{}",
"JSHandle, error"
],
"EvalOnSelector": [
"selector string, expression string, options ...interface{}",
"interface{}, error"
],
"EvalOnSelectorAll": [
"selector string, expression string, options ...interface{}",
"interface{}, error"
],
"ExpectConsoleMessage": [
"cb func() error",
"ConsoleMessage, error"
],
"ExpectDownload": [
"cb func() error",
"Download, error"
],
"ExpectEvent": [
"event string, cb func() error, predicates ...interface{}",
"interface{}, error"
],
"ExpectFileChooser": [
"cb func() error",
"FileChooser, error"
],
"ExpectLoadState": [
"state string, cb func() error",
"error"
],
"ExpectNavigation": [
"cb func() error, options ...PageWaitForNavigationOptions",
"Response, error"
],
"ExpectPopup": [
"cb func() error",
"Page, error"
],
"ExpectRequest": [
"url interface{}, cb func() error, options ...interface{}",
"Request, error"
],
"ExpectResponse": [
"url interface{}, cb func() error, options ...interface{}",
"Response, error"
],
"ExpectWorker": [
"cb func() error",
"Worker, error"
],
"ExpectedDialog": [
"cb func() error",
"Dialog, error"
],
"Fill": [
"selector, text string, options ...FrameFillOptions",
"error"
],
"Focus": [
"expression string, options ...FrameFocusOptions",
"error"
],
"Frame": [
"options PageFrameOptions",
"Frame"
],
"Frames": [
null,
"[]Frame"
],
"GetAttribute": [
"selector string, name string, options ...PageGetAttributeOptions",
"(string, error)"
],
"GoBack": [
"options ...PageGoBackOptions",
"Response, error"
],
"GoForward": [
"options ...PageGoForwardOptions",
"(Response, error)"
],
"Goto": [
"url string, options ...PageGotoOptions",
"(Response, error)"
],
"Hover": [
"selector string, options ...PageHoverOptions",
"error"
],
"InnerHTML": [
"selector string, options ...PageInnerHTMLOptions",
"(string, error)"
],
"InnerText": [
"selector string, options ...PageInnerTextOptions",
"(string, error)"
],
"IsClosed": [
null,
"bool"
],
"IsChecked": [
"selector string, options ...FrameIsCheckedOptions",
"bool, error"
],
"IsDisabled": [
"selector string, options ...FrameIsDisabledOptions",
"bool, error"
],
"IsEditable": [
"selector string, options ...FrameIsEditableOptions",
"bool, error"
],
"IsEnabled": [
"selector string, options ...FrameIsEnabledOptions",
"bool, error"
],
"IsHidden": [
"selector string, options ...FrameIsHiddenOptions",
"bool, error"
],
"IsVisible": [
"selector string, options ...FrameIsVisibleOptions",
"bool, error"
],
"MainFrame": [
null,
"Frame"
],
"Opener": [
null,
"Page, error"
],
"PDF": [
"options ...PagePdfOptions",
"[]byte, error"
],
"Press": [
"selector, key string, options ...PagePressOptions",
"error"
],
"QuerySelector": [
"selector string",
"ElementHandle, error"
],
"QuerySelectorAll": [
"selector string",
"[]ElementHandle, error"
],
"Reload": [
"options ...PageReloadOptions",
"Response, error"
],
"Route": [
"url interface{}, handler routeHandler",
"error"
],
"Screenshot": [
"options ...PageScreenshotOptions",
"([]byte, error)"
],
"SelectOption": [
"selector string, values SelectOptionValues, options ...FrameSelectOptionOptions",
"([]string, error)"
],
"SetContent": [
"content string, options ...PageSetContentOptions",
"error"
],
"SetDefaultNavigationTimeout": [
"timeout float64",
null
],
"SetDefaultTimeout": [
"timeout float64",
null
],
"SetExtraHTTPHeaders": [
"headers map[string]string",
"error"
],
"SetInputFiles": [
"selector string, files []InputFile, options ...FrameSetInputFilesOptions",
"error"
],
"SetViewportSize": [
"width, height int",
"error"
],
"Tap": [
"selector string, options ...FrameTapOptions",
"error"
],
"TextContent": [
"selector string, options ...FrameTextContentOptions",
"(string, error)"
],
"Title": [
null,
"(string, error)"
],
"Type": [
"selector, text string, options ...PageTypeOptions",
"error"
],
"URL": [
null,
"string"
],
"Uncheck": [
"selector string, options ...FrameUncheckOptions",
"error"
],
"Unroute": [
"url interface{}, handler ...routeHandler",
"error"
],
"Video": [
null,
"Video"
],
"ViewportSize": [
null,
"ViewportSize"
],
"WaitForEvent": [
"event string, predicate ...interface{}",
"interface{}"
],
"WaitForFunction": [
"expression string, arg interface{}, options ...FrameWaitForFunctionOptions",
"(JSHandle, error)"
],
"WaitForLoadState": [
"state ...string",
null
],
"WaitForNavigation": [
"options ...PageWaitForNavigationOptions",
"(Response, error)"
],
"WaitForRequest": [
"url interface{}, options ...interface{}",
"Request"
],
"WaitForResponse": [
"url interface{}, options ...interface{}",
"Response"
],
"WaitForSelector": [
"selector string, options ...PageWaitForSelectorOptions",
"(ElementHandle, error)"
],
"WaitForTimeout": [
"timeout float64",
null
],
"Workers": [
null,
"[]Worker"
]
},
"Request": {
"Failure": [
null,
"*RequestFailure"
],
"Frame": [
null,
"Frame"
],
"Headers": [
null,
"map[string]string"
],
"IsNavigationRequest": [
null,
"bool"
],
"Method": [
null,
"string"
],
"PostData": [
null,
"(string, error)"
],
"PostDataBuffer": [
null,
"([]byte, error)"
],
"PostDataJSON": [
"v interface{}",
"error"
],
"RedirectedFrom": [
null,
"Request"
],
"RedirectedTo": [
null,
"Request"
],
"ResourceType": [
null,
"string"
],
"Response": [
null,
"(Response, error)"
],
"Timing": [
null,
"*ResourceTiming"
],
"URL": [
null,
"string"
]
},
"Response": {
"Body": [
null,
"[]byte, error"
],
"Finished": [
null,
"error"
],
"Frame": [
null,
"Frame"
],
"Headers": [
null,
"map[string]string"
],
"JSON": [
"v interface{}",
"error"
],
"Ok": [
null,
"bool"
],
"Request": [
null,
"Request"
],
"Status": [
null,
"int"
],
"StatusText": [
null,
"string"
],
"Text": [
null,
"(string, error)"
],
"URL": [
null,
"string"
]
},
"Route": {
"Abort": [
"errorCode ...string",
"error"
],
"Continue": [
"options ...RouteContinueOptions",
"error"
],
"Fulfill": [
"options RouteFulfillOptions",
"error"
],
"Request": [
null,
"Request"
]
},
"Touchscreen": {
"Tap": [
"x int, y int",
"error"
]
},
"WebSocket": {
"extends": [
"EventEmitter"
],
"IsClosed": [
null,
"bool"
],
"URL": [
null,
"string"
],
"WaitForEvent": [
"event string, predicate ...interface{}",
"interface{}"
]
},
"Video": {
"Path": [
null,
"string"
],
"Delete": [
null,
"error"
],
"SaveAs": [
"path string",
"error"
]
},
"Worker": {
"extends": [
"EventEmitter"
],
"Evaluate": [
"expression string, options ...interface{}",
"interface{}, error"
],
"EvaluateHandle": [
"expression string, options ...interface{}",
"(JSHandle, error)"
],
"URL": [
null,
"string"
],
"WaitForEvent": [
"event string, predicate ...interface{}",
"interface{}"
],
"ExpectEvent": [
"event string, cb func() error, predicates ...interface{}",
"(interface{}, error)"
]
}
}