16 lines
596 B
Python
16 lines
596 B
Python
from playwright.sync_api import sync_playwright
|
|
|
|
url = "http://118.67.215.11:15672/#/"
|
|
|
|
with sync_playwright() as pw:
|
|
browser = pw.chromium.launch(headless=False)
|
|
ctx = browser.new_context(ignore_https_errors=True)
|
|
page = ctx.new_page()
|
|
page.goto(url)
|
|
print("\nA browser window is open. Log in to RabbitMQ as you normally do.")
|
|
print("After you see the Overview (or main dashboard) fully loaded, come back here.")
|
|
input("Press Enter to continue...")
|
|
ctx.storage_state(path="session_rmq.json")
|
|
print("Session saved to session_rmq.json")
|
|
browser.close()
|
|
|