Skip to content

Commit

Permalink
chore: [#1510] Fixes failing integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 committed Aug 28, 2024
1 parent 4a19851 commit fb081c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class BrowserFrameFactory {
* @param frame Frame.
*/
public static destroyFrame(frame: IBrowserFrame): Promise<void> {
const exceptionObserver = frame.page.context.browser[PropertySymbol.exceptionObserver];
const exceptionObserver = frame.page?.context?.browser?.[PropertySymbol.exceptionObserver];

// Using Promise instead of async/await to prevent usage of a microtask
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit fb081c8

Please sign in to comment.