cucumber-js and Chai how to expect if element with given selector exist in DOM

前端 未结 2 370
被撕碎了的回忆
被撕碎了的回忆 2021-01-12 04:10

I have a problem with cucumberjs. I cannot find a way to ensure that element with given selector is presented into DOM. I\'m using cucumberjs with Chai. https://github.co

2条回答
  •  青春惊慌失措
    2021-01-12 04:48

    Why when expecting the promise to return element we use “false”? Maybe you mean: expect(element.isPresent()).to.be.true?

提交回复
热议问题