I'm using robotframework+seleniumlibrary and I often got the following error when I launch test cases

Failed to start new browser session: Error while launching browser

I'm connected by "ssh -X nome@server-ip" on my company server from where I launch TC, and after I got the error above, the only way to solve it, it is to disconnect and re-start a new ssh connection....

2 Answers
2

If you can't determine why the browser won't launch, you can make your tests more robust. Make sure to clean the environment during test warmup, add some retry/wait/timeout wrappers around the section that launches the browser, and kill any processes and services that aren't relevant to the test.

In order to find out why the browser is crashing, you can look into the differences between failed and successful scenarios, but it might be more helpful to put in some debugging and logging code or look at event log data.