Skip to content

brody192/playwright-example-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This example is to be used with the Browserless template

Create a reference variable on your Railway service that you deploy your app to -

BROWSER_PLAYWRIGHT_ENDPOINT=${{Browserless.BROWSER_PLAYWRIGHT_ENDPOINT}}

Then use os.environ['BROWSER_PLAYWRIGHT_ENDPOINT'] in code -

Before

browser = await p.chromium.launch()

After

browser = await p.chromium.connect(os.environ['BROWSER_PLAYWRIGHT_ENDPOINT'])

The rest of your code remains the same with no other changes required.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors