Beispiel #1
0
 def prep(self):
     if not self.ifc:
         o = self.options
         self.ifc = SeleniumInterface(executor='http://%s:4444/wd/hub' % o.selenium,
                                      browser='htmlunit', platform='ANY')
         self.ifc.open()
         self._ourifc = True
Beispiel #2
0
 def prep(self):
     if not self.ifc:
         o = self.options
         if ':' not in o.selenium:
             o.selenium = '%s:4444' % o.selenium
         self.ifc = SeleniumInterface(executor='http://%s/wd/hub' % o.selenium,
                                      browser='chrome', platform='ANY')
         self.ifc.open()
         self._ourifc = True