Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何检查页面是否包含带有zombie.js的特定文本?我是否只检查响应并查看它是否有字符串?
如果您不使用应该可以执行以下操作:
assert browser.text('a:contains("Logout")')
如果您使用 should.js,您可以执行以下操作:
browser.response.toString().should.include 'Logout'