I need to verify that a certain condition happens on different platforms, e.g. a link of an app for iphone only happens on ios devices, and similarly, a link of an app for android only happens on android devices.
My question is if there is a way for selenium driver to detect which platform it is on so I can run a test something similar to:
if (driver == ios) {
do something...
} else if (driver == android) {
do something...
}