Meta tags:
description= A Model Context Protocol (MCP) server that enables AI assistants to interact with web browsers and mobile applications using WebDriverIO. Automate Chrome browsers, iOS apps, and Android apps—all through a unified interface. - webdriverio/mcp;
Headings (most frequently used words):
mobile, navigation, app, automation, browser, sessions, resources, code, ios, android, session, web, mcp, repository, about, files, installation, cloud, features, tools, footer, topics, of, conduct, security, policy, stars, watchers, forks, for, prerequisites, management, interaction, element, recording, webdriverio, server, menu, latest, commit, history, folders, and, providers, available, usage, examples, important, notes, selector, syntax, quick, reference, advanced, technical, details, troubleshooting, releases, sponsor, this, project, used, by, contributors, languages, option, global, http, transport, non, subprocess, clients, local, tunnel, reporting, labels, provider, page, cookie, after, enable_tools, gestures, context, switching, hybrid, apps, device, control, documentation, search, read, only, no, tool, call, needed, real, world, test, cases, mocking, electron, applications, state, preservation, smart, detection, automatic, permission, alert, handling, export, trace, logs, multiple,
Text of the page (most frequently used words):
the (222), and (130), session (128), #browser (95), app (85), wdio (78), mcp (72), with (66), for (57), #android (48), provider (48), platform (47), start_session (45), sessions (45), chrome (43), true (40), default (40), mobile (39), ios (36), device (34), electron (33), appium (32), server (28), path (28), are (26), only (26), current (25), that (24), all (24), your (24), command (23), code (22), json (22), url (22), one (21), cloud (21), existing (21), start (21), latest (21), action (20), testing (20), elements (20), tunnel (20), testingbot (20), not (19), local (19), capabilities (19), page (19), use (19), webdriverio (18), apps (18), webdriver (18), state (18), browserstack (18), name (18), tool (17), npx (17), running (16), detach (16), false (16), test (16), args (16), windows (16), osversion (16), github (15), web (15), get (15), you (14), emulator (14), automation (14), support (14), devicename (14), example (14), new (14), tools (14), devices (13), macos (13), when (13), login (13), binary (13), description (13), digitalai (13), config (13), context (12), requires (12), returns (12), set (12), export (12), data (12), optional (12), screen (12), text (12), platformversion (12), http (12), this (11), project (11), com (11), browsers (11), claude (11), safari (11), log (11), api (11), element (11), button (11), pass (11), without (11), apk (11), open (11), settings (11), run (11), port (11), required (11), mock (11), digital (11), mcpservers (11), can (10), cookies (10), security (10), protocol (10), screenshot (10), close (10), via (10), remote (10), udid (10), bidi (10), attach (10), mocks (10), mocktype (10), testmu (10), sauce (10), saucelabs (10), reporting (10), build (10), using (9), after (9), accessibility (9), switch (9), noreset (9), close_session (9), real (9), native (9), myapp (9), options (9), pixel (9), add (9), lambdatest (9), labs (9), navigation (8), custom (8), resources (8), installed (8), firefox (8), edge (8), logs (8), require (8), type (8), auto (8), frame (8), from (8), sessionid (8), steps (8), call (8), calls (8), visible (8), attach_session (8), keep (8), see (8), first (8), webview (8), extension (8), process (8), endpoint (8), version (8), todos (8), key (8), install (8), list_apps (8), your_access_key (8), model (7), applications (7), desktop (7), window (7), result (7), before (7), already (7), full (7), step (7), every (7), debugging (7), behavior (7), selector (7), list (7), contexts (7), click (7), iphone (7), value (7), defaults (7), https (7), external (7), request (7), its (7), then (7), connect (7), main (7), select (7), network (7), platformname (7), docs (6), report (6), repository (6), interact (6), through (6), verify (6), available (6), each (6), system (6), generated (6), any (6), automatically (6), management (6), control (6), xpath (6), specific (6), between (6), fullreset (6), reset (6), features (6), must (6), tap (6), simulator (6), extensions (6), restore (6), another (6), tauri (6), lifecycle (6), get_mock_calls (6), requests (6), mode (6), documentation (6), refs (6), several (6), perform_actions (6), snapshot (6), upload_app (6), devicequery (6), combined (6), your_username (6), status (5), conduct (5), license (5), readme (5), package (5), automate (5), check (5), resource (5), getlogs (5), shows (5), next (5), player (5), trace (5), source (5), headed (5), headless (5), both (5), managed (5), supports (5), user (5), physical (5), find (5), active (5), take (5), base64 (5), emulation (5), emulate_device (5), 127 (5), launch (5), target (5), application (5), enabled (5), google (5), configure (5), method (5), manage_mock (5), navigate (5), omit (5), enable_tools (5), search (5), book (5), tab (5), download (5), cookie (5), clients (5), live (5), failures (5), capability (5), flow (5), client (5), env (5), codex (5), copilot (5), edit (5), yaml (5), changelog (5), time (4), used (4), forks (4), stars (4), policy (4), enables (4), assistants (4), unified (4), interface (4), xcode (4), timestamp (4), message (4), level (4), per (4), last (4), crash (4), console (4), contents (4), endtime (4), what (4), closes (4), file (4), past (4), runnable (4), lists (4), recorded (4), history (4), inspect (4), detection (4), need (4), them (4), accepts (4), permissions (4), layout (4), off (4), viewport (4), created (4), like (4), runs (4), preservation (4), clear (4), advanced (4), works (4), class (4), css (4), reference (4), into (4), always (4), explicitly (4), hybrid (4), swipe (4), websocketurl (4), selected (4), does (4), 9222 (4), tmp (4), renderer (4), scheme (4), urls (4), uses (4), service (4), configuration (4), values (4), listed (4), world (4), index (4), tree (4), press (4), scoped (4), onexisting (4), more (4), central (4), access (4), transport (4), pnpm (4), signed (4), manage (3), mit (3), about (3), issues (3), ensure (3), drivers (3), response (3), entries (3), return (3), chromium (3), note (3), reports (3), exceptions (3), right (3), stamped (3), under (3), than (3), timeline (3), here (3), previous (3), field (3), capture (3), labels (3), long (3), screenshots (3), compatible (3), zip (3), alongside (3), recording (3), automatic (3), xcuitest (3), automated (3), driver (3), handle (3), alerts (3), instead (3), location (3), selectors (3), interactable (3), want (3), workflows (3), leave (3), externally (3), removes (3), parameter (3), terminating (3), launches (3), apppath (3), cross (3), identifier (3), prerequisites (3), starting (3), back (3), switching (3), debug (3), inviewportonly (3), scrolling (3), scroll (3), matching (3), ipa (3), username (3), open_web_extension (3), click_element (3), starts (3), original (3), grid (3), w3c (3), host (3), has (3), attached (3), such (3), bridge (3), browsername (3), setup (3), dir (3), linux (3), localhost (3), appbinarypath (3), electronserviceoptions (3), work (3), down (3), browserversion (3), official (3), release (3), these (3), there (3), cannot (3), intercepted (3), title (3), responses (3), accept (3), fail (3), individual (3), showopendialog (3), funcname (3), dialog (3), apiname (3), mocking (3), groups (3), basic (3), books (3), demo (3), java (3), geolocation (3), currently (3), tabs (3), gestures (3), changes (3), sent (3), changed (3), their (3), agent (3), interaction (3), keeps (3), side (3), none (3), lock (3), storage (3), enable (3), region (3), abc123 (3), flat (3), osname (3), sequoia (3), digitalai_access_key (3), digitalai_cloud_url (3), secret (3), testingbot_secret (3), testingbot_key (3), testmu_access_key (3), testmu_username (3), center (3), sauce_access_key (3), sauce_username (3), tests (3), 3000 (3), stdio (3), zed (3), goose (3), cursor (3), claude_desktop_config (3), files (3), commit (3), quality (3), refresh (3), reload (3), sign (3), developers (3), customer (3), enterprise (3), grade (3), share (2), community (2), footer (2), sponsor (2), watching (2), watchers (2), properties (2), activity (2), topics (2), www (2), npmjs (2), correct (2), accessible (2), working (2), other (2), try (2), types (2), entry (2), includes (2), read (2), buffer (2), syslog (2), crashlog (2), logcat (2), errors (2), rather (2), prev (2), captured (2), settled (2), curr (2), starttime (2), screencast (2), event (2), contains (2), now (2), out (2), takes (2), which (2), how (2), script (2), including (2), clicks (2), standalone (2), needed (2), based (2), filtering (2), multi (2), locator (2), named (2), uiautomator2 (2), permission (2), during (2), dismiss (2), etc (2), autograntpermissions (2), handling (2), alert (2), optionally (2), hierarchy (2), multiple (2), containers (2), view (2), viewgroup (2), framelayout (2), scrollview (2), scenarios (2), preserving (2), useful (2), closed (2), adopted (2), terminate (2), explicit (2), intact (2), chromedriver (2), don (2), uninstall (2), 5554 (2), preserve (2), but (2), preserved (2), creating (2), parameters (2), predicate (2), label (2), uiautomator (2), exact (2), unique (2), section (2), emulators (2), simulators (2), may (2), focused (2), unless (2), disconnect (2), native_app (2), home (2), includecontainers (2), grant (2), enter (2), html (2), encoded (2), extensiondata (2), send (2), save (2), get_elements (2), drive (2), normal (2), unpacked (2), presets (2), was (2), never (2), stops (2), needs (2), hostname (2), webdriverconfig (2), 4723 (2), credentials (2), while (2), outside (2), 4445 (2), selenium (2), framework (2), instance (2), trigger_electron_deeplink (2), against (2), trigger (2), deeplink (2), execute_electron_script (2), privileged (2), appargs (2), top (2), statuscode (2), respond (2), observe (2), record (2), still (2), queued (2), also (2), function (2), functions (2), arbitrary (2), mockresolvedvalue (2), omitted (2), profile (2), expert (2), assess (2), fiction (2), choose (2), validate (2), findings (2), end (2), onboarding (2), skip (2), loads (2), scanning (2), place (2), slug (2), jar (2), given (2), bundle (2), most (2), excerpts (2), max (2), matched (2), pages (2), keyboard (2), rotate (2), background (2), drag (2), direction (2), tap_element (2), delete (2), single (2), fill (2), instructions (2), ref (2), rarely (2), separate (2), set_value (2), repeat (2), uncheck (2), too (2), times (2), combination (2), option (2), different (2), configured (2), execute (2), javascript (2), names (2), interactive (2), bob (2), made (2), tablet (2), touch (2), group (2), performance (2), notifications (2), apply (2), analysis (2), content (2), previously (2), uploaded (2), upload (2), manages (2), machine (2), directly (2), samsung (2), filename (2), providers (2), bstack (2), execution (2), passed (2), your_secret (2), your_key (2), browserstack_access_key (2), browserstack_username (2), reveal (2), globally (2), npm (2), allowed (2), protection (2), subprocess (2), secure (2), installation (2), restart (2), windsurf (2), items (2), vitest (2), tsup (2), tsconfig (2), workspace (2), glama (2), eslint (2), mjs (2), roadmap (2), nvmrc (2), gitignore (2), src (2), architecture (2), husky (2), 413 (2), commits (2), actions (2), menu (2), star (2), insights (2), projects (2), universe (2), training (2), integrations (2), stories (2), learn (2), business (2), fixes (2), products (2), perform, personal, information, contact, privacy, terms, 2026, inc, languages, contributors, releases, please, feedback, found, have, suggestions, adb, instances, restarting, completely, troubleshooting, unix, timestampiso, logtypes, sessiontype, reading, spec, subsequent, reads, accumulated, since, clears, panic, diagnostics, dumps, fatal, output, uncaught, sources, detecting, fetch, final, renders, appearing, orphaned, ends, monotonic, executes, will, fix, stamp, just, completed, places, inside, precursor, lastafterendtime, tricky, part, making, show, associates, whichever, falls, sync, round, trip, 700, 1300, enough, animations, settle, exploit, fires, prior, takescreenshot, timed, passing, produces, playwright, directory, playable, filmstrip, vibium, dev, reconstructs, inputs, catch, finally, marking, rest, import, timestamps, count, extra, xml, parsing, intelligent, strategy, generation, toon, token, oriented, object, notation, efficient, llm, communication, format, integration, espresso, typescript, built, technical, details, eliminates, manually, popups, accepting, autodismissalerts, dialogs, autoacceptalerts, grants, camera, include, container, understand, whether, provides, strategies, identifies, textfield, stackview, collectionview, edittext, checkbox, classification, smart, where, remain, invocations, manual, continuation, particularly, should, deliberately, termination, killing, disconnects, tokens, preferences, autowebview, chromedriverexecutable, reinstall, clean, slate, stays, widget, string, uiselector, loginbutton, syntax, quick, character, connected, consume, limits, quickly, extensive, break, complex, smaller, operations, task, planning, requested, controlled, creation, done, free, important, notes, analyze, pixel_6_api_34, displayed, 00008030, 001234567890abcd, scenario, resetting, remains, located, pro, testuser, packaged, archive, activate, alive, hub, 443, appiumconfig, automationname, been, reuses, registers, appropriate, locally, issue, detaches, terminates, owns, exposes, embed, expose, separately, connects, stop, tunnels, quit, ignores, pkill, sleep, ready, curl, 9333, navigationurl, item, electrondeeplinkscheme, dom, tears, intentionally, unsupported, plus, uri, colon, dispatched, logdir, capturerendererlogs, capturemainprocesslogs, getname, disable, gpu, node, later, lines, put, builder, forge, discovery, electronrootdir, appentrypoint, negotiated, additionally, handles, belong, reused, replaced, three, participate, tracing, replay, 200, buy, milk, overwrite, changing, intercept, glob, filter, passively, altering, continues, body, callcount, redirectonce, redirect, abortonce, abort, headers, respondonce, async, apis, variant, repeated, preserves, reinstates, implementations, exposed, undefined, once, mockrejectedvalue, mockreturnvalue, picker, txt, filepaths, canceled, selection, because, they, kinds, load, goog, chromeoptions, prefs, 1080, windowheight, 1920, windowwidth, dimensions, 1280x1080, prompt, worldofbooks, structure, commerce, site, users, liveapigbregionnonminifiedrelease, 3018788, bypass, cases, usage, examples, markdown, truncated, 40000, characters, slugs, come, separated, detects, resolved, bundleid, relevant, distinctive, keywords, sentence, dilutes, ranking, independent, fullpage, limit, query, query_docs, gps, set_geolocation, hide, hide_keyboard, portrait, landscape, rotate_device, foreground, get_app_state, switch_context, webview_, get_contexts, drag_and_drop, left, coordinates, delete_cookies, attributes, set_cookie, get_cookies, stay, valid, until, row, form, submit, act, recommended, workflow, well, navigated, effect, e12, fills, selects, checks, presses, failure, follows, 100, press_key, select_option, replace, input, textarea, iframe, switch_frame, switch_tab, arguments, records, whose, commands, execute_script, specified, pixels, get_tabs, resized, 2000px, 1mb, get_screenshot, roles, get_accessibility_tree, bounds, plain, dropped, parts, containing, link, targets, included, adds, alice, bound, argument, either, omitting, targeting, targeted, same, queue, order, concurrently, unknown, others, error, refer, id8, answering, emulate, preset, dpr, launch_chrome, looks, retains, cdp, connection, override, networklogs, 400, responsereceived, loadingfailed, wdio_mcp_network_logs, fit, below, attaching, raw, uploads, definitions, aren, union, platforms, everything, front, wdio_mcp_tools, ids, predicates, unlock, seamlessly, drop, exportable, simulate, responsive, layouts, reuse, endpoints, ideal, authenticated, pre, smooth, configurable, distances, trees, forms, retrieve, modes, tag, appear, dashboard, downloads, yourself, provide, stopped, internal, organizationwide, app_name, sortby, force, uploading, galaxy, s23, map, fields, testname, nested, numbered, mac, naming, pick, setting, chosen, tracks, versions, pin, pure, assertion, reach, detected, enforcewebdriverclassic, over, make, reflect, actual, opt, classic, accesskey, environment, variables, shown, itunes, apple, icon, serial, number, finder, studio, point, cors, allow, origin, blocked, allowedorigins, header, dns, rebinding, allowedhosts, listen, flag, subprocesses, llama, cpp, openai, non, follow, guide, help, prefer, global, adding, fully, context_servers, codeium, mcp_config, cmd, mcp_servers, toml, cli, create, cline_mcp_settings, cline, appdata, library, standard, following, date, folders, tags, branches, fork, change, notification, public, pull, switched, accounts, appearance, pricing, talks, workshops, partners, company, forum, events, webinars, blog, premium, ons, trust, why, evaluate, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, improvements, across, developer, articles, sponsors, trending, repos, explore, customize, certifications, leak, prevention, vulnerability, remediation, development, environments, codespaces, enforcement, ship, coding, tasks, hosting, review, collaboration,
Text of the page (random words):
elf the wdio saucelabs local binary wdio testmu local binary and wdio testingbot local binary resources provide download urls and setup instructions the testingbot tunnel is a single cross platform java jar requires java 11 rather than a per platform binary reporting labels all session types support reporting labels that appear in the provider dashboard field description reporting project group sessions under a project name reporting build tag sessions with a build version label reporting session name for the individual test session cloud provider tools tool description upload_app upload a local apk or ipa to the provider returns an app url reference list_apps list apps previously uploaded to the provider s app storage both tools require a provider parameter browserstack saucelabs testmu testingbot or digitalai features browser automation session management start and close browser sessions chrome firefox edge safari with headless headed modes navigation interaction navigate urls click elements fill forms and retrieve content page analysis get visible elements accessibility trees take screenshots cookie management get set and delete cookies scrolling smooth scrolling with configurable distances attach to running chrome connect to an existing chrome window via remote debugging port ideal for testing authenticated or pre configured sessions connect to existing webdriver endpoints reuse an already running selenium compatible webdriver endpoint such as a framework managed browser or a desktop webview automation bridge like tauri device emulation apply mobile tablet presets iphone 15 pixel 7 etc to simulate responsive layouts without a physical device session recording all tool calls are automatically recorded and exportable as runnable webdriverio js mobile app automation ios android native app testing test ios app ipa and android apk apps via appium touch gestures tap swipe long press drag and drop app lifecycle launch background terminate check app state context switching seamlessly switch between native and webview contexts for hybrid apps device control rotate lock unlock geolocation keyboard control notifications cross platform selectors accessibility ids xpath uiautomator android predicates ios available tools the server lists only the tools that fit the current session browser sessions get the page tools below mobile sessions the gestures and device tools electron sessions the electron tools rarely used groups mocks cookies device emulation extensions attaching the raw element list cloud app uploads are listed after the agent calls enable_tools so their definitions aren t sent with every request with several live sessions tools are listed for the union of their platforms set wdio_mcp_tools all to list everything up front set wdio_mcp_network_logs to configure the default chromium network performance log capture mode for start_session none default off failures network loadingfailed and network responsereceived entries with http status 400 or all every chromium performance log entry individual sessions can override this default via start_session networklogs none failures all tool description enable_tools add a group of tools mocks cookies device extensions attach elements cloud apps session management tool description start_session start a browser local electron application or mobile app session attach true retains the existing chrome cdp connection mode optional name and onexisting close keep keep runs it alongside existing sessions the new session is not made the default attach_session attach to an existing remote webdriver appium session by sessionid without creating a new session optional name and onexisting with only a name looks up a live session launch_chrome launch a new chrome instance with remote debugging enabled for use with start_session attach true close_session close or detach from the default session or the one named by the optional session target supports detach true to disconnect without terminating emulate_device emulate a mobile tablet device preset viewport dpr ua touch requires bidi session open_web_extension install a web extension through webdriver bidi and open one of its extension pages so normal page tools can drive its ui multiple sessions by default the server keeps one session starting a new one closes the previous one to run sessions side by side pass onexisting keep and a name to start_session the new session is not made the default so the original keeps answering calls that omit a target every session bound tool accepts an optional session argument either a name or a sessionid sessionid is matched first omitting it uses the default session and targeting a session never changes the default when a call is targeted or more than one session is live the result starts with session name id8 calls to the same session queue and run in order calls to different sessions run concurrently an unknown target or no default session while others are live returns an error that lists the live sessions names are scoped to one server process the wdio session current resources always refer to the default session start_session platform browser browser chrome name alice start_session platform browser browser chrome name bob onexisting keep navigate url https example com session bob navigation page interaction web mobile tool description navigate navigate to a url in browsers the result shows the new page s interactive elements with refs snapshot the page as an accessibility tree with refs button save ref e3 interactive elements by default plain text is dropped full true shows it pass refs to perform_actions for several steps find returns only the parts containing a text link targets included full true adds all text viewport true keeps only what is on screen works for apps too the screen s accessibility tree get_elements get visible interactable elements with bounds supports inviewportonly default true and includecontainers default false mobile and electron listed after enable_tools groups elements use snapshot first get_accessibility_tree get the accessibility tree with roles names and selectors electron only browsers use snapshot get_screenshot take a screenshot of the current page or screen base64 encoded auto resized to max 2000px 1mb get_tabs list all open browser tabs with handle title url and active status browser only scroll scroll in a direction up down by specified pixels browser only execute_script execute arbitrary javascript in the browser or appium mobile commands on devices execute_electron_script execute privileged javascript in the electron main process electron sessions only trigger_electron_deeplink trigger an electron deeplink whose scheme was explicitly configured at session start mock configure a session scoped mock an electron main process api function or a browser network request get_mock_calls inspect call arguments electron or intercepted request records browser for a session scoped mock manage_mock clear reset or restore a session scoped mock switch_tab switch to a different browser tab by handle or 0 based index browser only switch_frame switch into an iframe by css xpath selector or back to the top level frame if no selector is given browser only element interaction web mobile tool description click_element click an element set_value replace the text of an input or textarea select_option select an option of a select by its text for several steps use perform_actions browser only press_key press a key or combination enter control a in the focused element optionally times 1 100 to repeat it for several steps use perform_actions browser only perform_actions run several clicks fills selects checks and key presses press accepts times to repeat in one call stops at the first failure when a step loads a new page or before a key press that follows a click select check or uncheck that changed the page works for apps too select check and uncheck are web only click_element set_value tap_element and perform_actions take a ref from snapshot e12 as well as a selector in browsers and apps and each result lists what the action changed on the page or screen new or changed elements with their refs or the page it navigated to an agent rarely needs a separate screenshot or snapshot to see the effect recommended workflow also sent to clients as server instructions snapshot then act with refs several steps in a row fill a form then submit one perform_actions call refs from the latest result stay valid until the page changes cookie management web after enable_tools tool description get_cookies get all cookies for the current session or a single cookie by name set_cookie set a cookie with name value and optional attributes delete_cookies delete all cookies or a specific cookie mobile gestures ios android tool description tap_element tap an element by selector or coordinates swipe swipe in a direction up down left right drag_and_drop drag from one location to another context switching hybrid apps tool description get_contexts list available automation contexts native_app webview_ and the currently active one switch_context switch between native and webview contexts device control ios android tool description get_app_state get the current lifecycle state of a mobile app not installed not running background foreground rotate_device rotate to portrait or landscape hide_keyboard hide on screen keyboard set_geolocation set device gps location documentation search tool description query_docs search the official webdriverio documentation and return the most relevant excerpts with page section and source url query is required 2 3 distinctive keywords a sentence dilutes the ranking limit defaults to 5 max 20 fullpage default false returns the full matched pages instead of excerpts session independent mcp resources read only no tool call needed resource description wdio sessions index of all recorded sessions wdio session current steps step log for the default session wdio session current code generated runnable webdriverio js for the default session wdio session id steps step log for any past session by id wdio session id code generated js for any past session by id wdio session current elements interactable elements viewport only by default wdio session current accessibility accessibility tree wdio session current screenshot screenshot base64 wdio session current cookies browser cookies wdio session current tabs open browser tabs wdio session current contexts native webview contexts mobile wdio session current context currently active context mobile wdio session current app state bundleid mobile app lifecycle state for a given bundle id wdio session current geolocation device geolocation wdio session current capabilities resolved webdriver capabilities for the default session wdio session current logs crash console logs for the default session auto detects session type browser console logs js exceptions android logcat ios crashlog syslog wdio browserstack local binary browserstack local binary download url and start command wdio saucelabs local binary sauce connect binary download url and start command wdio testmu local binary testmu tunnel binary download url and start command wdio testingbot local binary testingbot tunnel jar download url and start command java 11 wdio docs index every page of the official webdriverio documentation as tab separated title source path and slug wdio docs page slug full markdown of one documentation page truncated at 40000 characters slugs come from wdio docs index in place of usage examples real world test cases example 1 testing demo android app book scanning test the demo android app at c users demo liveapigbregionnonminifiedrelease 3018788 apk on emulator 5554 1 start the app with auto grant permissions 2 get visible elements on the onboarding screen 3 tap skip to bypass onboarding 4 verify main screen loads 5 take a screenshot example 2 testing world of books e commerce site you are a testing expert and want to assess the basic workflows of worldofbooks com open world of books accept all cookies get visible elements to see navigation structure search for a fiction book choose one and validate if there are new and used book options report your findings at the end browser automation basic web testing prompt you are a testing expert and want to assess the basic workflows of a web application open world of books accept all cookies search for a fiction book choose one and validate if there are new and used book options report your findings at the end browser configuration options default settings headed mode 1280x1080 start_session platform browser firefox start_session platform browser browser firefox edge start_session platform browser browser edge safari headed only requires macos start_session platform browser browser safari headless mode start_session platform browser headless true custom dimensions start_session platform browser windowwidth 1920 windowheight 1080 pass custom capabilities e g chrome extensions profile prefs start_session platform browser headless false capabilities goog chromeoptions args user data dir tmp wdio mcp profile load extension path to unpacked extension mocking mocking is available through mock get_mock_calls and manage_mock listed after enable_tools groups mocks for both electron main process api functions and browser network requests mocktype accepts electron or browser browser mocks are the default in webdriver sessions when mocktype is omitted electron sessions require an explicit selection because they can target both kinds of mocks ios android appium sessions do not support mocking mock mocktype electron apiname dialog funcname showopendialog behavior mockresolvedvalue value canceled false filepaths tmp example txt interact with the renderer to open the application s file picker then inspect its calls get_mock_calls mocktype electron apiname dialog funcname showopendialog manage_mock mocktype electron apiname dialog funcname showopendialog action restore electron behavior defaults to mockreturnvalue mockresolvedvalue and mockrejectedvalue support async apis each has a once variant for queued responses repeated configuration preserves the existing mock and call history values must be json omit value for undefined clear removes call history reset also removes behavior and queued responses and restore reinstates the original function these tools support individual api functions class mocks and arbitrary mock implementations are not exposed browser mocks intercept network requests matching a url glob for example api todos with an optional method filter behavior is optional omit it to passively record matching requests without altering them the mock still continues every request respond and respondonce require value the json response body and accept optional statuscode and headers abort abortonce fail the request and redirect redirectonce send it to the url in value get_mock_calls returns calls callcount for the intercepted requests and manage_...
|