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'