Skip to content

Commit 0140cbb

Browse files
authored
Hot fix browser management wait for new window and timeout issue (#66)
1 parent 01eb636 commit 0140cbb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

PuppeteerLibrary/keywords/utility.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ def set_timeout(self, timeout):
2020
See the Timeout section above for more information.
2121
2222
Example:
23-
24-
| ${orig timeout} = | Set Timeout | 15 seconds |
23+
2524
| Open page that loads slowly | | |
2625
| Set Timeout | ${orig timeout} | |
2726

PuppeteerLibrary/puppeteer/async_keywords/puppeteer_browsermanagement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def _get_window_count_async(self):
5656
try:
5757
await page.title()
5858
except:
59-
return []
59+
return -1
6060
return len(await self.library_ctx.get_all_pages())
6161

6262
async def switch_window(self, locator='MAIN'):

0 commit comments

Comments
 (0)