Skip to content

Commit

Permalink
Add logging to cross-browser example
Browse files Browse the repository at this point in the history
Issue: #110
  • Loading branch information
mathiasbynens committed Apr 28, 2022
1 parent 93bcca5 commit 943c2d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/cross-browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@
# This script implements Puppeteer's `examples/cross-browser.js` scenario using WebDriver BiDi.
# https://github.com/puppeteer/puppeteer/blob/4c3caaa3f99f0c31333a749ec50f56180507a374/examples/cross-browser.js

from pathlib import Path
import asyncio
import json
import logging
import os
import websockets
from pathlib import Path


logging.basicConfig(
format="%(message)s",
level=logging.DEBUG,
)

async def get_websocket():
port = os.getenv('PORT', 8080)
url = f'ws://localhost:{port}/session'
Expand Down

0 comments on commit 943c2d3

Please sign in to comment.