Fix to pass argsTest

browser.getCapability() is deprecated.
Use browser.getCapabilites() instead.