Skip to content

Commit 05ee2e7

Browse files
authored
Use about:blank as default and executable target to reduce start up time and bandwidth. (issue #44) (#68)
1 parent f6995ce commit 05ee2e7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Changed
1515

16+
- Default and launch changed to use `about:blank` (faster start and less bandwidth) @raycardillo
17+
1618
### Removed
1719

1820
## [0.4.2] - 2025-02-11

zendriver/core/browser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def _handle_target_update(
240240
self.targets.remove(current_tab)
241241

242242
async def get(
243-
self, url="chrome://welcome", new_tab: bool = False, new_window: bool = False
243+
self, url="about:blank", new_tab: bool = False, new_window: bool = False
244244
) -> tab.Tab:
245245
"""top level get. utilizes the first tab to retrieve given url.
246246
@@ -331,6 +331,7 @@ async def start(self) -> Browser:
331331

332332
exe = self.config.browser_executable_path
333333
params = self.config()
334+
params.append("about:blank")
334335

335336
logger.info(
336337
"starting\n\texecutable :%s\n\narguments:\n%s", exe, "\n\t".join(params)

zendriver/core/tab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ async def select_all(
341341
return items
342342

343343
async def get(
344-
self, url="chrome://welcome", new_tab: bool = False, new_window: bool = False
344+
self, url="about:blank", new_tab: bool = False, new_window: bool = False
345345
):
346346
"""top level get. utilizes the first tab to retrieve given url.
347347

0 commit comments

Comments
 (0)