This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ func (f *Frame) waitForSelector(selector string, opts *FrameWaitForSelectorOptio
560
560
return nil , err
561
561
}
562
562
if handle == nil {
563
- return nil , errors . New ("wait for selector didn't resulted in any nodes" )
563
+ return nil , fmt . Errorf ("wait for selector %q did not result in any nodes" , selector )
564
564
}
565
565
566
566
// We always return ElementHandles in the main execution context (aka "DOM world")
@@ -569,14 +569,14 @@ func (f *Frame) waitForSelector(selector string, opts *FrameWaitForSelectorOptio
569
569
570
570
ec := f .executionContexts [mainWorld ]
571
571
if ec == nil {
572
- return nil , fmt .Errorf ("wait for selector cannot find execution context: %q" , mainWorld )
572
+ return nil , fmt .Errorf ("wait for selector %q cannot find execution context: %q" , selector , mainWorld )
573
573
}
574
574
// an element should belong to the current execution context.
575
575
// otherwise, we should adopt it to this execution context.
576
576
if ec != handle .execCtx {
577
577
defer handle .Dispose ()
578
578
if handle , err = ec .adoptElementHandle (handle ); err != nil {
579
- return nil , fmt .Errorf ("wait for selector cannot adopt element handle: %w" , err )
579
+ return nil , fmt .Errorf ("wait for selector %q cannot adopt element handle: %w" , selector , err )
580
580
}
581
581
}
582
582
You can’t perform that action at this time.
0 commit comments