{"name":"@wdio/protocols","version":"8.44.0","keywords":["webdriver","wdio"],"author":"Christian Bromann <mail@bromann.dev>","license":"MIT","_id":"@wdio/protocols@8.44.0","maintainers":[{"name":"christian-bromann","email":"mail@bromann.dev"},{"name":"wdio-user","email":"bot@webdriver.io"},{"name":"wswebcreation-nl","email":"wim@wswebcreation.nl"}],"homepage":"https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-protocols","bugs":{"url":"https://github.com/webdriverio/webdriverio/issues"},"dist":{"shasum":"a48300b8d0a102a591de1e80c95a27c0cde49044","tarball":"http://registry-npm.ywwl.com/@wdio/protocols/download/@wdio/protocols-8.44.0.tgz","fileCount":63,"integrity":"sha512-Do+AW3xuDUHWkrX++LeMBSrX2yRILlDqunRHPMv4adGFEA45m7r4WP8wGCDb+chrHGhXq5TwB9Ne4J7x1dHGng==","signatures":[{"sig":"MEUCIHa2T2ZI2/8bbZGrRgCU8KEIGDm80yKfxI9uGhRicUWHAiEAzftBd5LqDEXBf94stCbpuhkd+/LIhHV1Dca47JR7Gig=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wdio%2fprotocols@8.44.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":603685,"size":73403,"noattachment":false,"key":"/@wdio/protocols/-/@wdio/protocols-8.44.0.tgz"},"type":"module","types":"./build/index.d.ts","exports":{".":"./build/index.js","./package.json":"./package.json"},"gitHead":"ab1799cd214c8b61d39b3f53bd7220ad1027ded3","_npmUser":{"name":"wdio-user","email":"bot@webdriver.io"},"repository":{"url":"git://github.com/webdriverio/webdriverio.git","type":"git","directory":"packages/wdio-protocols"},"_npmVersion":"lerna/8.1.9/node@v18.20.7+x64 (linux)","description":"Utility package providing information about automation protocols","directories":{},"_nodeVersion":"18.20.7","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"typeScriptVersion":"3.8.3","_npmOperationalInternal":{"tmp":"tmp/protocols_8.44.0_1744152571079_0.6950315437833632","host":"s3://npm-registry-packages-npm-production"},"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":1744152571623,"_cnpm_publish_time":1744152571623,"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"}}