backup script completed, all backup taken for 23-Feb
This commit is contained in:
16
wsl/scripts/ops-snaps/session_rmq.py
Normal file
16
wsl/scripts/ops-snaps/session_rmq.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user