Kea2-python 0.3.3__tar.gz → 0.3.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of Kea2-python might be problematic. Click here for more details.

Files changed (45) hide show
  1. {kea2_python-0.3.3 → kea2_python-0.3.5/Kea2_python.egg-info}/PKG-INFO +18 -7
  2. {kea2_python-0.3.3 → kea2_python-0.3.5}/Kea2_python.egg-info/requires.txt +1 -1
  3. kea2_python-0.3.3/README.md → kea2_python-0.3.5/PKG-INFO +31 -5
  4. kea2_python-0.3.3/Kea2_python.egg-info/PKG-INFO → kea2_python-0.3.5/README.md +16 -20
  5. kea2_python-0.3.5/kea2/assets/monkeyq.jar +0 -0
  6. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/quicktest.py +1 -1
  7. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/fastbotManager.py +1 -2
  8. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/templates/bug_report_template.html +2 -2
  9. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/u2Driver.py +11 -3
  10. {kea2_python-0.3.3 → kea2_python-0.3.5}/pyproject.toml +2 -2
  11. kea2_python-0.3.3/kea2/assets/monkeyq.jar +0 -0
  12. {kea2_python-0.3.3 → kea2_python-0.3.5}/Kea2_python.egg-info/SOURCES.txt +0 -0
  13. {kea2_python-0.3.3 → kea2_python-0.3.5}/Kea2_python.egg-info/dependency_links.txt +0 -0
  14. {kea2_python-0.3.3 → kea2_python-0.3.5}/Kea2_python.egg-info/entry_points.txt +0 -0
  15. {kea2_python-0.3.3 → kea2_python-0.3.5}/Kea2_python.egg-info/top_level.txt +0 -0
  16. {kea2_python-0.3.3 → kea2_python-0.3.5}/LICENSE +0 -0
  17. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/__init__.py +0 -0
  18. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/absDriver.py +0 -0
  19. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/adbUtils.py +0 -0
  20. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot-thirdpart.jar +0 -0
  21. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_configs/abl.strings +0 -0
  22. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_configs/awl.strings +0 -0
  23. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_configs/max.config +0 -0
  24. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_configs/max.fuzzing.strings +0 -0
  25. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_configs/max.schema.strings +0 -0
  26. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_configs/max.strings +0 -0
  27. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_configs/max.tree.pruning +0 -0
  28. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_configs/widget.block.py +0 -0
  29. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_libs/arm64-v8a/libfastbot_native.so +0 -0
  30. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_libs/armeabi-v7a/libfastbot_native.so +0 -0
  31. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_libs/x86/libfastbot_native.so +0 -0
  32. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/fastbot_libs/x86_64/libfastbot_native.so +0 -0
  33. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/framework.jar +0 -0
  34. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/assets/kea2-thirdpart.jar +0 -0
  35. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/bug_report_generator.py +0 -0
  36. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/cli.py +0 -0
  37. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/keaUtils.py +0 -0
  38. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/kea_launcher.py +0 -0
  39. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/logWatcher.py +0 -0
  40. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/report_merger.py +0 -0
  41. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/resultSyncer.py +0 -0
  42. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/templates/merged_bug_report_template.html +0 -0
  43. {kea2_python-0.3.3 → kea2_python-0.3.5}/kea2/utils.py +0 -0
  44. {kea2_python-0.3.3 → kea2_python-0.3.5}/setup.cfg +0 -0
  45. {kea2_python-0.3.3 → kea2_python-0.3.5}/tests/test_u2Selector.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Kea2-python
3
- Version: 0.3.3
3
+ Version: 0.3.5
4
4
  Summary: A python library for supporting and customizing automated UI testing for mobile apps
5
5
  Author-email: Xixian Liang <xixian@stu.ecnu.edu.cn>
6
6
  Requires-Python: >=3.8
@@ -10,7 +10,7 @@ Requires-Dist: rtree>=1.3.0
10
10
  Requires-Dist: jinja2>=3.0.0
11
11
  Requires-Dist: uiautomator2>=3.3.3
12
12
  Requires-Dist: adbutils>=2.9.3
13
- Requires-Dist: setuptools>=75.3.2
13
+ Requires-Dist: packaging>=25.0
14
14
  Dynamic: license-file
15
15
 
16
16
 
@@ -39,6 +39,7 @@ The group has reached its capacity. Please contact Xixian Liang at [xixian@stu.e
39
39
  <div align="center">
40
40
  <a href="https://en.wikipedia.org/wiki/Kea">Kea2's logo: A large parrot skilled in finding "bugs"</a>
41
41
  </div>
42
+ </br>
42
43
 
43
44
  Kea2 is an easy-to-use tool for fuzzing mobile apps. Its key *novelty* is able to fuse automated UI testing with scripts (usually written by human), thus empowering automated UI testing with human intelligence for effectively finding *crashing bugs* as well as *non-crashing functional (logic) bugs*.
44
45
 
@@ -110,9 +111,10 @@ Find Kea2's options by running
110
111
  kea2 -h
111
112
  ```
112
113
 
113
- > Upgrade Kea2 by `pip`:
114
- >
115
- > `python3 -m pip install -U kea2-python`
114
+ Upgrade Kea2 to its latest version if you already installed Kea2 before:
115
+ ```bash
116
+ python3 -m pip install -U kea2-python
117
+ ```
116
118
 
117
119
  ## Quick Test
118
120
 
@@ -239,7 +241,15 @@ For the preceding always-holding property, we can write the following script to
239
241
  ```
240
242
  > We use [hypothesis](https://github.com/HypothesisWorks/hypothesis) to generate random texts.
241
243
 
242
- You can run this example by using the similar command line in Feature 2.
244
+ You can run this example by using the similar command line in Feature 2.
245
+
246
+ ## Test Reports(测试报告)
247
+
248
+ Kea2 automatically generates comprehensive HTML test reports after each testing session.
249
+
250
+ The reports support both single test runs and merged analysis of multiple test sessions, making it easy to track testing progress and identify issues.
251
+
252
+ - [View detailed test report documentation](docs/test_report_introduction.md)
243
253
 
244
254
  ## Documentations(更多文档)
245
255
 
@@ -250,6 +260,7 @@ You can find the [user manual](docs/manual_en.md), which includes:
250
260
  - How to find and understand Kea2's testing results
251
261
  - How to [whitelist or blacklist](docs/blacklisting.md) specific activities, UI widgets and UI regions during fuzzing
252
262
  - [Q&A for Kea2 and PBT (对Kea2和PBT技术的常见问题和回答)](https://sy8pzmhmun.feishu.cn/wiki/SLGwwqgzIiEuC3kwmV8cSZY0nTg?from=from_copylink)
263
+ - [Kea2 101 (Kea2 从0到1 的入门教程与最佳实践,建议新手阅读)](https://sy8pzmhmun.feishu.cn/wiki/EwaWwPCitiUJoBkIgALcHtglnDK?from=from_copylink)
253
264
 
254
265
  Some blogs on Kea/Kea2 (in Chinese):
255
266
  - [别再苦哈哈写测试脚本了,生成它们吧!(一)](https://mp.weixin.qq.com/s/R2kLCkXpDjpa8wCX4Eidtg)
@@ -329,7 +340,7 @@ Kea2 has been actively developed and maintained by the people in [ecnusse](https
329
340
  [@Drifterpc]: https://github.com/Drifterpc
330
341
  [@tingsu]: https://github.com/tingsu
331
342
 
332
- [Zhendong Su](https://people.inf.ethz.ch/suz/), [Yiheng Xiong](https://xyiheng.github.io/), [Xiangchen Shen](https://xiangchenshen.github.io/), [Mengqian Xu](https://mengqianx.github.io/), [Haiying Sun](https://faculty.ecnu.edu.cn/_s43/shy/main.psp), [Jingling Sun](https://jinglingsun.github.io/), [Jue Wang](https://cv.juewang.info/) have also been actively participated in this project and contributed a lot!
343
+ [Zhendong Su](https://people.inf.ethz.ch/suz/), [Yiheng Xiong](https://xyiheng.github.io/), [Xiangchen Shen](https://xiangchenshen.github.io/), [Mengqian Xu](https://mengqianx.github.io/), [Haiying Sun](https://faculty.ecnu.edu.cn/_s43/shy/main.psp), [Jingling Sun](https://jinglingsun.github.io/), [Jue Wang](https://cv.juewang.info/), [Geguang Pu]() have also been actively participated in this project and contributed a lot!
333
344
 
334
345
  Kea2 has also received many valuable insights, advices, feedbacks and lessons shared by several industrial people from Bytedance ([Zhao Zhang](https://github.com/zhangzhao4444), Yuhui Su from the Fastbot team), OPay (Tiesong Liu), WeChat (Haochuan Lu, Yuetang Deng), Huawei, Xiaomi and etc. Kudos!
335
346
 
@@ -2,4 +2,4 @@ rtree>=1.3.0
2
2
  jinja2>=3.0.0
3
3
  uiautomator2>=3.3.3
4
4
  adbutils>=2.9.3
5
- setuptools>=75.3.2
5
+ packaging>=25.0
@@ -1,3 +1,18 @@
1
+ Metadata-Version: 2.4
2
+ Name: Kea2-python
3
+ Version: 0.3.5
4
+ Summary: A python library for supporting and customizing automated UI testing for mobile apps
5
+ Author-email: Xixian Liang <xixian@stu.ecnu.edu.cn>
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: rtree>=1.3.0
10
+ Requires-Dist: jinja2>=3.0.0
11
+ Requires-Dist: uiautomator2>=3.3.3
12
+ Requires-Dist: adbutils>=2.9.3
13
+ Requires-Dist: packaging>=25.0
14
+ Dynamic: license-file
15
+
1
16
 
2
17
 
3
18
  [![PyPI](https://img.shields.io/pypi/v/kea2-python.svg)](https://pypi.python.org/pypi/kea2-python)
@@ -24,6 +39,7 @@ The group has reached its capacity. Please contact Xixian Liang at [xixian@stu.e
24
39
  <div align="center">
25
40
  <a href="https://en.wikipedia.org/wiki/Kea">Kea2's logo: A large parrot skilled in finding "bugs"</a>
26
41
  </div>
42
+ </br>
27
43
 
28
44
  Kea2 is an easy-to-use tool for fuzzing mobile apps. Its key *novelty* is able to fuse automated UI testing with scripts (usually written by human), thus empowering automated UI testing with human intelligence for effectively finding *crashing bugs* as well as *non-crashing functional (logic) bugs*.
29
45
 
@@ -95,9 +111,10 @@ Find Kea2's options by running
95
111
  kea2 -h
96
112
  ```
97
113
 
98
- > Upgrade Kea2 by `pip`:
99
- >
100
- > `python3 -m pip install -U kea2-python`
114
+ Upgrade Kea2 to its latest version if you already installed Kea2 before:
115
+ ```bash
116
+ python3 -m pip install -U kea2-python
117
+ ```
101
118
 
102
119
  ## Quick Test
103
120
 
@@ -224,7 +241,15 @@ For the preceding always-holding property, we can write the following script to
224
241
  ```
225
242
  > We use [hypothesis](https://github.com/HypothesisWorks/hypothesis) to generate random texts.
226
243
 
227
- You can run this example by using the similar command line in Feature 2.
244
+ You can run this example by using the similar command line in Feature 2.
245
+
246
+ ## Test Reports(测试报告)
247
+
248
+ Kea2 automatically generates comprehensive HTML test reports after each testing session.
249
+
250
+ The reports support both single test runs and merged analysis of multiple test sessions, making it easy to track testing progress and identify issues.
251
+
252
+ - [View detailed test report documentation](docs/test_report_introduction.md)
228
253
 
229
254
  ## Documentations(更多文档)
230
255
 
@@ -235,6 +260,7 @@ You can find the [user manual](docs/manual_en.md), which includes:
235
260
  - How to find and understand Kea2's testing results
236
261
  - How to [whitelist or blacklist](docs/blacklisting.md) specific activities, UI widgets and UI regions during fuzzing
237
262
  - [Q&A for Kea2 and PBT (对Kea2和PBT技术的常见问题和回答)](https://sy8pzmhmun.feishu.cn/wiki/SLGwwqgzIiEuC3kwmV8cSZY0nTg?from=from_copylink)
263
+ - [Kea2 101 (Kea2 从0到1 的入门教程与最佳实践,建议新手阅读)](https://sy8pzmhmun.feishu.cn/wiki/EwaWwPCitiUJoBkIgALcHtglnDK?from=from_copylink)
238
264
 
239
265
  Some blogs on Kea/Kea2 (in Chinese):
240
266
  - [别再苦哈哈写测试脚本了,生成它们吧!(一)](https://mp.weixin.qq.com/s/R2kLCkXpDjpa8wCX4Eidtg)
@@ -314,7 +340,7 @@ Kea2 has been actively developed and maintained by the people in [ecnusse](https
314
340
  [@Drifterpc]: https://github.com/Drifterpc
315
341
  [@tingsu]: https://github.com/tingsu
316
342
 
317
- [Zhendong Su](https://people.inf.ethz.ch/suz/), [Yiheng Xiong](https://xyiheng.github.io/), [Xiangchen Shen](https://xiangchenshen.github.io/), [Mengqian Xu](https://mengqianx.github.io/), [Haiying Sun](https://faculty.ecnu.edu.cn/_s43/shy/main.psp), [Jingling Sun](https://jinglingsun.github.io/), [Jue Wang](https://cv.juewang.info/) have also been actively participated in this project and contributed a lot!
343
+ [Zhendong Su](https://people.inf.ethz.ch/suz/), [Yiheng Xiong](https://xyiheng.github.io/), [Xiangchen Shen](https://xiangchenshen.github.io/), [Mengqian Xu](https://mengqianx.github.io/), [Haiying Sun](https://faculty.ecnu.edu.cn/_s43/shy/main.psp), [Jingling Sun](https://jinglingsun.github.io/), [Jue Wang](https://cv.juewang.info/), [Geguang Pu]() have also been actively participated in this project and contributed a lot!
318
344
 
319
345
  Kea2 has also received many valuable insights, advices, feedbacks and lessons shared by several industrial people from Bytedance ([Zhao Zhang](https://github.com/zhangzhao4444), Yuhui Su from the Fastbot team), OPay (Tiesong Liu), WeChat (Haochuan Lu, Yuetang Deng), Huawei, Xiaomi and etc. Kudos!
320
346
 
@@ -1,18 +1,3 @@
1
- Metadata-Version: 2.4
2
- Name: Kea2-python
3
- Version: 0.3.3
4
- Summary: A python library for supporting and customizing automated UI testing for mobile apps
5
- Author-email: Xixian Liang <xixian@stu.ecnu.edu.cn>
6
- Requires-Python: >=3.8
7
- Description-Content-Type: text/markdown
8
- License-File: LICENSE
9
- Requires-Dist: rtree>=1.3.0
10
- Requires-Dist: jinja2>=3.0.0
11
- Requires-Dist: uiautomator2>=3.3.3
12
- Requires-Dist: adbutils>=2.9.3
13
- Requires-Dist: setuptools>=75.3.2
14
- Dynamic: license-file
15
-
16
1
 
17
2
 
18
3
  [![PyPI](https://img.shields.io/pypi/v/kea2-python.svg)](https://pypi.python.org/pypi/kea2-python)
@@ -39,6 +24,7 @@ The group has reached its capacity. Please contact Xixian Liang at [xixian@stu.e
39
24
  <div align="center">
40
25
  <a href="https://en.wikipedia.org/wiki/Kea">Kea2's logo: A large parrot skilled in finding "bugs"</a>
41
26
  </div>
27
+ </br>
42
28
 
43
29
  Kea2 is an easy-to-use tool for fuzzing mobile apps. Its key *novelty* is able to fuse automated UI testing with scripts (usually written by human), thus empowering automated UI testing with human intelligence for effectively finding *crashing bugs* as well as *non-crashing functional (logic) bugs*.
44
30
 
@@ -110,9 +96,10 @@ Find Kea2's options by running
110
96
  kea2 -h
111
97
  ```
112
98
 
113
- > Upgrade Kea2 by `pip`:
114
- >
115
- > `python3 -m pip install -U kea2-python`
99
+ Upgrade Kea2 to its latest version if you already installed Kea2 before:
100
+ ```bash
101
+ python3 -m pip install -U kea2-python
102
+ ```
116
103
 
117
104
  ## Quick Test
118
105
 
@@ -239,7 +226,15 @@ For the preceding always-holding property, we can write the following script to
239
226
  ```
240
227
  > We use [hypothesis](https://github.com/HypothesisWorks/hypothesis) to generate random texts.
241
228
 
242
- You can run this example by using the similar command line in Feature 2.
229
+ You can run this example by using the similar command line in Feature 2.
230
+
231
+ ## Test Reports(测试报告)
232
+
233
+ Kea2 automatically generates comprehensive HTML test reports after each testing session.
234
+
235
+ The reports support both single test runs and merged analysis of multiple test sessions, making it easy to track testing progress and identify issues.
236
+
237
+ - [View detailed test report documentation](docs/test_report_introduction.md)
243
238
 
244
239
  ## Documentations(更多文档)
245
240
 
@@ -250,6 +245,7 @@ You can find the [user manual](docs/manual_en.md), which includes:
250
245
  - How to find and understand Kea2's testing results
251
246
  - How to [whitelist or blacklist](docs/blacklisting.md) specific activities, UI widgets and UI regions during fuzzing
252
247
  - [Q&A for Kea2 and PBT (对Kea2和PBT技术的常见问题和回答)](https://sy8pzmhmun.feishu.cn/wiki/SLGwwqgzIiEuC3kwmV8cSZY0nTg?from=from_copylink)
248
+ - [Kea2 101 (Kea2 从0到1 的入门教程与最佳实践,建议新手阅读)](https://sy8pzmhmun.feishu.cn/wiki/EwaWwPCitiUJoBkIgALcHtglnDK?from=from_copylink)
253
249
 
254
250
  Some blogs on Kea/Kea2 (in Chinese):
255
251
  - [别再苦哈哈写测试脚本了,生成它们吧!(一)](https://mp.weixin.qq.com/s/R2kLCkXpDjpa8wCX4Eidtg)
@@ -329,7 +325,7 @@ Kea2 has been actively developed and maintained by the people in [ecnusse](https
329
325
  [@Drifterpc]: https://github.com/Drifterpc
330
326
  [@tingsu]: https://github.com/tingsu
331
327
 
332
- [Zhendong Su](https://people.inf.ethz.ch/suz/), [Yiheng Xiong](https://xyiheng.github.io/), [Xiangchen Shen](https://xiangchenshen.github.io/), [Mengqian Xu](https://mengqianx.github.io/), [Haiying Sun](https://faculty.ecnu.edu.cn/_s43/shy/main.psp), [Jingling Sun](https://jinglingsun.github.io/), [Jue Wang](https://cv.juewang.info/) have also been actively participated in this project and contributed a lot!
328
+ [Zhendong Su](https://people.inf.ethz.ch/suz/), [Yiheng Xiong](https://xyiheng.github.io/), [Xiangchen Shen](https://xiangchenshen.github.io/), [Mengqian Xu](https://mengqianx.github.io/), [Haiying Sun](https://faculty.ecnu.edu.cn/_s43/shy/main.psp), [Jingling Sun](https://jinglingsun.github.io/), [Jue Wang](https://cv.juewang.info/), [Geguang Pu]() have also been actively participated in this project and contributed a lot!
333
329
 
334
330
  Kea2 has also received many valuable insights, advices, feedbacks and lessons shared by several industrial people from Bytedance ([Zhao Zhang](https://github.com/zhangzhao4444), Yuhui Su from the Fastbot team), OPay (Tiesong Liu), WeChat (Haochuan Lu, Yuetang Deng), Huawei, Xiaomi and etc. Kudos!
335
331
 
@@ -52,7 +52,7 @@ class Omni_Notes_Sample(unittest.TestCase):
52
52
  assert self.d(resourceId="it.feio.android.omninotes.alpha:id/search_src_text").exists()
53
53
 
54
54
 
55
- URL = "https://raw.githubusercontent.com/ecnusse/Kea2/refs/heads/dev_test_hidden_algorithm/omninotes.apk"
55
+ URL = "https://github.com/federicoiosue/Omni-Notes/releases/download/6.2.0_alpha/OmniNotes-alphaRelease-6.2.0.apk"
56
56
  PACKAGE_NAME = "it.feio.android.omninotes.alpha"
57
57
  FILE_NAME = "omninotes.apk"
58
58
 
@@ -2,8 +2,7 @@ from retry import retry
2
2
  from retry.api import retry_call
3
3
  from dataclasses import asdict
4
4
  import requests
5
- from time import sleep
6
- from pkg_resources import parse_version
5
+ from packaging.version import parse as parse_version
7
6
 
8
7
  from uiautomator2.core import HTTPResponse, _http_request
9
8
  from kea2.adbUtils import ADBDevice, ADBStreamShell_V2
@@ -229,14 +229,14 @@
229
229
  }
230
230
 
231
231
  .table-custom tr.collapse pre {
232
- max-height: 300px;
233
- overflow-y: auto;
234
232
  font-size: 0.85rem;
235
233
  line-height: 1.4;
236
234
  background-color: #f8f9fa;
237
235
  border: 1px solid #e9ecef;
238
236
  border-radius: 4px;
239
237
  padding: 0.75rem;
238
+ white-space: pre-wrap;
239
+ word-wrap: break-word;
240
240
  }
241
241
 
242
242
  .table-custom tr.collapse details {
@@ -220,7 +220,7 @@ class StaticXpathUiObject(u2.xpath.XPathSelector):
220
220
  source = self.session.get_page_source()
221
221
  return len(self.selector.all(source)) > 0
222
222
 
223
- def __and__(self, value) -> 'StaticXpathUiObjectr':
223
+ def __and__(self, value) -> 'StaticXpathUiObject':
224
224
  s = u2.xpath.XPathSelector(self.selector)
225
225
  s._next_xpath = u2.xpath.XPathSelector.create(value.selector)
226
226
  s._operator = u2.xpath.Operator.AND
@@ -288,7 +288,7 @@ class StaticXpathUiObject(u2.xpath.XPathSelector):
288
288
  self.selector = new
289
289
  return self
290
290
 
291
- def get(self, timeout=None) -> "XMLElement":
291
+ def get(self, timeout=None) -> "u2.xpath.XMLElement":
292
292
  """
293
293
  Get first matched element
294
294
 
@@ -343,7 +343,15 @@ class _HindenWidgetFilter:
343
343
  self._nodes = []
344
344
 
345
345
  self.idx = rtree.index.Index()
346
- self.set_covered_attr(root)
346
+ try:
347
+ self.set_covered_attr(root)
348
+ except Exception as e:
349
+ import traceback, uuid
350
+ traceback.print_exc()
351
+ logger.error(f"Error in setting covered widgets")
352
+ with open(f"kea2_error_tree_{uuid.uuid4().hex}.xml", "wb") as f:
353
+ xml_bytes = etree.tostring(root, pretty_print=True, encoding="utf-8", xml_declaration=True)
354
+ f.write(xml_bytes)
347
355
 
348
356
  # xml_bytes = etree.tostring(root, pretty_print=True, encoding="utf-8", xml_declaration=True)
349
357
  # with open("filtered_tree.xml", "wb") as f:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "Kea2-python"
3
- version = "0.3.3"
3
+ version = "0.3.5"
4
4
  description = "A python library for supporting and customizing automated UI testing for mobile apps"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.8"
@@ -9,7 +9,7 @@ dependencies = [
9
9
  "jinja2>=3.0.0",
10
10
  "uiautomator2>=3.3.3",
11
11
  "adbutils>=2.9.3",
12
- "setuptools>=75.3.2",
12
+ "packaging>=25.0",
13
13
  ]
14
14
  authors = [
15
15
  { name = "Xixian Liang", email = "xixian@stu.ecnu.edu.cn" }
Binary file
File without changes
File without changes
File without changes
File without changes