Update Browserless Playwright to 1.4.4
I am using the Browserless template. It seems to be using Playwright 1.41. but I am using 1.44. I don't see how I can update this? Suggestions on how to fix this?
https://github.com/railwayapp-templates/browserless
GitHub
GitHub - railwayapp-templates/browserless: Deploy Browserless on Ra...
Deploy Browserless on Railway. Web browser automation built for everyone, and loved by developers. - railwayapp-templates/browserless
38 Replies
Project ID:
b5f44aa4-5dc9-4336-9f3a-920b1aecc01b
project ID = b5f44aa4-5dc9-4336-9f3a-920b1aecc01b
Solution
The playwright service is in my project. I am asking how I can upgrade it. I don't understand how Playwright is getting installed. I guess it is part of the image?
as per that message you should use the the client version of playwright to match the server version
OR I should upgrade the server to match the client, which is what I am asking about.
my recommendation would be the same as the recommendation given to you by the playwright devs, match your client version to the server version
I appreciate your time. I was asking how to upgrade the server, not downgrade the client. I apologize if that was not clear.
I know that you were asking how to upgrade the server version, but given that it's not the recommended solution I feel that there is no need to do so
in the interest of simplicity, please follow the recommended solution as given by the playwright developers
Ok, Sorry for being stubborn 😉
I have have done this, I still cant get my script to run. Any ideas?
what version of the playwright client are you using?
1.41
pip install playwright==1.41.0
have you checked out the example repo?
https://github.com/brody192/playwright-example-python
ya
Question,
If I run the code as a script it should work right, no need to have it as a fastapi app?
correct, its only a demo app
I should be able to connect over the public url
Endpoint like:
wss://browserless-staging-XXXX.up.railway.app/playwright?token=MYTOKEN
yes, i can reproduce, ill try some things
I can share the code I am using.
i can reproduce with the example repo
Your getting the same error as me?
yes
😂
if you solve this before me, let me know haha
I guess I might try something like changing the base image to:
FROM mcr.microsoft.com/playwright:v1.45.0-jammy
uh thats not how it works
I have no idea how it works, Its a mystery to me how the this service.
ive updated the example and the template
https://github.com/brody192/playwright-example-python
hard refresh your browser and deploy a new browserless template
https://browserless-playwright-demo.up.railway.app/
Looking
I thought I corrected for that typo
I'll relaunch
typo?
you need the updated browserless template
I looked at your changes.
I was using the
BROWSER_PLAYWRIGHT_ENDPOINT
Waiting for it to finish the deployment.have you deployed a new browserless template?
yes
it works now 🥳
awsome
That only wasted a few days 🙂
should have come here sooner
Thank you for your help!!!!
no problem!
I should have
I got to sign off, thnaks again