Skip to content

[Bug]: page.pause() not working #188

Description

@yamanjain

What happened?

The code execution jumps the line :
page.pause()
or
await page.pause()

without any recorder (code generation tool) opening on code execution.

It does not work in both sync and async modes.
This starts working if we switch the import statement to default Playwright.

Reproduction

# Minimal code or commands that reproduce the issue
from rustwright.sync_api import sync_playwright

if __name__ == "__main__":
    with sync_playwright() as p:
        browser = p.chromium.launch(headless = False)
        page = browser.new_page()
        page.goto("https://example.com")
        print(page.title())
        # Nothing happens
        page.pause()
        browser.close()

Expected behavior

Code recorder window opens to aid for code generation

Environment

  • OS: Windows 11 build 26200.8875
  • Python version: 3.12.11
  • Rust version:
  • Node version, if relevant:
  • Browser: Chrome
  • Rustwright commit: 0.1.1

Logs

Example Domain

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions