Mind Dump, Tech And Life Blog
written by Ivan Alenko
published under license CC4-BY
posted at 08. Jul '17

Debugging Webdriver.io and Cucumber-js

I’m not sure if I like Cucumber tests yet, because I don’t know much how to debug them easily (ES6 syntax!).

How to inspect selector method (.elements(selector))?

browser.elements('.article').value.map((item) => {
  console.log(item.getText())
});

or if you have multiple windows

browser.select('killer_app').elements('.article').value.map((item) => {
  console.log(item.getText())
});

Add Comment