Mind Dump, Tech And Life Blog
written by Ivan Alenko
published under license Attribution 4.0 International (CC BY 4.0)copy! share!
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