How to test within Javascript whether it is running Phantom JS (via Poltergeist) or on a regular browser?
Use case: Suppress logging during testing.
Using Poltergeist, Capybara, Ruby.
How to test within Javascript whether it is running Phantom JS (via Poltergeist) or on a regular browser?
Use case: Suppress logging during testing.
Using Poltergeist, Capybara, Ruby.