RemoteAppDriverTest.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:simphony-remote 作者: simphony 项目源码 文件源码
def wait_until_text_inside_element_located(self, how, what, text):
        """ Wait until a located element contains some text
        Parameters
        ----------
        how: String
            How you want to locate the element. See selenium.webdriver.common.by
        what: String
            What you want to locate.
        text: String
            The text which must be contained by the located element

        Returns:
        --------
        element:
            The element founded

        Example:
        --------
        conclusion_title = wait_until_text_inside_element_located(
            By.TAG_NAME, "h3", "Conclusion")
        """
        return self.wait.until(EC.text_to_be_present_in_element((how, what), text))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号