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()
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()
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)
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)
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)
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)