嘗試運行我的夜班項目時,出現了npm run project_one,我收到了此回覆。 There was an error while starting the test runner:
Error: Cannot read source folder: /Users/BenyJo/examples/tests
at /Users/BenyJo/node_modules/night
我知道我可以使用waitForSelector來測試某個特定元素是否準備就緒,但JavaScript呢? this.waitForSelector('#someid', function _then() {
// do something that requires js to be fully loaded and functional
// before clicking