I'd like to run different functions in my onPrepare function based on what capabilities I am running. I'd also like to be able to set capabilities from the command line. For example I run every test suite by typing "protractor" at the moment. Something like "protract -android" or "protractor directConnect = true" or anything that functions in a similar manner is what I am looking for.
Then in the onPrepare I have a function that maximizes my window which will not work when I run my android tests. I'm looking for a solution so that when I run the tests on android it just ignores that block of code.