Flybirds

Latest version: v0.6.77

Safety actively analyzes 642295 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 7

0.4.8

Features
122 Support user-defined browser cookies
- cookies <[List](https://docs.python.org/3/library/typing.html#typing.List)[[Dict](https://docs.python.org/3/library/typing.html#typing.Dict)]>[](https://playwright.dev/python/docs/api/class-browsercontext#browser-context-add-cookies-option-cookies)
- name <[str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)>
- value <[str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)>
- url <[str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)> either url or domain / path are required. Optional.
- domain <[str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)> either url or domain / path are required Optional.
- path <[str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)> either url or domain / path are required Optional.
- expires <[float](https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex)> Unix time in seconds. Optional.
- httpOnly <[bool](https://docs.python.org/3/library/stdtypes.html)> Optional.
- secure <[bool](https://docs.python.org/3/library/stdtypes.html)> Optional.
- sameSite <"Strict"|"Lax"|"None"> Optional.

python
'''
Following is add cookie example
1. modify before_all_extend method in pscript/dsl/hook.py of your project
2. define your cookies and add it into global cache
3. flybirds will add cookies into browser
'''
from flybirds.core.global_context import GlobalContext

def before_all_extend(context):
cookies = [{'name': 'taskid1', 'value': 'TYUUI12345ty1', "url": "https://hotel.trip.com"},
{'name': 'taskid2', 'value': 'TYUUI12345ty2', "url": "https://hotel.trip.com"}]
GlobalContext.set_global_cache("cookies", cookies)

0.4.7

Feature
120 **support paddleocr config "det_limit_type" and "det_limit_side_len"**
- For history project, you can add "ocr_det_limit_type" and "ocr_det_limit_side_len" in frame_info section of flybirds_config.json
- For new project, these two configs will be added automatically after cli create

0.4.6

Features
- support mini project create
- typer version upgrade

0.4.5

Feature
支持长时间录频,解决 adb screen record 180秒的限制 111
相关配置项:
- "useAirtestRecord": true // 设置为true时开启长时间录屏
- "scenarioScreenRecordTime": 180 // 单个case最大录屏时间,默认为180,根据需要调整
- "screenRecordTime": 180。// 最大录屏时间,默认为180,根据需要调整

0.4.3

Feature
1. APP 支持异常弹框检测,当元素检测失败时,检测是否存在弹框并尝试关闭它,关闭后继续执行case
2. 兼容OCR文字包含箭头的场景
3. Poco 元素检测逻辑优化

0.4.2

Feature
1. 对失败场景的截图,自动进行白屏检测,在报告中显示结果
![image](https://user-images.githubusercontent.com/30871402/186859279-c00aa535-e9f2-4cb8-afd3-81a36186fed4.png)

Fix
1. OCR扫描结果中部分文字内的空格,未能正常识别,导致验证失败 99
2. 依赖包安装优化 105
3. 优化错误提示 103

**注意:Windows环境下,不再默认安装OCR相关依赖包,如需使用OCR,按照以下步骤操作**
1. 获取requirement文件:[文件地址](https://github.com/ctripcorp/flybirds/blob/main/requirements_ml.txt)
2. 执行命令`pip install -r requirements_ml.txt`
3. 在flybirds_config.json 文件中配置 OCR 语言 `ocrLang` ,[支持的语言](https://flybirds.readthedocs.io/zh_CN/latest/BDD-UI-Testing-Flybirds.html#ocr-opencv)

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.