mangoautomation 1.1.24__py3-none-any.whl → 1.1.26__py3-none-any.whl

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 mangoautomation might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mangoautomation
3
- Version: 1.1.24
3
+ Version: 1.1.26
4
4
  Summary: 测试工具
5
5
  Home-page: https://gitee.com/mao-peng/testkit
6
6
  Author: 毛鹏
@@ -6,13 +6,13 @@ mangoautomation/exceptions/__init__.py,sha256=2j3ravPuzljR2Mbq8J2JLdXUzII7hzrjdV
6
6
  mangoautomation/exceptions/_exceptions.py,sha256=BiyST1QPivpfIOuKn1gKhpXOyBv6gfip_KvlQuu8ctw,385
7
7
  mangoautomation/exceptions/error_msg.py,sha256=0unQ_tgrRJtVMAOXTzhQJkwO4_7lhMKAMMCfwmzQD58,5517
8
8
  mangoautomation/mangos/__init__.py,sha256=gEu8lVHGXm8PDTBZ1XXWNUOAbCtHb37uKQLBRYQR4rs,644
9
- mangoautomation/mangos/mangos.cp310-win_amd64.pyd,sha256=eONlyQI0MFBVi1Y5hmujXP8r3TXqDBMTuNvyXHEQPI8,1764352
10
- mangoautomation/mangos/mangos.cp312-win_amd64.pyd,sha256=uetCI6KIShYKfogcqkaeFi9sEQYIXUBmuBLyMBKjkLM,1893376
11
- mangoautomation/mangos/mangos.cpython-310-darwin.so,sha256=3BNB431YQZj0N0o4BUQvTcCd7Saq4E4Mgbw94Ikv0eE,3561840
12
- mangoautomation/mangos/mangos.cpython-310-x86_64-linux-gnu.so,sha256=ZHPxfgMFF16J_NA3ELb2lG4lkq6foJnVAIn2UxC-fSA,10588640
13
- mangoautomation/mangos/mangos.cpython-312-darwin.so,sha256=hAnmTWgHjDlVpPNQdctf2JU95gJuHpuAT4i9cP-LX3s,3479632
14
- mangoautomation/mangos/mangos.cpython-312-x86_64-linux-gnu.so,sha256=k84Ey3BY9wz7UzSS5OuZzx32TlwncoEvSfmHWInZMhA,10804456
15
- mangoautomation/mangos/__pycache__/__init__.cpython-310.pyc,sha256=mlbMT0_xx35rLFukbmGWBgelTH327kE0V5k_bJiOPH8,604
9
+ mangoautomation/mangos/mangos.cp310-win_amd64.pyd,sha256=A44JiQyk53BCesVYE2boD3aA5eGrPzx0ZBUMWEfNzMU,1738240
10
+ mangoautomation/mangos/mangos.cp312-win_amd64.pyd,sha256=behsyC4_b4a_BuaXjxlCFCP3cPSD2KLwq1XqwZIBXK0,1873408
11
+ mangoautomation/mangos/mangos.cpython-310-darwin.so,sha256=1WXwhwqDLtLtQTgGA8xWxK8qh3cj9zqVvGXqX_biY6Y,3540096
12
+ mangoautomation/mangos/mangos.cpython-310-x86_64-linux-gnu.so,sha256=Fnm-WT218Tb-TDusjuq7fASlF2ZcM2gt2_wwVdX_BCs,10541224
13
+ mangoautomation/mangos/mangos.cpython-312-darwin.so,sha256=zPMPmZUWX8p54SIRbvWQdW8picWAqDc4rpuDRcm4P2s,3454880
14
+ mangoautomation/mangos/mangos.cpython-312-x86_64-linux-gnu.so,sha256=aKgHnbddlm84Tdu1cRQadUrjXhLWbd3q3NX03M-bUGE,10780760
15
+ mangoautomation/mangos/__pycache__/__init__.cpython-310.pyc,sha256=0_G_VKWcXLj81_Z3CLCqbH7Iu55kA8T6CmnaJdnse0k,608
16
16
  mangoautomation/models/__init__.py,sha256=wHACwBCrd9HCvmrAkTFUV3qmK9GnOa-FJFiL0kOQjME,309
17
17
  mangoautomation/models/_ui_model.py,sha256=nfxh_4TpOLzKKWC7c-IgMLVZY5wkTPfyS_Oh-SvsYsk,1825
18
18
  mangoautomation/tools/__init__.py,sha256=c3IXhoodknOukOyM6db2tXIdDRodgmUZorEAkkruQf0,282
@@ -35,14 +35,14 @@ mangoautomation/uidrives/pc/new_windows.py,sha256=lETHZa7cW8Z0iUShzgVTRxqivkYaOo
35
35
  mangoautomation/uidrives/web/__init__.py,sha256=TJyYt6EUoRfWYrV193RHpopKfixipVUp4TrhB5DoEKA,434
36
36
  mangoautomation/uidrives/web/_async_web.py,sha256=Uwta7cIYo-0Qe5RbaIvRSQ-IvOxCNtbH_RcIm1JNxEQ,8204
37
37
  mangoautomation/uidrives/web/_sync_web.py,sha256=NCF97mYWQBLsOkcEXHKbAGLYGt4rK7NSjks6PubLe_k,8049
38
- mangoautomation-1.1.24.dist-info/licenses/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
38
+ mangoautomation-1.1.26.dist-info/licenses/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
39
39
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  tests/demo1.py,sha256=Wcz63WWXe48arwmCh23ejT66ZbJFV2I7J05AOEZ5aq8,3056
41
41
  tests/get_ope.py,sha256=2m7gkOiVSIAzTwnoQwp2JaphM5rPClqvwf24x7R3Az4,476
42
42
  tests/test_ai_element.py,sha256=k__iifxebvPPfGdRS-yzkEH80fBIlKJcZ-m3N6Xkz6Q,1437
43
43
  tests/test_ui_and.py,sha256=A_0pqG6s5Ts02He7P3NwuDSK3g9Q3VP1Sb_P8wq6g0Q,125
44
- tests/test_ui_web.py,sha256=RBACNYc7XdvENHzg4YElsSQlEmPVa_AyOKWTYTPXM14,2578
45
- mangoautomation-1.1.24.dist-info/METADATA,sha256=9FYm61XGtonV_-B7Ea-bF_DOFF8wBtw-Qe9kLCCprd8,941
46
- mangoautomation-1.1.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
47
- mangoautomation-1.1.24.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
48
- mangoautomation-1.1.24.dist-info/RECORD,,
44
+ tests/test_ui_web.py,sha256=s1L5EGhUX3aqOzGu9jCVQtmvxgCDgs5RlDJR2ty50Io,2700
45
+ mangoautomation-1.1.26.dist-info/METADATA,sha256=mhnW03I1MCxbNHZdHKsz-eC6mqXJeliUleuDjYX5mrs,941
46
+ mangoautomation-1.1.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
47
+ mangoautomation-1.1.26.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
48
+ mangoautomation-1.1.26.dist-info/RECORD,,
tests/test_ui_web.py CHANGED
@@ -48,7 +48,7 @@ element_model = ElementModel(**{
48
48
  class TestUi(unittest.IsolatedAsyncioTestCase):
49
49
  async def test_a(self):
50
50
  driver_object = DriverObject(log, True)
51
- driver_object.set_web(0, r"C:\Program Files\Google\Chrome\Application\chrome.exe")
51
+ driver_object.set_web(web_type=0, web_path=r"C:\Program Files\Google\Chrome\Application\chrome.exe")
52
52
  base_data = BaseData(test_data, log).set_agent(True, 'sk-rruuhjnqawsvduyxlcqckbtgwkprctgkvwcelenooixbhthy')
53
53
  base_data.screenshot_path = r'D:\code\mango_automation\logs'
54
54
  base_data.log = log
@@ -56,6 +56,7 @@ class TestUi(unittest.IsolatedAsyncioTestCase):
56
56
 
57
57
  base_data.context, base_data.page = await driver_object.web.new_web_page()
58
58
  element = AsyncElement(base_data, 0)
59
+ await element.w_wait_for_timeout('1')
59
60
  await element.open_url()
60
61
  await asyncio.sleep(5)
61
62
  await element.element_main(element_model, )
@@ -67,11 +68,12 @@ class TestUi2(unittest.TestCase):
67
68
 
68
69
  def test_s(self):
69
70
  driver_object = DriverObject(log)
70
- driver_object.set_web(0, r"C:\Program Files\Google\Chrome\Application\chrome.exe")
71
+ driver_object.set_web(web_type=0, web_path=r"C:\Program Files\Google\Chrome\Application\chrome.exe")
71
72
  base_data = BaseData(test_data, log)
72
73
  base_data.url = 'https://www.baidu.com/'
73
74
  base_data.context, base_data.page = driver_object.web.new_web_page()
74
75
  element = SyncElement(base_data, 0)
76
+ element.w_wait_for_timeout(1)
75
77
  element.open_url()
76
78
  element.element_main(element_model, )
77
79
  assert element.element_result_model.elements[0].element_text == '设置'