INNER CODE UNIT · Python
sample
yaojingang/GEOFlow · scripts/audit-admin-ui-v3-navigation.py:33
const sample = () => {
window.__gfFrames.push({
state: document.documentElement.getAttribute('data-gf-sidebar-state'),
sidebar: rect('.gf-sidebar'),
shellBody: rect('.gf-shell__body'),
});
count += 1;
if (count < 40) requestAnimationFrame(sample);
};
requestAnimationFrame(sample);
})();
"""
def login(context, base_url: str):
page = context.new_page()
page.goto(f"{base_url}/admin/login", wait_until="domcontentloaded")
page.locator("#username").fill("ui_v3_reviewer")