Ask coding questions

← Back to all posts
How can I run selenium 247 ?

I have two files '' and ''. I am trying to run selenium in the main file and in other threads I am trying to run which creates a flask webserver so that I can ping the keep_alive server with uptimerobot. So that both the file will run in servers 24/7. But when selenium starts the flask webserver stops running and ti shows an error

handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread