示例#1
0
 @BeforeMethod
 @Override
 public void setUp() {
   /*setting browser with enhanced security privileges for selenium*/
   setProperBrowser(SeamSeleniumTest.getBrowser());
   super.setUp();
   browser.open(CONTEXT_PATH);
 }
示例#2
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");
   }
 }
示例#3
0
 @AfterClass
 public void returnBrowser() {
   super.setBrowser(ORIGINAL_BROWSER);
 }