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

Add headless browser script #85

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
change var name
  • Loading branch information
Zechereh committed Oct 31, 2024
commit d7f3f04899a930f6c02157c14a1a402a63a93d31
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const STOCK_NUMBER_QUERY = `

// Use Playwright's API to fill the search box and press Enter.
await searchResponse.search_products_box.type('Charmander');
await normalPage.keyboard.press('Enter');
await page.keyboard.press('Enter');

// Use queryData() method to fetch the stock number from the page.
const stockResponse = await page.queryData(STOCK_NUMBER_QUERY);
Expand Down
Loading