Fixing issue with Capabilities from certain Selenium calls