判断元素不存在的方法
Then(/^No folders exist$/, async () => { //方法1 const favoriteFolderNum=await ResourcePage.favoriteFolder.length await assert(favoriteFolderNum,0) //方法2 await expect(ResourcePage.favoriteFolder).not.toBeExisting() })
标签:Webdriver,await,io,favoriteFolderNum,元素,favoriteFolder,方法 From: https://www.cnblogs.com/chenxiaomeng/p/17060364.html