{"name":"@wdio/protocols","version":"9.2.2","description":"Utility package providing information about automation protocols","author":"Christian Bromann <mail@bromann.dev>","homepage":"https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-protocols","license":"MIT","type":"module","types":"./build/index.d.ts","exports":{".":{"import":"./build/index.js","types":"./build/index.d.ts"}},"typeScriptVersion":"3.8.3","repository":{"type":"git","url":"git+https://github.com/webdriverio/webdriverio.git","directory":"packages/wdio-protocols"},"keywords":["webdriver","wdio"],"bugs":{"url":"https://github.com/webdriverio/webdriverio/issues"},"publishConfig":{"access":"public"},"gitHead":"a82feee9b819e978b0d75dc899dd8284303935e1","_nodeVersion":"20.11.1","_npmVersion":"lerna/8.1.8/node@v20.11.1+x64 (linux)","_id":"@wdio/protocols@9.2.2","dist":{"integrity":"sha512-0GMUSHCbYm+J+rnRU6XPtaUgVCRICsiH6W5zCXpePm3wLlbmg/mvZ+4OnNErssbpIOulZuAmC2jNmut2AEfWSw==","shasum":"febff75ba6d0701e28fa90bac92104f3b6b0d2d3","tarball":"http://registry-npm.ywwl.com/@wdio/protocols/download/@wdio/protocols-9.2.2.tgz","fileCount":39,"unpackedSize":477255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5/6GnuT1DXSjgVKPQglLzzvky5e7opUZ0urh9Xv6vMQIhAO5TVAADdWDam7GiRYIDDkRxYYsTV4+DVaCfQ1rIxFQJ"}],"size":62662,"noattachment":false,"key":"/@wdio/protocols/-/@wdio/protocols-9.2.2.tgz"},"_npmUser":{"name":"wdio-user","email":"bot@webdriver.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/protocols_9.2.2_1730102441387_0.5178948735222375"},"_hasShrinkwrap":false,"readme":"WebdriverIO Protocol Helper\n===========================\n\nThis package stores the definition for various automation protocols such as [WebDriver](https://w3c.github.io/webdriver/) or vendor specific protocol extensions like for [SauceLabs](https://saucelabs.com/). Unless you are interested in generating a WebDriver client there should be no reason why you should need this package. This package holds the definition of the following protocols:\n\n- [WebDriver](https://w3c.github.io/webdriver/)\n- [Appium](http://appium.io/)\n- [Sauce Labs](https://saucelabs.com/)\n- Chrome (WebDriver extension when running Chromedriver)\n- Selenium (when running Selenium Standalone Server)\n\n## Install\n\nTo install the package, run:\n\n```sh\nnpm install @wdio/protocols\n```\n\n## Usage\n\nYou can get data by importing the package as follows:\n\n```js\nimport { WebDriverProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol } from '@wdio/protocols'\n\n/**\n * get description of session command\n */\nconsole.log(WebDriverProtocol['/session'].POST.description)\n```\n\n## TypeScript Interfaces\n\nThe package exposes TypeScript interfaces for all protocols. You can use them for your own project as follows:\n\n```ts\nimport type { WebDriverCommands } from '@wdio/protocol'\n\nimport { WebDriverCommands, WebDriverCommandsAsync } from './src'\n\nconst browser = {} as WebDriverCommands\nbrowser.sendAlertText(true)\n// fails with \"Argument of type 'boolean' is not assignable to parameter of type 'string'.ts(2345)\"\n\nconst asyncBrowser = {} as WebDriverCommandsAsync\nconst a = await asyncBrowser.getTitle()\ntype foo = typeof a // string\n```\n\n----\n\nFor more information on WebdriverIO see the [homepage](https://webdriver.io).\n","publish_time":1730102441601,"maintainers":[{"name":"christian-bromann","email":"mail@bromann.dev"},{"name":"wdio-user","email":"bot@webdriver.io"},{"name":"wswebcreation-nl","email":"wim@wswebcreation.nl"}],"_cnpm_publish_time":1730102441601,"dist-tags":{"beta":"7.0.0-beta.1","latest":"10.2.0","next":"10.2.0-alpha.100.sha-b38abd894","v8":"8.44.0","v9":"9.33.1"}}