-
Notifications
You must be signed in to change notification settings - Fork 19
browser.pages() returns same URL and title for all pages #56
Comments
that's how pages looks like when you print it to console, actually it's an array of pages that should work as intended, just like in Puppeteer. |
hmm, but when I did page.title(), that was blank too for all of them :/ edit: Ah nvm, that's also an async function. Thanks for this library! Very useful! |
@deepsweet Okay slightly different issue but:
when I do this (where log.info is just a logging line), it prints the same title for all pages, and same url. Even though they're different tabs with different URLs |
sounds like an interesting bug, I'll take a look early next week. thanks! |
Yeah so the reason for this is that it doesn't look like Selenium has any capability of getting content or title for all window handles. Only able to get that from the active one. So it's basically
Would be nice if foxr can do this by itself though |
I can confirm @AfzalivE's described behavior |
the pages const returns the following, instead of details of each page
Is this intentional or is something happening that I'm not aware of?
Thanks
The text was updated successfully, but these errors were encountered: