javascript – WebDriver.io没有控制台输出

我使用以下堆栈来运行几个测试:

NodeJs
Selenium standalone
geckodriver thought I use chrome
webdriver.io
mocha 
chai

毕竟我的first_test.js是:

describe ('Website url test ', () => {
  it('should have a title ', () => {
    browser.call((done) => {
      browser.url('http://webdriver.io');
      var title = browser.getTitle();
      expect(title).to.be.equal('WebdriverIO - WebDriver bindings for Node.js')
      done();
    })
  })

控制台中的输出是:控制台输出不正确

enter image description here

但对于通过测试也应如此:正确的控制台输出

enter image description here

Mocha中的内容是否应该更改,以便通过测试会产生相同的光学结果?

解决方法:

这种行为是由记者选择的(在我的案例中为dot).

我改为spec,现在我的输出非常详细.

相关文章

转载地址:https://www.cnblogs.com/mini-monkey/p/12104821...
web自动化测试过程中页面截图相对比较简单,可以直接使用sel...
目录前言一、Selenium简介二、浏览器驱动1.浏览器驱动参考2....
一、iframe的含义:iframe是HTML中框架的一种形式,在对界面...
转载请注明出处❤️作者:测试蔡坨坨原文链接:caituotuo.to...
'''##**认识selenium**​**下载:pipinstall...