We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98626ee commit cb102e8Copy full SHA for cb102e8
src/spoof.ts
@@ -527,11 +527,11 @@ export const createCursor = (
527
// Make sure the object is in view
528
const objectId = elem.remoteObject().objectId
529
if (objectId !== undefined) {
530
- const scrollElemIntoView = (): Promise<void> => elem.evaluate((e, scrollBehavior) => e.scrollIntoView({
531
- block: 'center',
532
- behavior: scrollBehavior
533
- }), optionsResolved.scrollBehavior)
534
-
+ const scrollElemIntoView = async (): Promise<void> => await elem.evaluate((e, scrollBehavior) => e.scrollIntoView({
+ block: 'center',
+ behavior: scrollBehavior
+ }), optionsResolved.scrollBehavior)
+
535
if (optionsResolved.scrollBehavior !== undefined) {
536
await scrollElemIntoView()
537
} else {
0 commit comments