Releases: ctripcorp/flybirds
Releases · ctripcorp/flybirds
v0.5.8
v0.5.7
Features
- [Android] 支持新版airtest ffmpeg录屏模式, 如需使用,在flybirds_config.json的frame_info中添加配置:"airtestRecordMode": "ffmpeg",支持ffmpeg和yosemite两种模式
- [web] 支持切换浏览器tab:切换目标页面标题[{title}]链接[{url}]
- [web] 支持执行js:执行js[{param}]
- [web] 支持xml request对比:验证服务请求[{service}]与xml路径[{target_data_xml_path}]一致
- [web] 支持dom元素文本对比:对比目标元素的链接[{target_url}]与文本内容[{target_ele}]和比较元素的链接[{compared_url}]与文本匹配内容[{compared_ele}]
- [web] 支持图像对比:对比目标图片[{target_picture_path}]和比较图片[{compared_picture_path}]
- [web] 支持hover操作:悬浮[{selector}]
- 项目template中增加了对应的例子
Requirement
- airtest>=1.2.10
v0.5.6
Feature [For Web]
DSL
- set cookie name[] value[] url[]
- 设置cookie 名称[] 值[] 网址[]
- get cookie
- 获取cookie
- get local storage
- 获取local storage
- get session storage
- 获取session storage
Method
- add_cookie(context, name, value, url)
- get_cookie(context)
- get_local_storage(context)
- get_session_storage(context)
v0.5.5
v0.5.4
v0.5.2
v0.5.1
Feature
- Support for regional data segmentation and detect Details
- "click ocr regional[{selector}] text[{param2}]": ["点击区域[{selector}]中扫描文案[{param2}]"]
- "ocr regional[{selector}] exist text[{param2}]": ["扫描区块[{selector}]中存在[{param2}]的文案"]
- "ocr regional[{selector}] contain text[{param2}]": ["扫描区块[{selector}]中包含[{param2}]的文案"]
Bug fix
- multiple Tags issues Details
v0.5.0
v0.4.9
v0.4.8
Features
#122 Support user-defined browser cookies
- cookies <List[Dict]>#
- name <str>
- value <str>
- url <str> either url or domain / path are required. Optional.
- domain <str> either url or domain / path are required Optional.
- path <str> either url or domain / path are required Optional.
- expires <float> Unix time in seconds. Optional.
- httpOnly <bool> Optional.
- secure <bool> Optional.
- sameSite <"Strict"|"Lax"|"None"> Optional.
'''
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)