crack.py 文件源码

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

项目:CrackWeiboSlide 作者: Python3WebSpider 项目源码 文件源码
def get_position(self):
        """
        ???????
        :return: ???????
        """
        try:
            img = self.wait.until(EC.presence_of_element_located((By.CLASS_NAME, 'patt-shadow')))
        except TimeoutException:
            print('??????')
            self.open()
        time.sleep(2)
        location = img.location
        size = img.size
        top, bottom, left, right = location['y'], location['y'] + size['height'], location['x'], location['x'] + size[
            'width']
        return (top, bottom, left, right)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号