コード例 #1
0
 def AbsenceOfElement(self, wmd):
     caller = DynamicCaller(
         self.container._element_finder.check_for_absence,
         self.container.dispatcher.find_element,
         wmd,
         context="ELEMENT")
     return CommandCondition(caller)
コード例 #2
0
 def PresenceOfMultiElement(self, gui_element):
     caller = DynamicCaller(
         self.container.element_finder.find, 
         self.container.dispatcher.find_multielement,
         gui_element.lmd,
         context = "MULTI_ELEMENT"
     )
     return CommandCondition(caller)  
コード例 #3
0
 def PresenceOfElement(self, gui_element):
     caller = DynamicCaller(
         self.container._element_finder.find,  
         self.__container.dispatcher.find_element,
         gui_element._wmd,
         context = "ELEMENT"
     )
     return CommandCondition(caller)   
コード例 #4
0
 def SetText(self, text):
     caller = DynamicCaller(
         self.__element._only_set_text,
         text,
     )
     return CommandCondition(caller)
コード例 #5
0
 def Click(self):
     caller = DynamicCaller(self.__element._only_click)
     return CommandCondition(caller)
コード例 #6
0
 def Hover(self):
     caller = DynamicCaller(self.__element._only_hover)
     return CommandCondition(caller)
コード例 #7
0
 def IsClickable(self):
     caller = DynamicCaller(self.element.is_clickable)
     return BooleanCondition(caller, True)
コード例 #8
0
 def IsVisible(self):
     caller = DynamicCaller(self.element.is_visible)
     return BooleanCondition(caller, True)
コード例 #9
0
 def IsSelected(self):
     caller = DynamicCaller(self.element.is_selected)
     return BooleanCondition(caller, True)
コード例 #10
0
ファイル: conditions.py プロジェクト: bhargavkumar-65/arjuna
 def ReceiveEmail(self, *vargs, **kwargs):
     caller = DynamicCaller(self.__mailbox._search, *vargs, **kwargs)
     return CommandCondition(caller)
コード例 #11
0
ファイル: conditions.py プロジェクト: bhargavkumar-65/arjuna
 def Select(self):
     caller = DynamicCaller(self.__mailbox._select)
     return CommandCondition(caller)