long
long
Possible solution: In the onHighlighted API, check if step1 has been completed, and then prepare the work for step2. @zthomas1
@lonix1 👍 https://github.com/kamranahmedse/driver.js/blob/9e6f1a45b3fb023886518a99cfcb3985275b9af0/src/driver.ts#L156-L157 hasNextStep => nextStep?
https://github.com/kamranahmedse/driver.js/blob/9e6f1a45b3fb023886518a99cfcb3985275b9af0/src/highlight.ts#L171-L179 @Kashif-24
https://github.com/kamranahmedse/driver.js/blob/9e6f1a45b3fb023886518a99cfcb3985275b9af0/src/popover.ts#L18 @lonix1
> When I use `driver.js`, I find that the overlay mask always covers the `document.body`. When I need to guide a specific area on the page, it seems like there...
@Pragati1141 https://github.com/kamranahmedse/driver.js/blob/0889e01c809c93f261e321e80d65ee3b25d92387/src/popover.ts#L43 https://github.com/kamranahmedse/driver.js/blob/0889e01c809c93f261e321e80d65ee3b25d92387/index.html#L1077-L1084
``` const [err, res] = await to(this.returnPromise()); if (res) { console.log("res", res); console.log("second case normal process"); } else { console.log("err", err); console.log("second case abnormal process"); } ```