(docs): Docusaurus v3 update (#11629)

* (docs): Docusaurus v3 update

* transform scripts to TS
This commit is contained in:
Christian Bromann 2023-11-08 14:48:46 -08:00 committed by GitHub
parent a64ed86527
commit ccfe70e3b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 12533 additions and 4884 deletions

View file

@ -6,10 +6,10 @@
"packages/*"
],
"scripts": {
"create": "node ./scripts/generateSubPackage",
"backport": "node ./scripts/backport.js",
"create": "node --loader ts-node/esm ./scripts/generateSubPackage.ts",
"backport": "node --loader ts-node/esm ./scripts/backport.ts",
"build": "run-s clean:build generate compile copy",
"changelog": "node ./scripts/changelog.js",
"changelog": "node --loader ts-node/esm ./scripts/changelog.js",
"ci": "run-s setup test test:e2e",
"clean": "run-p clean:*",
"clean:build": "rimraf --glob ./packages/*/build",
@ -20,13 +20,13 @@
"clean:cache": "rimraf --glob .eslintcache",
"clean:protocols": "rimraf --glob packages/wdio-protocols/src/commands",
"clean:cddl": "rimraf --glob scripts/bidi/cddl",
"compile": "node ./scripts/build.js",
"compile": "node --loader ts-node/esm ./scripts/build.ts",
"copy": "cd packages/wdio-cli && npm run copy && cd ../../",
"generate": "run-s generate:*",
"generate:bidi": "node --loader ts-node/esm ./scripts/bidi/index.ts",
"generate:typings": "node --loader ts-node/esm ./scripts/type-generation/generate-all-typings.ts",
"link": "node ./scripts/link.js",
"pushReleaseTag": "node ./scripts/pushTags.js",
"link": "node --loader ts-node/esm ./scripts/link.ts",
"pushReleaseTag": "node --loader ts-node/esm ./scripts/pushTags.ts",
"setup": "run-s clean link build",
"docs": "run-s docs:*",
"docs:setup": "cd ./website && npm install && cd ..",
@ -61,7 +61,7 @@
"ts:mocha": "cd tests/typings/mocha && npx tsc --skipLibCheck",
"ts:jasmine": "cd tests/typings/jasmine && npx tsc --skipLibCheck",
"ts:cucumber": "cd tests/typings/cucumber && npx tsc --skipLibCheck",
"watch": "node ./scripts/build.js --watch",
"watch": "node --loader ts-node/esm ./scripts/build.ts --watch",
"watch:docs": "npm run docs:generate && cd website && npm i && npm start",
"version": "npm run changelog && git add CHANGELOG.md",
"postinstall": "run-s postinstall:*",

View file

@ -216,8 +216,8 @@ Default: `true`
### buildIdentifier
**buildIdentifier** is a unique id to differentiate every execution that gets appended to buildName. Choose your buildIdentifier format from the available expressions:
* ${BUILD_NUMBER}: Generates an incremental counter with every execution
* ${DATE_TIME}: Generates a Timestamp with every execution. Eg. 05-Nov-19:30
* `BUILD_NUMBER`: Generates an incremental counter with every execution
* `DATE_TIME`: Generates a Timestamp with every execution. Eg. 05-Nov-19:30
```js
services: [

View file

@ -1085,7 +1085,7 @@ export default {
type: 'String',
name: 'orientation',
description:
'The current browser orientation corresponding to a value defined in ScreenOrientation: {LANDSCAPE|PORTRAIT}.',
'The current browser orientation corresponding to a value defined in ScreenOrientation: `LANDSCAPE|PORTRAIT`.',
},
},
POST: {
@ -1098,7 +1098,7 @@ export default {
name: 'orientation',
type: 'string',
description:
'the new browser orientation as defined in ScreenOrientation: {LANDSCAPE|PORTRAIT}',
'the new browser orientation as defined in ScreenOrientation: `LANDSCAPE|PORTRAIT`',
required: true,
},
],

View file

@ -63,7 +63,7 @@ export default {
{
"name": "params",
"type": "`remote.EmptyParams`",
"description": "<pre>{}</pre>",
"description": "<pre>\\{\\}</pre>",
"required": true
}
],
@ -83,7 +83,7 @@ export default {
{
"name": "params",
"type": "`remote.SessionNewParameters`",
"description": "<pre>{<br /> capabilities: SessionCapabilitiesRequest;<br />}</pre>",
"description": "<pre>\\{<br /> capabilities: SessionCapabilitiesRequest;<br />\\\}</pre>",
"required": true
}
],
@ -103,7 +103,7 @@ export default {
{
"name": "params",
"type": "`remote.EmptyParams`",
"description": "<pre>{}</pre>",
"description": "<pre>\\{\\}</pre>",
"required": true
}
]
@ -118,7 +118,7 @@ export default {
{
"name": "params",
"type": "`remote.SessionSubscriptionRequest`",
"description": "<pre>{<br /> events: string[];<br /> contexts?: BrowsingContextBrowsingContext[];<br />}</pre>",
"description": "<pre>\\{<br /> events: string[];<br /> contexts?: BrowsingContextBrowsingContext[];<br />\\}</pre>",
"required": true
}
]
@ -133,7 +133,7 @@ export default {
{
"name": "params",
"type": "`remote.SessionSubscriptionRequest`",
"description": "<pre>{<br /> events: string[];<br /> contexts?: BrowsingContextBrowsingContext[];<br />}</pre>",
"description": "<pre>\\{<br /> events: string[];<br /> contexts?: BrowsingContextBrowsingContext[];<br />\\}</pre>",
"required": true
}
]
@ -148,7 +148,7 @@ export default {
{
"name": "params",
"type": "`remote.EmptyParams`",
"description": "<pre>{}</pre>",
"description": "<pre>\\{\\}</pre>",
"required": true
}
]
@ -163,7 +163,7 @@ export default {
{
"name": "params",
"type": "`remote.BrowsingContextCaptureScreenshotParameters`",
"description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br />}</pre>",
"description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br />\\}</pre>",
"required": true
}
],
@ -183,7 +183,7 @@ export default {
{
"name": "params",
"type": "`remote.BrowsingContextCloseParameters`",
"description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br />}</pre>",
"description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br />\\}</pre>",
"required": true
}
]
@ -198,7 +198,7 @@ export default {
{
"name": "params",
"type": "`remote.BrowsingContextCreateParameters`",
"description": "<pre>{<br /> type: BrowsingContextCreateType;<br /> referenceContext?: BrowsingContextBrowsingContext;<br />}</pre>",
"description": "<pre>\\{<br /> type: BrowsingContextCreateType;<br /> referenceContext?: BrowsingContextBrowsingContext;<br />\\}</pre>",
"required": true
}
],
@ -218,7 +218,7 @@ export default {
{
"name": "params",
"type": "`remote.BrowsingContextGetTreeParameters`",
"description": "<pre>{<br /> maxDepth?: JsUint;<br /> root?: BrowsingContextBrowsingContext;<br />}</pre>",
"description": "<pre>\\{<br /> maxDepth?: JsUint;<br /> root?: BrowsingContextBrowsingContext;<br />\\}</pre>",
"required": true
}
],
@ -238,7 +238,7 @@ export default {
{
"name": "params",
"type": "`remote.BrowsingContextHandleUserPromptParameters`",
"description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> accept?: boolean;<br /> userText?: string;<br />}</pre>",
"description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> accept?: boolean;<br /> userText?: string;<br />\\}</pre>",
"required": true
}
]
@ -253,7 +253,7 @@ export default {
{
"name": "params",
"type": "`remote.BrowsingContextNavigateParameters`",
"description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> url: string;<br /> wait?: BrowsingContextReadinessState;<br />}</pre>",
"description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> url: string;<br /> wait?: BrowsingContextReadinessState;<br />\\}</pre>",
"required": true
}
],
@ -273,7 +273,7 @@ export default {
{
"name": "params",
"type": "`remote.BrowsingContextPrintParameters`",
"description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> background?: boolean;<br /> margin?: BrowsingContextPrintMarginParameters;<br /> /\\*\\*<br /> \\* @default 'portrait'<br /> \\*/<br /> orientation?: \"portrait\" &#124; \"landscape\";<br /> page?: BrowsingContextPrintPageParameters;<br /> pageRanges?: (JsUint &#124; string)[];<br /> /\\*\\*<br /> \\* @default 1<br /> \\*/<br /> scale?: number;<br /> /\\*\\*<br /> \\* @default true<br /> \\*/<br /> shrinkToFit?: boolean;<br />}</pre>",
"description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> background?: boolean;<br /> margin?: BrowsingContextPrintMarginParameters;<br /> /\\*\\*<br /> \\* @default 'portrait'<br /> \\*/<br /> orientation?: \"portrait\" &#124; \"landscape\";<br /> page?: BrowsingContextPrintPageParameters;<br /> pageRanges?: (JsUint &#124; string)[];<br /> /\\*\\*<br /> \\* @default 1<br /> \\*/<br /> scale?: number;<br /> /\\*\\*<br /> \\* @default true<br /> \\*/<br /> shrinkToFit?: boolean;<br />\\}</pre>",
"required": true
}
],
@ -293,7 +293,7 @@ export default {
{
"name": "params",
"type": "`remote.BrowsingContextReloadParameters`",
"description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> ignoreCache?: boolean;<br /> wait?: BrowsingContextReadinessState;<br />}</pre>",
"description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> ignoreCache?: boolean;<br /> wait?: BrowsingContextReadinessState;<br />\\}</pre>",
"required": true
}
]
@ -308,7 +308,7 @@ export default {
{
"name": "params",
"type": "object",
"description": "<pre>{<br /> functionDeclaration: string;<br /> arguments?: ScriptChannelValue[];<br /> sandbox?: string;<br />}</pre>",
"description": "<pre>\\{<br /> functionDeclaration: string;<br /> arguments?: ScriptChannelValue[];<br /> sandbox?: string;<br />\\}</pre>",
"required": true
}
]
@ -323,7 +323,7 @@ export default {
{
"name": "params",
"type": "`remote.ScriptDisownParameters`",
"description": "<pre>{<br /> handles: ScriptHandle[];<br /> target: ScriptTarget;<br />}</pre>",
"description": "<pre>\\{<br /> handles: ScriptHandle[];<br /> target: ScriptTarget;<br />\\}</pre>",
"required": true
}
]
@ -338,7 +338,7 @@ export default {
{
"name": "params",
"type": "`remote.ScriptCallFunctionParameters`",
"description": "<pre>{<br /> functionDeclaration: string;<br /> awaitPromise: boolean;<br /> target: ScriptTarget;<br /> arguments?: ScriptArgumentValue[];<br /> resultOwnership?: ScriptResultOwnership;<br /> serializationOptions?: ScriptSerializationOptions;<br /> this?: ScriptArgumentValue;<br />}</pre>",
"description": "<pre>\\{<br /> functionDeclaration: string;<br /> awaitPromise: boolean;<br /> target: ScriptTarget;<br /> arguments?: ScriptArgumentValue[];<br /> resultOwnership?: ScriptResultOwnership;<br /> serializationOptions?: ScriptSerializationOptions;<br /> this?: ScriptArgumentValue;<br />\\}</pre>",
"required": true
}
]
@ -353,7 +353,7 @@ export default {
{
"name": "params",
"type": "`remote.ScriptEvaluateParameters`",
"description": "<pre>{<br /> expression: string;<br /> target: ScriptTarget;<br /> awaitPromise: boolean;<br /> resultOwnership?: ScriptResultOwnership;<br /> serializationOptions?: ScriptSerializationOptions;<br />}</pre>",
"description": "<pre>\\{<br /> expression: string;<br /> target: ScriptTarget;<br /> awaitPromise: boolean;<br /> resultOwnership?: ScriptResultOwnership;<br /> serializationOptions?: ScriptSerializationOptions;<br />\\}</pre>",
"required": true
}
],
@ -373,7 +373,7 @@ export default {
{
"name": "params",
"type": "`remote.ScriptGetRealmsParameters`",
"description": "<pre>{<br /> context?: BrowsingContextBrowsingContext;<br /> type?: ScriptRealmType;<br />}</pre>",
"description": "<pre>\\{<br /> context?: BrowsingContextBrowsingContext;<br /> type?: ScriptRealmType;<br />\\}</pre>",
"required": true
}
],
@ -393,7 +393,7 @@ export default {
{
"name": "params",
"type": "`remote.ScriptRemovePreloadScriptParameters`",
"description": "<pre>{<br /> script: ScriptPreloadScript;<br />}</pre>",
"description": "<pre>\\{<br /> script: ScriptPreloadScript;<br />\\}</pre>",
"required": true
}
]
@ -408,7 +408,7 @@ export default {
{
"name": "params",
"type": "`remote.InputPerformActionsParameters`",
"description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> actions: InputSourceActions[];<br />}</pre>",
"description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> actions: InputSourceActions[];<br />\\}</pre>",
"required": true
}
]
@ -423,7 +423,7 @@ export default {
{
"name": "params",
"type": "`remote.InputReleaseActionsParameters`",
"description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br />}</pre>",
"description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br />\\}</pre>",
"required": true
}
]

View file

@ -11,7 +11,7 @@ import { getSubPackages } from './utils/helpers.js'
const __dirname = path.dirname(url.fileURLToPath(import.meta.url))
const args = process.argv.slice(2)
const args: string[] = process.argv.slice(2)
const HAS_WATCH_FLAG = args[0] === '--watch'
const TSCONFIG_FILE = process.env.NODE_ENV === 'production' ? 'tsconfig.prod.json' : 'tsconfig.json'
@ -82,7 +82,7 @@ const packages = getSubPackages()
const tokens = pkg.split('-')
acc[tokens.length > 2 ? 1 : 0].push(pkg)
return acc
}, [[], []])
}, [[], []] as string[][])
/**
* Concat all groups of packages, with root packages as first
@ -110,7 +110,7 @@ ESM_CJS_PACKAGES.forEach((pkg) => {
}
})
const cmd = (packages) => `npx tsc -b ${packages.join(' ')}${HAS_WATCH_FLAG ? ' --watch' : ''}`
const cmd = (packages: string[]) => `npx tsc -b ${packages.join(' ')}${HAS_WATCH_FLAG ? ' --watch' : ''}`
/**
* if we build the project make sure root packages are compiled first

View file

@ -188,7 +188,8 @@
"title": "Azure DevOps Test Plans",
"githubUrl": "https://github.com/gianlucamangiapelo/wdio-azure-devops-service",
"npmUrl": "https://www.npmjs.com/package/@gmangiapelo/wdio-azure-devops-service"
}, {
},
{
"packageName": "@qajonatasmartins/wdio-google-chat-service",
"title": "Google Chat",
"githubUrl": "https://github.com/qajonatasmartins/wdio-google-chat-service",

View file

@ -10,17 +10,41 @@ import reporters3rdParty from './3rd-party/reporters.json' assert { type: 'json'
import services3rdParty from './3rd-party/services.json' assert { type: 'json' }
import api3rdParty from './3rd-party/api.json' assert { type: 'json' }
const servicesWithBrokenReadmes = [
'@sap_oss/wdio-qmate-service',
'wdio-reportportal-service',
'wdio-ms-teams-service',
'wdio-intercept-service',
'wdio-ui5-service'
]
const reportersWithBrokenReadmes = [
'wdio-mochawesome-reporter',
'wdio-reportportal-reporter'
]
interface Plugin {
packageName: string
title: string
githubUrl: string
npmUrl: string
branch?: string
location?: string
locations: string[]
suppressBuildInfo?: boolean
}
const __dirname = path.dirname(url.fileURLToPath(import.meta.url))
const plugins = [{
category: 'docs',
namePlural: 'Reporter',
nameSingular: 'Reporter',
packages3rdParty: reporters3rdParty
packages3rdParty: reporters3rdParty.filter(({ packageName }) => !reportersWithBrokenReadmes.includes(packageName))
}, {
category: 'docs',
namePlural: 'Services',
nameSingular: 'Service',
packages3rdParty: services3rdParty
packages3rdParty: services3rdParty.filter(({ packageName }) => !servicesWithBrokenReadmes.includes(packageName))
}, {
category: 'api',
namePlural: 'Testrunner',
@ -41,23 +65,27 @@ const DOCS_ROOT_DIR = path.join(PROJECT_ROOT_DIR, 'website', 'docs')
* Generate docs for 3rd party reporters and services
* @param {object} sidebars website/sidebars
*/
export async function generate3rdPartyDocs (sidebars) {
export async function generate3rdPartyDocs (sidebars: any) {
for (const { category, namePlural, nameSingular, packages3rdParty } of plugins) {
const categoryDir = path.join(DOCS_ROOT_DIR, category === 'api' ? 'api' : '')
await fs.mkdir(categoryDir, { recursive: true })
const sidebar = sidebars[category]
const items = []
for (const { packageName, title, githubUrl, npmUrl, suppressBuildInfo, locations, location = githubReadme, branch = 'main' } of packages3rdParty) {
const items: string[] = []
for (const { packageName, title, githubUrl, npmUrl, suppressBuildInfo, locations, location = githubReadme, branch = 'main' } of packages3rdParty as Plugin[]) {
const readme = locations
? await Promise.all(locations.map((l) => downloadFromGitHub(githubUrl, branch, l)))
.then((readmes) => readmes.join('\n'))
: await downloadFromGitHub(githubUrl, branch, location)
const id = `${packageName}`.replace(/@/g, '').replace(/\//g, '-')
const doc = normalizeDoc(readme, githubUrl, branch,
const doc = normalizeDoc(
readme,
githubUrl,
branch,
buildPreface(id, title, nameSingular, `${githubUrl}/edit/${branch}/${location}`),
suppressBuildInfo ? [] : buildInfo(packageName, githubUrl, npmUrl))
suppressBuildInfo ? [] : buildInfo(packageName, githubUrl, npmUrl)
)
await fs.writeFile(path.join(categoryDir, `_${id}.md`), doc, { encoding: 'utf-8' })
if (namePlural === 'Testrunner') {
@ -69,7 +97,7 @@ export async function generate3rdPartyDocs (sidebars) {
items.push(category === 'api' ? `${category}/${id}` : id)
}
const section = sidebar.find((s) => s.label === namePlural)
const section = sidebar.find((s: any) => s.label === namePlural)
section.items.push(...items)
}
}
@ -83,7 +111,7 @@ export async function generate3rdPartyDocs (sidebars) {
* @param {string} repoInfo repoInfo
* @return {string} readme content without header
*/
function normalizeDoc(readme, githubUrl, branch, preface, repoInfo) {
function normalizeDoc(readme: string, githubUrl: string, branch: string, preface: string[], repoInfo: string[]) {
/**
* remove badges
*/
@ -144,7 +172,7 @@ function normalizeDoc(readme, githubUrl, branch, preface, repoInfo) {
* @param {string} githubUrl GitHub url
* @param {string} npmUrl npm url
*/
function buildInfo(packageName, githubUrl, npmUrl) {
function buildInfo(packageName: string, githubUrl: string, npmUrl: string) {
return [
`> ${packageName} is a 3rd party package, for more information please see [GitHub](${githubUrl}) | [npm](${npmUrl})`
]

View file

@ -15,13 +15,13 @@ const plugins = {
* Generate docs for reporter and services
* @param {object} sidebars website/sidebars
*/
export function generateReportersAndServicesDocs (sidebars) {
export function generateReportersAndServicesDocs (sidebars: any) {
const packages = getSubPackages(IGNORED_SUBPACKAGES_FOR_DOCS)
for (const [type, [namePlural, nameSingular]] of Object.entries(plugins)) {
const pkgs = packages.filter((pkg) => pkg.endsWith(`-${type}`) && pkg.split('-').length > 2)
const items = []
const items: string[] = []
for (const pkg of pkgs) {
const name = pkg.split('-').slice(1, -1)
const id = `${name.join('-')}-${type}`

View file

@ -1,8 +1,10 @@
import fs from 'node:fs'
import url from 'node:url'
import path from 'node:path'
// @ts-expect-error
import dox from 'dox'
import { Eta } from 'eta'
import type { NavbarItem } from '../../website/node_modules/@docusaurus/theme-common/lib/index.js'
import formatter from '../utils/formatter.js'
import compiler from '../utils/compiler.js'
@ -19,7 +21,7 @@ const eta = new Eta({
* Generate WebdriverIO docs
* @param {object} sidebars website/sidebars
*/
export async function generateWdioDocs (sidebars) {
export async function generateWdioDocs (sidebars: any) {
const COMMAND_DIR = path.join(__dirname, '..', '..', 'packages', 'webdriverio', 'src', 'commands')
const COMMANDS = {
browser: ['api/browser', fs.readdirSync(path.join(COMMAND_DIR, 'browser'))],
@ -27,7 +29,7 @@ export async function generateWdioDocs (sidebars) {
mock: ['api/mock', fs.readdirSync(path.join(COMMAND_DIR, 'mock'))]
}
const apiDocs = []
const apiDocs: NavbarItem[] = []
for (const [scope, [id, files]] of Object.entries(COMMANDS)) {
/**
* add scope to sidebar
@ -52,7 +54,7 @@ export async function generateWdioDocs (sidebars) {
const output = path.join(docDir, `_${file.replace(/(js|ts)/, 'md')}`)
const raw = fs.readFileSync(filepath, 'utf-8')
const data = compiler(filepath, raw)
const data = compiler(raw)
const doc = dox.parseComments(data, { raw: true })
const docfile = {
filename: filepath,
@ -63,8 +65,7 @@ export async function generateWdioDocs (sidebars) {
fs.writeFileSync(output, processedDoc.replace(/\n{3,}/g, '\n\n'))
console.log(`Generated docs for ${scope}/${file} - ${output}`)
apiDocs[apiDocs.length - 1].items
.push(`api/${scope}/${file.replace(/\.(js|ts)/, '')}`)
apiDocs[apiDocs.length - 1].items?.push(`api/${scope}/${file.replace(/\.(js|ts)/, '')}` as any)
}
}

View file

@ -118,7 +118,7 @@ const existingPackages = fs.readdirSync(packagesDir)
.map(name => path.join(packagesDir, name))
.filter(source => fs.lstatSync(source).isDirectory())
const createFile = (file, content) => {
const createFile = (file: string, content: string) => {
shell.touch(file)
shell.ShellString(content).to(file)
}

View file

@ -1,3 +1,3 @@
export default function (filepath, data) {
export default function (data: string) {
return data.slice(0, data.indexOf('export default function'))
}

View file

@ -1,10 +1,15 @@
import path from 'node:path'
import { createRequire } from 'node:module'
const require = createRequire(import.meta.url)
const { customFields } = require('../../website/docusaurus.config.js')
interface TagType {
string: string
type: string
}
export default function (docfile) {
const organizationName = 'webdriverio' // Usually your GitHub org/user name.
const projectName = 'webdriverio' // Usually your repo name.
const repoUrl = `https://github.com/${organizationName}/${projectName}`
export default function (docfile: any) {
const javadoc = docfile.javadoc[0]
let type = (javadoc.ctx && javadoc.ctx.type)
@ -12,13 +17,13 @@ export default function (docfile) {
const scope = docfile.filename.split('/').slice(-2, -1)[0]
let description = ''
const paramStr = []
const propertyTags = []
const paramTags = []
const returnTags = []
const throwsTags = []
const fires = []
const listens = []
const paramStr: string[] = []
const propertyTags: string[] = []
const paramTags: string[] = []
const returnTags: string[] = []
const throwsTags: string[] = []
const fires: string[] = []
const listens: string[] = []
let tagDeprecated = false
let tagSee = ''
let tagVersion = ''
@ -95,9 +100,9 @@ export default function (docfile) {
.replace(/^h5/, '#####')
.replace(/^h6/, '######')
const files = []
let exampleCodeLine = []
let example = description.match(/<example>((.|\n)*)<\/example>/g)
const files: string[] = []
let exampleCodeLine: string[] = []
let example: any = description.match(/<example>((.|\n)*)<\/example>/g)
let exampleFilename = ''
let currentLine = 0
@ -106,7 +111,7 @@ export default function (docfile) {
console.log('parse example section for', docfile.filename)
example = example[0].replace(/<(\/)*example>/g, '').split(/\n/g)
example.forEach(function(line) {
example.forEach(function(line: string) {
++currentLine
const checkForFilenameExpression = line.match(/\s\s\s\s(:(\S)*\.(\S)*)/g)
@ -117,7 +122,7 @@ export default function (docfile) {
/**
* remove filename expression in first line
*/
exampleFilename = exampleCodeLine.shift().trim().substr(1)
exampleFilename = exampleCodeLine.shift()!.trim().substr(1)
const code = exampleCodeLine.join('\n')
/**
@ -128,7 +133,7 @@ export default function (docfile) {
file: exampleFilename,
format: exampleFilename.split(/\./).pop(),
code: code
})
} as any)
}
/**
@ -156,8 +161,8 @@ export default function (docfile) {
}
const exampleReferences = javadoc.tags
.filter((tag) => tag.type === 'example' && typeof tag.string === 'string')
.map((tag) => tag.string)
.filter((tag: TagType) => tag.type === 'example' && typeof tag.string === 'string')
.map((tag: TagType) => tag.string)
/**
* format param strings, from
@ -202,7 +207,7 @@ export default function (docfile) {
ignore: javadoc.ignore,
examples: files,
exampleReferences,
customEditUrl: `${customFields.repoUrl}/edit/main/packages/webdriverio/src/commands/${scope}/${name}.ts`,
customEditUrl: `${repoUrl}/edit/main/packages/webdriverio/src/commands/${scope}/${name}.ts`,
hasDocusaurusHeader: true,
originalId: `api/${scope}/${name}`,
isElementScope : scope === 'element',

View file

@ -9,7 +9,7 @@ const __dirname = path.dirname(url.fileURLToPath(import.meta.url))
* @param {string[]} ignorePackages a list of packages to be ignored
* @returns {string[]} a list of sub packages
*/
export const getSubPackages = (ignorePackages = []) => shell.ls(path.join(__dirname, '..', '..', 'packages')).filter((pkg) => (
export const getSubPackages = (ignorePackages: string[] = []) => shell.ls(path.join(__dirname, '..', '..', 'packages')).filter((pkg) => (
/**
* ignore node_modules directory that is created by the link script to test the
* wdio test runner
@ -19,9 +19,9 @@ export const getSubPackages = (ignorePackages = []) => shell.ls(path.join(__dirn
* ignore packages that don't need to be compiled
*/
!ignorePackages.includes(pkg)
))
)) as string[]
export function buildPreface(id, title, titleSuffix, editUrl) {
export function buildPreface(id: string, title: string, titleSuffix: string, editUrl: string) {
return [
'---',
`id: ${id}`,

View file

@ -8,7 +8,7 @@ const githubRawHost = 'https://raw.githubusercontent.com/'
* @param {string} location file location in repo
* @return {Promise<string>} readme content
*/
export async function downloadFromGitHub(githubUrl, branch, location = githubReadme) {
export async function downloadFromGitHub(githubUrl: string, branch: string, location = githubReadme) {
const url = `${githubUrl}/${branch}/${location}`.replace(githubHost, githubRawHost)
// eslint-disable-next-line no-console
console.log(`Downloading: ${url}`)

View file

@ -15,8 +15,8 @@ A browser object has the following properties:
| Name | Type | Details |
| ---- | ---- | ------- |
| `capabilities` | `Object` | Assigned capabilities from the remote server.<br /><b>Example:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>{ browserName: 'chrome' }</pre>
| `capabilities` | `Object` | Assigned capabilities from the remote server.<br /><b>Example:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>\{ browserName: 'chrome' \}</pre>
| `sessionId` | `String` | Session id assigned from the remote server. |
| `options` | `Object` | WebdriverIO [options](/docs/configuration) depending on how the browser object was created. See more [setup types](/docs/setuptypes). |
| `commandList` | `String[]` | A list of commands registered to the browser instance |
@ -50,7 +50,7 @@ For example, given this config:
// wdio.conf.js
export const config = {
// ...
capabilities: {
capabilities: \\{
platformName: 'iOS',
app: 'net.company.SafariLauncher',
udid: '123123123123abc',

View file

@ -1,4 +1,12 @@
const path = require('node:path')
import url from 'node:url'
import path from 'node:path'
import { themes } from 'prism-react-renderer'
import remark from '@docusaurus/remark-plugin-npm2yarn'
import type { Config } from '@docusaurus/types'
import type { ThemeConfig } from '@docusaurus/preset-classic'
const __dirname = path.dirname(url.fileURLToPath(import.meta.url))
const organizationName = 'webdriverio' // Usually your GitHub org/user name.
const projectName = 'webdriverio' // Usually your repo name.
@ -10,8 +18,7 @@ const discordUrl = 'https://discord.webdriver.io/'
const wdioLogo = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+TG9nbyBSZWd1bGFyPC90aXRsZT4KICAgIDxnIGlkPSJMb2dvLVJlZ3VsYXIiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUiIGZpbGw9IiNFQTU5MDYiIHg9IjAiIHk9IjAiIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgcng9IjUiPjwvcmVjdD4KICAgICAgICA8cGF0aCBkPSJNOCwxNiBMOCw0OCBMNiw0OCBMNiwxNiBMOCwxNiBaIE00MywxNiBDNTEuODM2NTU2LDE2IDU5LDIzLjE2MzQ0NCA1OSwzMiBDNTksNDAuODM2NTU2IDUxLjgzNjU1Niw0OCA0Myw0OCBDMzQuMTYzNDQ0LDQ4IDI3LDQwLjgzNjU1NiAyNywzMiBDMjcsMjMuMTYzNDQ0IDM0LjE2MzQ0NCwxNiA0MywxNiBaIE0yNywxNiBMMTQuMTA2LDQ3Ljk5OTIwNzggTDExLjk5OSw0Ny45OTkyMDc4IEwyNC44OTQsMTYgTDI3LDE2IFogTTQzLDE4IEMzNS4yNjgwMTM1LDE4IDI5LDI0LjI2ODAxMzUgMjksMzIgQzI5LDM5LjczMTk4NjUgMzUuMjY4MDEzNSw0NiA0Myw0NiBDNTAuNzMxOTg2NSw0NiA1NywzOS43MzE5ODY1IDU3LDMyIEM1NywyNC4yNjgwMTM1IDUwLjczMTk4NjUsMTggNDMsMTggWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg=='
const mendableAnonKey = 'c4096c1b-8c46-4891-8ba2-5f0e2ef4fa81'
/** @type {import('@docusaurus/types').Config} */
module.exports = {
const config: Config = {
title: 'WebdriverIO',
tagline: 'Next-gen browser and mobile automation test framework for Node.js',
url: 'https://webdriver.io',
@ -38,8 +45,8 @@ module.exports = {
respectPrefersColorScheme: true
},
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula')
theme: themes.github,
darkTheme: themes.dracula
},
algolia: {
apiKey: 'f86258c57f779a1358e0a9054aeadad5',
@ -179,16 +186,16 @@ module.exports = {
showRunmeLink: true,
runmeLinkLabel: 'Run Example'
},
},
} satisfies ThemeConfig,
presets: [
[
'@docusaurus/preset-classic', {
docs: {
sidebarPath: require.resolve('./sidebars.js'),
sidebarPath: path.resolve(__dirname, 'sidebars.ts'),
// Please change this to your repo.
editUrl:`${repoUrl}/edit/${branch}/website/`,
remarkPlugins: [
[require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }],
[remark, { sync: true }],
],
include: ['**/*.{md,mdx}', '**/_*.{md,mdx}'],
exclude: [
@ -204,10 +211,10 @@ module.exports = {
editUrl: `${repoUrl}/edit/${branch}/website/blog/`,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: path.resolve(__dirname, 'src', 'css', 'custom.css'),
},
pages: {
remarkPlugins: [require('@docusaurus/remark-plugin-npm2yarn')],
remarkPlugins: [remark],
},
googleAnalytics: {
trackingID: 'UA-47063382-1',
@ -249,7 +256,7 @@ module.exports = {
path: 'community',
editUrl: `https://github.com/${organizationName}/${projectName}/edit/${branch}/website/`,
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarsCommunity.js')
sidebarPath: path.resolve(__dirname, 'sidebarsCommunity.ts')
},
],
'@docusaurus/plugin-ideal-image',
@ -259,7 +266,7 @@ module.exports = {
debug: false,
offlineModeActivationStrategies: ['appInstalled', 'queryString'],
// swRegister: false,
swCustom: path.resolve(__dirname, 'src/sw.js'),
swCustom: path.resolve(__dirname, 'src', 'sw.js'),
pwaHead: [
{
tagName: 'link',
@ -323,3 +330,5 @@ module.exports = {
'/js/flowchart.js'
]
}
export default config

View file

@ -15,8 +15,8 @@ A browser object has the following properties:
| Name | Type | Details |
| ----------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `capabilities` | `Object` | Assigned capabilitie from the remote server.<br /><b>Example:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>{ browserName: 'chrome' }</pre> |
| `capabilities` | `Object` | Assigned capabilities from the remote server.<br /><b>Example:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Session id assigned from the remote server. |
| `options` | `Object` | WebdriverIO [options](/docs/configuration) depending on how the browser object was created. See more [setup types](/docs/setuptypes). |
| `commandList` | `String[]` | A list of commands registered to the browser instance |

View file

@ -15,8 +15,8 @@ A browser object has the following properties:
| Name | Type | Details |
| ----------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `capabilities` | `Object` | Assigned capabilitie from the remote server.<br /><b>Example:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>{ browserName: 'chrome' }</pre> |
| `capabilities` | `Object` | Assigned capabilities from the remote server.<br /><b>Example:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Session id assigned from the remote server. |
| `options` | `Object` | WebdriverIO [options](/docs/configuration) depending on how the browser object was created. See more [setup types](/docs/setuptypes). |
| `commandList` | `String[]` | A list of commands registered to the browser instance |

View file

@ -3,11 +3,7 @@ id: configuration
title: Konfiguration
---
<<<<<<< HEAD
Basierend auf dem [Setup-Type](/docs/setuptypes) (z. B. die Verwendung der Raw-Protokollbindungen, WebdriverIO als eigenständiges Paket oder der WDIO-Testrunner) stehen verschiedene Optionen zur Verfügung, um die Umgebung zu steuern.
=======
Based on the [setup type](/docs/setuptypes) (e.g. using the raw protocol bindings, WebdriverIO as standalone package or the WDIO testrunner) there is a different set of options available to control the environment.
>>>>>>> eedb047cd (New translations Configuration.md (German))
## WebDriver-Optionen

View file

@ -15,8 +15,8 @@ Ein Browser-Objekt hat folgende Eigenschaften:
| Namen | Typ | Details |
| ----------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `capabilities` | `Object` | Zugewiesene Capabilities vom WebDriver Server.<br /><b>Beispiel:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | Angefragte Capabilities vom WebDriver Server.<br /><b>Beispiel:</b><pre>{ browserName: 'chrome' }</pre> |
| `capabilities` | `Object` | Zugewiesene Capabilities vom WebDriver Server.<br /><b>Beispiel:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | Angefragte Capabilities vom WebDriver Server.<br /><b>Beispiel:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Session-Id vom Remote-Server zugewiesen. |
| `options` | `Object` | WebdriverIO [Optionen](/docs/configuration) je nachdem, wie das Browserobjekt erstellt wurde. Weitere [Setup-Typen](/docs/setuptypes). |
| `commandList` | `String[]` | Eine Liste der Befehle, die in der Browser-Instanz registriert sind |

View file

@ -15,8 +15,8 @@ Un objeto navegador tiene las siguientes propiedades:
| Nombre | Tipo | Información |
| ------------------------ | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `capacidades` | `Objeto` | Capacidad asignada desde el servidor remoto.<br /><b>Ejemplo:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `capacidadesSolicitadas` | `Objeto` | Capacidades solicitadas al servidor remoto.<br /><b>Ejemplo:</b><pre>{ browserName: 'chrome' }</pre> |
| `capacidades` | `Objeto` | Capacidad asignada desde el servidor remoto.<br /><b>Ejemplo:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `capacidadesSolicitadas` | `Objeto` | Capacidades solicitadas al servidor remoto.<br /><b>Ejemplo:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Id de sesión asignado desde el servidor remoto. |
| `opciones` | `Object` | Se crearon [opciones](/docs/configuration) WebdriverIO, dependiendo de cómo se creó el objeto del navegador. Ver más [tipos de configuración](/docs/setuptypes). |
| `commandList` | `String[]` | Una lista de comandos registrados a la instancia del navegador |

View file

@ -15,8 +15,8 @@ __گسترشی برای:__ [EventEmitter](https://nodejs.org/api/events.html#cla
| نام | نوع | جزئیات |
| ------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `قابلیت ها(capabilities)` | `شیء` | قابلیت (capabilitie) اختصاص داده شده از سرور remote.<br /><b>مثال:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `قابلیت های درخواست شده` | `شیء` | قابلیت (capabilitie) درخواست شده از طرف سرور remote.<br /><b>مثال:</b><pre>{ browserName: 'chrome' }</pre> |
| `قابلیت ها(capabilities)` | `شیء` | قابلیت (capabilitie) اختصاص داده شده از سرور remote.<br /><b>مثال:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `قابلیت های درخواست شده` | `شیء` | قابلیت (capabilitie) درخواست شده از طرف سرور remote.<br /><b>مثال:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Session id که از سرور remote اختصاص داده شده است. |
| `options` | `Object` | [options](/docs/configuration) های WebdriverIO که به این بستگی دارد که شئ browser چگونه ایجاد شده است. اطلاعات بیشتر در [راه اندازی types](/docs/setuptypes). |
| `commandList` | `String[]` | لیستی از دستورات ثبت شده در نمونه ی browser |

View file

@ -15,8 +15,8 @@ Un objet `browser` possède les propriétés suivantes :
| Nom | Type | Détails |
| --------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `capacités` | `Objet` | Capacité assignée par le serveur distant.<br /><b>Exemple :</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `capacités demandées` | `Objet` | Capacités demandées au serveur distant.<br /><b>Exemple :</b><pre>{ browserName: 'chrome' }</pre> |
| `capacités` | `Objet` | Capacité assignée par le serveur distant.<br /><b>Exemple :</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `capacités demandées` | `Objet` | Capacités demandées au serveur distant.<br /><b>Exemple :</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Id de session attribué à partir du serveur distant. |
| `options` | `Object` | WebdriverIO [options](/docs/configuration) selon la façon dont l'objet navigateur a été créé. Voir plus [types de configuration](/docs/setuptypes). |
| `commandList` | `String[]` | Une liste de commandes enregistrées dans l'instance du navigateur |

View file

@ -3,11 +3,7 @@ id: configuration
title: कॉन्फ़िगरेशन
---
<<<<<<< HEAD
[सेटअप प्रकार](/docs/setuptypes) के आधार पर (उदाहरण के लिए कच्चे प्रोटोकॉल बाइंडिंग का उपयोग करके, वेबड्राइवरियो स्टैंडअलोन पैकेज या WDIO टेस्टरनर के रूप में) पर्यावरण को नियंत्रित करने के लिए विकल्पों का एक अलग सेट उपलब्ध है।
=======
Based on the [setup type](/docs/setuptypes) (e.g. using the raw protocol bindings, WebdriverIO as standalone package or the WDIO testrunner) there is a different set of options available to control the environment.
>>>>>>> 3abd27a65 (New translations Configuration.md (Hindi))
## वेब ड्राइवर विकल्प

View file

@ -15,8 +15,8 @@ __विस्तार:__ [इवेंटएमिटर](https://nodejs.org/a
| नाम | प्रकार | विवरण |
| ------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `क्षमताएं` | `वस्तु` | दूरस्थ सर्वर से सौंपी गई क्षमता।<br /><b>उदाहरण:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `अनुरोधित क्षमताएं` | `वस्तु` | दूरस्थ सर्वर से अनुरोधित क्षमताएं।<br /><b>उदाहरण:</b><pre>{ browserName: 'chrome' }</pre> |
| `क्षमताएं` | `वस्तु` | दूरस्थ सर्वर से सौंपी गई क्षमता।<br /><b>उदाहरण:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `अनुरोधित क्षमताएं` | `वस्तु` | दूरस्थ सर्वर से अनुरोधित क्षमताएं।<br /><b>उदाहरण:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | दूरस्थ सर्वर से निर्दिष्ट सत्र आईडी। |
| `options` | `Object` | WebdriverIO [विकल्प](/docs/configuration) ब्राउज़र ऑब्जेक्ट कैसे बनाया गया था इसके आधार पर। अधिक [सेटअप प्रकार देखें](/docs/setuptypes)। |
| `commandList` | `String[]` | ब्राउज़र उदाहरण के लिए पंजीकृत आदेशों की सूची |

View file

@ -261,7 +261,7 @@ describe('partial mock', () => {
└── views
```
जब किसी दिए गए मॉड्यूल के लिए मैन्युअल मॉक मौजूद होता है, तो WebdriverIO `mock('moduleName')`को स्पष्ट रूप से कॉल करते समय उस मॉड्यूल का उपयोग करेगा। हालाँकि, जब ऑटोमॉक को सही पर सेट किया जाता है, तो स्वचालित रूप से बनाए गए मॉक के बजाय मैन्युअल मॉक कार्यान्वयन का उपयोग किया जाएगा, भले ही <`mock('moduleName')` को कॉल न किया गया हो। इस व्यवहार से बाहर निकलने के लिए आपको परीक्षणों में `unmock('moduleName')` को स्पष्ट रूप से कॉल करने की आवश्यकता होगी जो वास्तविक मॉड्यूल कार्यान्वयन का उपयोग करना चाहिए, उदाहरण के लिए:
जब किसी दिए गए मॉड्यूल के लिए मैन्युअल मॉक मौजूद होता है, तो WebdriverIO `mock('moduleName')` को स्पष्ट रूप से कॉल करते समय उस मॉड्यूल का उपयोग करेगा। हालाँकि, जब ऑटोमॉक को सही पर सेट किया जाता है, तो स्वचालित रूप से बनाए गए मॉक के बजाय मैन्युअल मॉक कार्यान्वयन का उपयोग किया जाएगा, भले ही `mock('moduleName')` को कॉल न किया गया हो। इस व्यवहार से बाहर निकलने के लिए आपको परीक्षणों में `unmock('moduleName')` को स्पष्ट रूप से कॉल करने की आवश्यकता होगी जो वास्तविक मॉड्यूल कार्यान्वयन का उपयोग करना चाहिए, उदाहरण के लिए:
```js
import { unmock } from '@wdio/browser-runner'

View file

@ -15,8 +15,8 @@ A browser object has the following properties:
| Name | Type | Details |
| ----------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `capabilities` | `Object` | Assigned capabilitie from the remote server.<br /><b>Example:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>{ browserName: 'chrome' }</pre> |
| `capabilities` | `Object` | Assigned capabilities from the remote server.<br /><b>Example:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Session id assigned from the remote server. |
| `options` | `Object` | WebdriverIO [options](/docs/configuration) depending on how the browser object was created. See more [setup types](/docs/setuptypes). |
| `commandList` | `String[]` | A list of commands registered to the browser instance |

View file

@ -15,8 +15,8 @@ Browser Objectは、ブラウザまたはモバイル デバイスを制御す
| Name | Type | Details |
| ----------------------- | ---------- | ------------------------------------------------------------------------------------------------------------ |
| `capabilities` | `Object` | リモートサーバーから割り当てられた機能。<br /><b>例:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | リモートサーバーから割り当てられた機能。<br /><b>例:</b><pre>{ browserName: 'chrome' }</pre> |
| `capabilities` | `Object` | リモートサーバーから割り当てられた機能。<br /><b>例:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | リモートサーバーから割り当てられた機能。<br /><b>例:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | リモートサーバーから割り当てられたセッションID。 |
| `options` | `Object` | WebdriverIO [option](/docs/configuration) は、ブラウザ オブジェクトの作成方法に応じて異なります。 もっと見る [セットアップ タイプ](/docs/setuptypes)。 |
| `commandList` | `String[]` | ブラウザインスタンスに登録されているコマンドのリスト |

View file

@ -15,8 +15,8 @@ Obiekt przeglądarki (browser) posiada następujące właściwości:
| Nazwa | Typ | Szczegóły |
| ----------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `capabilities` | `Object` | Przypisane możliwości (capabilities) ze zdalnego serwera.<br /><b>Przykład:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | Możliwości (capabilities) żądane od zdalnego serwera.<br /><b>Przykład:</b><pre>{ browserName: 'chrome' }</pre> |
| `capabilities` | `Object` | Przypisane możliwości (capabilities) ze zdalnego serwera.<br /><b>Przykład:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | Możliwości (capabilities) żądane od zdalnego serwera.<br /><b>Przykład:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Identyfikator sesji (session id) przypisany ze zdalnego serwera. |
| `options` | `Object` | [Opcje](/docs/configuration) (options) WebdriverIO w zależności od sposobu utworzenia obiektu przeglądarki. Zobacz więcej w sekcji [typy konfiguracji](/docs/setuptypes). |
| `commandList` | `String[]` | Lista poleceń należących do instancji przeglądarki |

View file

@ -15,8 +15,8 @@ A browser object has the following properties:
| Name | Type | Details |
| ----------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `capabilities` | `Object` | Assigned capabilitie from the remote server.<br /><b>Example:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>{ browserName: 'chrome' }</pre> |
| `capabilities` | `Object` | Assigned capabilities from the remote server.<br /><b>Example:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Session id assigned from the remote server. |
| `options` | `Object` | WebdriverIO [options](/docs/configuration) depending on how the browser object was created. See more [setup types](/docs/setuptypes). |
| `commandList` | `String[]` | A list of commands registered to the browser instance |

View file

@ -15,8 +15,8 @@ __ Extends:__ [EventEmitter](https://nodejs.org/api/events.html#class-eventemitt
| பெயர் | வகை | விவரங்கள் |
| ----------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `capabilities` | `Object` | ரிமோட் சர்வரிலிருந்து ஒதுக்கப்பட்ட திறன்.<br /><b> Example:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | ரிமோட் சர்வரிலிருந்து கேட்கப்பட்ட திறன்கள்.<br /><b> Example:</b><pre>{ browserName: 'chrome' }</pre> |
| `capabilities` | `Object` | ரிமோட் சர்வரிலிருந்து ஒதுக்கப்பட்ட திறன்.<br /><b> Example:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | ரிமோட் சர்வரிலிருந்து கேட்கப்பட்ட திறன்கள்.<br /><b> Example:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Session id assigned from the remote server. |
| `options` | `Object` | பிரௌசர் ஆப்ஜெக்ட் எவ்வாறு உருவாக்கப்பட்டது என்பதைப் பொறுத்து WebdriverIO [options](/docs/configuration). மேலும் [setup types](/docs/setuptypes)காண்க. |
| `commandList` | `String[]` | பிரௌசர் நிகழ்வில் பதிவுசெய்யப்பட்ட கட்டளைகளின் பட்டியல் |

View file

@ -15,8 +15,8 @@ __Успадковується від:__ [EventEmitter](https://nodejs.org/api/e
| Назва | Тип | Опис |
| ----------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `capabilities` | `Object` | Призначені параметри з віддаленого сервера.<br /><b>Приклад:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | Параметри, що були надіслані на віддалений сервер.<br /><b>Приклад:</b><pre>{ browserName: 'chrome' }</pre> |
| `capabilities` | `Object` | Призначені параметри з віддаленого сервера.<br /><b>Приклад:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | Параметри, що були надіслані на віддалений сервер.<br /><b>Приклад:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Ідентифікатор сеансу, призначений з віддаленого сервера. |
| `options` | `Object` | WDIO [параметри](/docs/configuration) які використовувались для створення об’єкту браузера. Подивитися більше про [способи запуску](/docs/setuptypes). |
| `commandList` | `String[]` | Список команд, зареєстрованих в екземплярі браузера |

View file

@ -15,8 +15,8 @@ A browser object has the following properties:
| Name | Type | Details |
| ----------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `capabilities` | `Object` | Assigned capabilitie from the remote server.<br /><b>Example:</b><pre>{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: {<br /> chromedriverVersion: '105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853})',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> },<br /> 'goog:chromeOptions': { debuggerAddress: 'localhost:64679' },<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: {},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: { implicit: 0, pageLoad: 300000, script: 30000 },<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>{ browserName: 'chrome' }</pre> |
| `capabilities` | `Object` | Assigned capabilities from the remote server.<br /><b>Example:</b><pre>\{<br /> acceptInsecureCerts: false,<br /> browserName: 'chrome',<br /> browserVersion: '105.0.5195.125',<br /> chrome: \{<br /> chromedriverVersion: '105.0.5195.52',<br /> userDataDir: '/var/folders/3_/pzc_f56j15vbd9z3r0j050sh0000gn/T/.com.google.Chrome.76HD3S'<br /> \},<br /> 'goog:chromeOptions': \{ debuggerAddress: 'localhost:64679' \},<br /> networkConnectionEnabled: false,<br /> pageLoadStrategy: 'normal',<br /> platformName: 'mac os x',<br /> proxy: \{},<br /> setWindowRect: true,<br /> strictFileInteractability: false,<br /> timeouts: \{ implicit: 0, pageLoad: 300000, script: 30000 \},<br /> unhandledPromptBehavior: 'dismiss and notify',<br /> 'webauthn:extension:credBlob': true,<br /> 'webauthn:extension:largeBlob': true,<br /> 'webauthn:virtualAuthenticators': true<br />\}</pre> |
| `requestedCapabilities` | `Object` | Capabilities requested from the remote server.<br /><b>Example:</b><pre>\{ browserName: 'chrome' \}</pre> |
| `sessionId` | `String` | Session id assigned from the remote server. |
| `options` | `Object` | WebdriverIO [options](/docs/configuration) depending on how the browser object was created. See more [setup types](/docs/setuptypes). |
| `commandList` | `String[]` | A list of commands registered to the browser instance |

17039
website/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,26 +13,30 @@
"translate": "docusaurus write-translations"
},
"dependencies": {
"@docusaurus/core": "^2.4.3",
"@docusaurus/module-type-aliases": "^2.4.3",
"@docusaurus/plugin-client-redirects": "^2.4.3",
"@docusaurus/plugin-google-analytics": "^2.4.3",
"@docusaurus/plugin-ideal-image": "^2.4.3",
"@docusaurus/plugin-pwa": "^2.4.3",
"@docusaurus/preset-classic": "^2.4.3",
"@docusaurus/remark-plugin-npm2yarn": "^2.4.3",
"@docusaurus/theme-search-algolia": "^2.4.3",
"@mdx-js/react": "^1.6.22",
"@mendable/search": "^0.0.158",
"@tsconfig/docusaurus": "^2.0.1",
"clsx": "^1.2.1",
"@docusaurus/core": "^3.0.0",
"@docusaurus/module-type-aliases": "^3.0.0",
"@docusaurus/plugin-client-redirects": "^3.0.0",
"@docusaurus/plugin-google-analytics": "^3.0.0",
"@docusaurus/plugin-ideal-image": "^3.0.0",
"@docusaurus/plugin-pwa": "^3.0.0",
"@docusaurus/preset-classic": "^3.0.0",
"@docusaurus/remark-plugin-npm2yarn": "^3.0.0",
"@docusaurus/theme-search-algolia": "^3.0.0",
"@docusaurus/tsconfig": "^3.0.0",
"@mdx-js/react": "^3.0.0",
"@mendable/search": "^0.0.177",
"@tsconfig/docusaurus": "^2.0.2",
"clsx": "^2.0.0",
"docusaurus-theme-github-codeblock": "^1.1.4",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-lite-youtube-embed": "^2.3.52",
"typescript": "^5.2.2",
"workbox-routing": "^6.5.4",
"workbox-strategies": "^6.5.4"
"workbox-routing": "^7.0.0",
"workbox-strategies": "^7.0.0"
},
"engines": {
"node": ">=18.0"
},
"browserslist": {
"production": [
@ -45,5 +49,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@docusaurus/theme-common": "^3.0.0"
}
}

View file

@ -1,2 +0,0 @@
const sidebars = require('./sidebars.json')
module.exports = sidebars

5
website/sidebars.ts Normal file
View file

@ -0,0 +1,5 @@
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs'
import sidebars from './sidebars.json' assert { type: 'json' }
export default sidebars as SidebarsConfig

View file

@ -1,10 +0,0 @@
module.exports = {
community: [
'support',
'openofficehours',
'team',
'resources',
'materials',
'donate'
]
}

View file

@ -0,0 +1,14 @@
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs'
const sidebarsCommunity: SidebarsConfig = {
community: [
'support',
'openofficehours',
'team',
'resources',
'materials',
'donate'
]
}
export default sidebarsCommunity

View file

@ -1,6 +1,7 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"_version": "2.0.0",
"extends": "@docusaurus/tsconfig/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"esModuleInterop": true,
@ -25,5 +26,6 @@
]
},
"skipLibCheck": true
}
}
},
"exclude": ["node_modules", "build"]
}