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)
def getClassName(self): self.logger.info("get class name") return Element.getClassName(self)
def isChecked(self): self.logger.info("is checked") return Element.isChecked(self)
def setText(self, value,replace=True): self.logger.info("set text as %s"%value) return Element.setText(self, value,replace)
def getText(self): self.logger.info("get text") return Element.getText(self)
def verifyText(self, text): self.logger.info("verify text: %s"%text) return Element.verifyText(self, text)
def click(self): self.logger.info("click") Element.click(self) return self
def scrollTop(self, duration=None): self.logger.info("scroll to top") return Element.scrollTop(self, duration=duration)
def swipeDown(self, duration=None): self.logger.info("swipe down") return Element.swipeDown(self, duration=duration)
def scrollTo(self, text, direction='vertical'): self.logger.info("scroll to %s"%text) return Element.scrollTo(self, text, direction=direction)
def scrollBottom(self, duration=None): self.logger.info("scroll to bottom") return Element.scrollBottom(self, duration=duration)
def scroll(self, destination_el): self.logger.info("scroll ele") return Element.scroll(self, destination_el)
def dragToPos(self, x, y, duration=None): self.logger.info("drag to (%d, %d)"%(x,y)) return Element.dragToPos(self, x, y, duration=duration)
def dragToEle(self, element, duration=None): self.logger.info("drag to ele") return Element.dragToEle(self, element, duration=duration)
def verifyContent_Desc(self, content_desc): self.logger.info("verify by content_desc: %s"%content_desc) return Element.verifyContent_Desc(self, content_desc)
def swipeLeft(self, duration=None): self.logger.info("swipe left") return Element.swipeLeft(self, duration=duration)
def verifyNotContent_DescRe(self, content_desc): self.logger.info("verify not content_descre: %s"%content_desc) return Element.verifyNotContent_DescRe(self, content_desc)
def swipeRight(self, duration=None): self.logger.info("swipe right") return Element.swipeRight(self, duration=duration)
def verifyNotTextRe(self, text): self.logger.info("verify not textre: %s"%text) return Element.verifyNotTextRe(self, text)
def swipeUp(self, duration=None): self.logger.info("swipe up") return Element.swipeUp(self, duration=duration)
def longClick(self,duration=None): self.logger.info("long click") Element.longClick(self, duration) return self
def pinch(self, percent=200, steps=50): self.logger.info("pinch percent %d"%percent) return Element.pinch(self, percent=percent, steps=steps)
def getParent(self): self.logger.info("get parent") return Element.getParent(self)
def zoom(self, percent=200, steps=50): self.logger.info("zoom percent %s"%percent) return Element.zoom(self, percent=percent, steps=steps)
def getResourceId(self): self.logger.info("get resourceID") return Element.getResourceId(self)
def verifyImage(self, Image, similarity=100): self.logger.info("verify by image similarity: %d"%similarity) return Element.verifyImage(self, Image, similarity=similarity)
def getContent_Desc(self): self.logger.info("get content_desc") return Element.getContent_Desc(self)
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)
def isCheckable(self): self.logger.info("is checkable") return Element.isCheckable(self)
def clear(self): self.logger.info("clear") Element.clear(self)