GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Reference
  • Ecosystem
  • Blog
  • Community
  • v10
  • v10
  • v9
  • Sponsor
  • Protocols
  • browser
  • $$
  • $
  • action

This view

  • Original page
  • New address

GeezerVison is showing webdriver.io — debug | WebdriverIO

This command helps you to debug your integration tests. It stops the running browser and gives you time to jump into it and check the state of your application (e.g. using dev tools). Your terminal transforms into a REPL interface that will allow you to try out certain commands, find elements and test actions on them.

WebdriverIO REPL

If you run the WDIO testrunner make sure you increase the timeout property of the test framework you are using (e.g. Mocha or Jasmine) in order to prevent test termination due to a test timeout. Also avoid executing the command with multiple capabilities running at the same time.

Usage​

await browser.debug()

Example​

debug.js
it('should demonstrate the debug command', async () => {
await $('#input').setValue('FOO')
await browser.debug() // jumping into the browser and change value of #input to 'BAR'
const value = await $('#input').getValue()
console.log(value) // outputs: "BAR"
})
  • Usage
  • Example
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.