()
| 4 | |
| 5 | |
| 6 | async def main(): |
| 7 | driver = await cdp_driver.start_async(locale="en", agent="headless") |
| 8 | endpoint_url = driver.get_endpoint_url() |
| 9 | |
| 10 | async with async_playwright() as p: |
| 11 | browser = await p.chromium.connect_over_cdp(endpoint_url) |
| 12 | page = browser.contexts[0].pages[0] |
| 13 | await page.goto("https://gitlab.com/users/sign_in") |
| 14 | await page.wait_for_timeout(3000) |
| 15 | await driver.solve_captcha() |
| 16 | await page.wait_for_timeout(1000) |
| 17 | await page.locator('label[for="user_login"]').click() |
| 18 | await page.wait_for_selector('[data-testid="sign-in-button"]') |
| 19 | await page.locator("#user_login").fill("Username") |
| 20 | await page.wait_for_timeout(2000) |
| 21 | |
| 22 | |
| 23 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…