Exemplo n.º 1
0
 def get_screenshot_as_file(self, filename):
     self.logger.info("get screenshot save to %s"%str(filename))
     return Element.get_screenshot_as_file(self, filename)
Exemplo n.º 2
0
 def getClassName(self):
     self.logger.info("get class name")
     return Element.getClassName(self)
Exemplo n.º 3
0
 def isChecked(self):
     self.logger.info("is checked")
     return Element.isChecked(self)
Exemplo n.º 4
0
 def setText(self, value,replace=True):
     self.logger.info("set text as %s"%value)
     return Element.setText(self, value,replace) 
Exemplo n.º 5
0
 def getText(self):
     self.logger.info("get text")
     return Element.getText(self)
Exemplo n.º 6
0
 def verifyText(self, text):
     self.logger.info("verify text: %s"%text)
     return Element.verifyText(self, text)
Exemplo n.º 7
0
 def click(self):
     self.logger.info("click")
     Element.click(self) 
     return self
Exemplo n.º 8
0
 def scrollTop(self, duration=None):
     self.logger.info("scroll to top")
     return Element.scrollTop(self, duration=duration)
Exemplo n.º 9
0
 def swipeDown(self, duration=None):
     self.logger.info("swipe down")
     return Element.swipeDown(self, duration=duration)
Exemplo n.º 10
0
 def scrollTo(self, text, direction='vertical'):
     self.logger.info("scroll to %s"%text)
     return Element.scrollTo(self, text, direction=direction)
Exemplo n.º 11
0
 def scrollBottom(self, duration=None):
     self.logger.info("scroll to bottom")
     return Element.scrollBottom(self, duration=duration)
Exemplo n.º 12
0
 def scroll(self, destination_el):
     self.logger.info("scroll ele")
     return Element.scroll(self, destination_el)
Exemplo n.º 13
0
 def dragToPos(self, x, y, duration=None):
     self.logger.info("drag to (%d, %d)"%(x,y))   
     return Element.dragToPos(self, x, y, duration=duration)
Exemplo n.º 14
0
 def dragToEle(self, element, duration=None):
     self.logger.info("drag to ele")
     return Element.dragToEle(self, element, duration=duration)
Exemplo n.º 15
0
 def verifyContent_Desc(self, content_desc):
     self.logger.info("verify by content_desc: %s"%content_desc)
     return Element.verifyContent_Desc(self, content_desc)
Exemplo n.º 16
0
 def swipeLeft(self, duration=None):
     self.logger.info("swipe left")
     return Element.swipeLeft(self, duration=duration)
Exemplo n.º 17
0
 def verifyNotContent_DescRe(self, content_desc):
     self.logger.info("verify not content_descre: %s"%content_desc)
     return Element.verifyNotContent_DescRe(self, content_desc)
Exemplo n.º 18
0
 def swipeRight(self, duration=None):
     self.logger.info("swipe right")
     return Element.swipeRight(self, duration=duration)
Exemplo n.º 19
0
 def verifyNotTextRe(self, text):
     self.logger.info("verify not textre: %s"%text)
     return Element.verifyNotTextRe(self, text)
Exemplo n.º 20
0
 def swipeUp(self, duration=None):
     self.logger.info("swipe up")
     return Element.swipeUp(self, duration=duration)
Exemplo n.º 21
0
 def longClick(self,duration=None):
     self.logger.info("long click")
     Element.longClick(self, duration) 
     return self  
Exemplo n.º 22
0
 def pinch(self, percent=200, steps=50):
     self.logger.info("pinch percent %d"%percent)
     return Element.pinch(self, percent=percent, steps=steps)
Exemplo n.º 23
0
 def getParent(self):
     self.logger.info("get parent")
     return Element.getParent(self)
Exemplo n.º 24
0
 def zoom(self, percent=200, steps=50):
     self.logger.info("zoom percent %s"%percent)
     return Element.zoom(self, percent=percent, steps=steps)
Exemplo n.º 25
0
 def getResourceId(self):
     self.logger.info("get resourceID")
     return Element.getResourceId(self)
Exemplo n.º 26
0
 def verifyImage(self, Image, similarity=100):
     self.logger.info("verify by image similarity: %d"%similarity)
     return Element.verifyImage(self, Image, similarity=similarity)
Exemplo n.º 27
0
 def getContent_Desc(self):
     self.logger.info("get content_desc")
     return Element.getContent_Desc(self)
Exemplo n.º 28
0
 def find_elements(self, by=By.ID, value=None, thinkTime=None, timeOut=None, ignoreExp=False):
     self.logger.info("find child elements by %s"%value)
     return Element.find_elements(self, by, value, thinkTime, timeOut, ignoreExp=ignoreExp)
Exemplo n.º 29
0
 def isCheckable(self):
     self.logger.info("is checkable")
     return Element.isCheckable(self)
Exemplo n.º 30
0
 def clear(self):
     self.logger.info("clear")
     Element.clear(self)