flybirds
flybirds copied to clipboard
基于自然语言的,跨端跨框架 BDD UI 自动化测试方案,BDD testing, Python style, Present by Trip Flight
 建议两者名称保持一致,便于问题查找
当页面构成中存在类似结构时, self.page.content()中获取不到iframe页面的信息,希望在后面的版本可以支持。谢谢
例如:使用 JavaScript 的 querySelector 或 querySelectorAll 方法结合 :contains()(非标准,但大多数浏览器支持) querySelector('span:contains("信息创建")') 这样配合页面渲染完成出现元素使用时会很方便
def login(self, user_name, password): """ 执行登录操作 :param user_name: 用户名 :param password: 密码 """ # 使用Flybirds的定位器方式来定位元素 self.input_text("#username", user_name) self.input_text("#password", password) self.click("button[onclick='login()']") # 等待登录成功后的页面元素出现 self.wait_element("系统") pass
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd...
**问题描述 / Describe the bug** A clear and concise description of what the bug is. **问题复现步骤 / To Reproduce** 1. Go to '...' 2. Click on '....' 3. Scroll down...