Selenium works locally but don't work when I deploy to railway
nephygthk
HOBBYOP

2 years ago

I am having error status 127 when I run my selenium here on railway. I am a newbie here

6 Replies

brody
EMPLOYEE

2 years ago

I would highly recommend using Browserless, using it means you don't have to install Chrome and all of its needed dependencies into your container or deal with any of the issues involved in that, and this will significantly speed up both the build and the publishing stage.

Browserless template here - https://railway.app/template/browserless

And here's an example repo that shows you how to use Browserless with Selenium - https://github.com/brody192/selenium-example


vihardesu
PRO

a year ago

Hi, i have a very very simple selenium task as well, and I don't want to install a whole separate template for my python fast api deployment. Is there a way to get up and running with my existing deployment so that selenium works?


brody
EMPLOYEE

a year ago

I'm sorry but we would only be able to provide support for the template here.

Please give it a try.


vihardesu
PRO

a year ago

Ok, sure. Would you be able to walk me through the basic steps for spinning this up with my custom code (i have a simple python function that is going to be an endpoint)?

1. deploy the browserless on Railway
2. how do i get my python code into my deployment? (i.e. do i create a new github repo and fork something?)


brody
EMPLOYEE

a year ago

Can you open your own thread for that, this is someone else's thread after all.


brody

Can you open your own thread for that, this is someone else's thread after all.

vihardesu
PRO

a year ago


Loading...