Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run without test parameter #11

Closed
agamm opened this issue Nov 15, 2023 · 0 comments · Fixed by #12
Closed

Run without test parameter #11

agamm opened this issue Nov 15, 2023 · 0 comments · Fixed by #12

Comments

@agamm
Copy link
Contributor

agamm commented Nov 15, 2023

I'd like to run it like so:

import { auto } from "auto-playwright";


(async () => { 
  const browser = await chromium.launch({ headless: true }); 
  const context = await browser.newContext(); 
  const page = await context.newPage(); 
  // Navigate to a website 
  await page.goto('https://www.example.com'); 
  
   // `auto` can query data
  // In this case, the result is plain-text contents of the header
  const headerText = await auto("get the header text", { page});
  ....
``

is it possible?
Repository owner deleted a comment from tmcneal Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant