示例#1
0
 /**
  * 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");
   }
 }
示例#2
0
 @AfterClass
 public void returnBrowser() {
   super.setBrowser(ORIGINAL_BROWSER);
 }