Beispiel #1
0
def context(
    browser: Browser, browse_context_args: Dict
) -> Generator[BrowserContext, None, None]:
    context = browser.newContext(**browse_context_args)
    yield context
    context.close()
Beispiel #2
0
def context(browser: Browser,
            context_arguments: Dict) -> Generator[BrowserContext, None, None]:
    context = browser.newContext(**context_arguments)
    yield context
    context.close()