In my PHP application I'd like to detect requests that are for Selenium tests. Mainly because I'd like to use a separate database for tests. Is it possible?
By default, there is nothing indicating that a browser is automated by selenium
as opposed to it being used by a real user. What you can do is to set a specific custom cookie, see:
You can set custom user agent: https://code.google.com/p/selenium/wiki/TipsAndTricks