下面的Node.js片段产生以下输出。为什么promise.allSettled在第18行的第一个sleep之后而不是在第21行的第二个sleep之后被调用?Cycle 0 is going to sleep promise.js:2Returned from sleepfunction promise.js:19
Cycle 0 is going to
(爪哇)。目前正在尝试到达位于页面底部的“next”按钮,JavaScript脚本JavaScript正确地将我带到元素,但我希望逐渐到达它。例如,滚动500个像素,直到该元素滚动到视图中。WebElement next = driver.findElement(By.xpath("..."));
jas.executeScript("arguments[0].sc