gpt4 book ai didi

node.js - 错误: Invalid Chai property: __wd_promise_enriched

转载 作者:太空宇宙 更新时间:2023-11-03 23:23:52 26 4
gpt4 key购买 nike

由于某种原因,我不断收到此错误。这是有问题的代码行

.elementByXPath('//textarea').getAttribute('innerHTML').should.eventually.equal('abcdefg')

我在代码中的其他地方使用了elementByXPath、getAttribute 和should 最终语句,并且工作正常。 _wd_promise_enriched 错误意味着什么?

最佳答案

我遇到了同样的问题,但无法理解为什么会发生这种情况。但是,我用 become 解决了这个问题,因此您的代码将变成:

.elementByXPath('//textarea').getAttribute('innerHTML').should.become('abcdefg')

这相当于:

.elementByXPath('//textarea').getAttribute('innerHTML').should.eventually.deep.equal('abcdefg')

关于node.js - 错误: Invalid Chai property: __wd_promise_enriched,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46772920/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com