Ejemplo n.º 1
0
 def doPrompt(self):
     self.text = raw_input("Do Test? ")
     try:
         reload(testModule)
         testModule.go(self)
     except Exception as e:
         traceback.print_exc()
         print e,"Couldn't load test"
     return
Ejemplo n.º 2
0
                BbWebCredentials=__import__("BbWebCredentials-"+environment)
                self.base = BbWebCredentials.server
                self.user = BbWebCredentials.user
                self.password=BbWebCredentials.password
            except:
                self.base=raw_input("Enter URL (https://blackboard.usc.edu): ")
                self.user=raw_input("Enter Username: "******"Enter Password: "******"http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.HTMLUNITWITHJS)
#Remote("http://localhost:4444/wd/hub", webdriver.DesiredCapabilities.HTMLUNIT.copy())
        self.cookiesFailed = False
        self.taskTries=0
        self.driver.set_window_size(1400,900)
        self.course_id_dump=DUMP_FILE
        return

    def doPrompt(self):
        self.text = raw_input("Do Test? ")
        try:
            reload(testModule)
            testModule.go(self)
        except Exception as e:
            traceback.print_exc()
            print e,"Couldn't load test"
        return
    
testDriver = TestDriver()
#testDriver.text="delOrphans"
testDriver.text="delUploads"
testModule.go(testDriver)