/** * Method for setting proper browser for selenium so that it can work across multiple domains. * * @param origBrowser Originally intended browser */ private void setProperBrowser(String origBrowser) { ORIGINAL_BROWSER = origBrowser; if (origBrowser.equals("*firefox") || origBrowser.equals("*firefoxproxy")) { super.setBrowser("*chrome"); } if (origBrowser.equals("*iexplore") || origBrowser.equals("*iexploreproxy")) { super.setBrowser("*iehta"); } }
@AfterClass public void returnBrowser() { super.setBrowser(ORIGINAL_BROWSER); }