示例#1
0
文件: Flows.py 项目: leoche666/FTT
    def Cleanup(self,ctx):
        ctx.Alw('Flows.Cleanup')
        for key,val in self.flows[3]:
            ctx.Alw('key:%s val:%s in Flows.Cleanup'%(key,val))
            find_element_by_suffix(self.driver,key,val,self.buffer)
            switch_to_window(self.driver)

        #clean the buffer
        self.buffer.clear()
示例#2
0
文件: Flows.py 项目: leoche666/FTT
    def Cleanup(self, ctx):
        ctx.Alw('Flows.Cleanup')
        for key, val in self.flows[3]:
            ctx.Alw('key:%s val:%s in Flows.Cleanup' % (key, val))
            find_element_by_suffix(self.driver, key, val, self.buffer)
            switch_to_window(self.driver)

        #clean the buffer
        self.buffer.clear()
示例#3
0
文件: Flows.py 项目: leoche666/FTT
    def Setup(self,ctx):
        self.buffer = {}
        ctx.Alw('Flows.Setup')
        self.driver = ctx.Buffer
        self.flows = [flow for flow in ctx.Records.findSniprefs()]

        if len(self.flows)!=4:
            raise VarAbort("Flows must have 4 setp")

        for key,val in self.flows[0]:
            ctx.Alw('key:%s val:%s in Flows.Setup'%(key,val))
            find_element_by_suffix(self.driver,key,val,self.buffer)
            switch_to_window(self.driver)
示例#4
0
文件: Flows.py 项目: leoche666/FTT
    def Setup(self, ctx):
        self.buffer = {}
        ctx.Alw('Flows.Setup')
        self.driver = ctx.Buffer
        self.flows = [flow for flow in ctx.Records.findSniprefs()]

        if len(self.flows) != 4:
            raise VarAbort("Flows must have 4 setp")

        for key, val in self.flows[0]:
            ctx.Alw('key:%s val:%s in Flows.Setup' % (key, val))
            find_element_by_suffix(self.driver, key, val, self.buffer)
            switch_to_window(self.driver)
示例#5
0
文件: Flows.py 项目: leoche666/FTT
 def Verify(self,ctx):
     ctx.Alw('Flows.Verify')
     for key,val in self.flows[2]:
         ctx.Alw('key:%s val:%s in Flows.Verify'%(key,val))
         find_element_by_suffix(self.driver,key,val,self.buffer)
         switch_to_window(self.driver)
示例#6
0
文件: Flows.py 项目: leoche666/FTT
 def Verify(self, ctx):
     ctx.Alw('Flows.Verify')
     for key, val in self.flows[2]:
         ctx.Alw('key:%s val:%s in Flows.Verify' % (key, val))
         find_element_by_suffix(self.driver, key, val, self.buffer)
         switch_to_window(self.driver)