Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After page goto, page url is about:srcdoc #123

Open
jaydenseric opened this issue Jan 1, 2025 · 1 comment
Open

After page goto, page url is about:srcdoc #123

jaydenseric opened this issue Jan 1, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jaydenseric
Copy link

jaydenseric commented Jan 1, 2025

If you have a page instance, when using the method goto with a particular URL, instead of afterwards the page having that new URL, the page property url is "about:srcdoc".

I've tried doing different waitUntil options with the goto call, but it makes no difference.

Before the goto, the page property url asserts as "about:blank". So the page URL is updating, just incorrectly.

@jaydenseric
Copy link
Author

jaydenseric commented Jan 1, 2025

As a temporary workaround, instead of using page.url:

const url = await page.evaluate(() => window.location.href);

@lino-levan lino-levan added the bug Something isn't working label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants