Skyvern-AI / Skyvern-AI/rustwright

[Bug]: page.pause() not working

Open
#188 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
890
Forks
58
Avg merge
20h 29m
Merged PRs (30d)
12

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the sync_api and async API entry points shown in the reproduction, then trace how page.pause() is handled when imported from rustwright rather than default Playwright. Reproduce the issue on Windows with headless=False in both modes; done means the recorder window opens for both page.pause() forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.