mangoautomation 1.0.49__py3-none-any.whl → 1.0.51__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.

@@ -54,7 +54,7 @@ ERROR_MSG_0049 = (4049, 'url格式错误,请检查url或者是选择的测试
54
54
  ERROR_MSG_0050 = (4050, 'xpath定位未找到元素')
55
55
  ERROR_MSG_0051 = (4051, '')
56
56
  ERROR_MSG_0052 = (4052, '元素【{}】 进行断言时发生异常,请检查元素是否可以正常使用')
57
- ERROR_MSG_0053 = (4053, '步骤是断言类型,但是你没有输入断言内容,请查看文档中对元素断言的介绍')
57
+ ERROR_MSG_0053 = (4053, '')
58
58
  ERROR_MSG_0054 = (4054, '步骤是操作类型,但是你没有输入操作内容,请查看文档中对元素操作的介绍')
59
59
  ERROR_MSG_0055 = (4055, '您的电脑未安装指定浏览器!')
60
60
  ERROR_MSG_0056 = (4056, '输入的参数类型不正确,请检查操作输入框的类型是否正确')
@@ -144,7 +144,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
144
144
 
145
145
  async def __ass(self):
146
146
  if self.element_model.ope_value is None:
147
- raise MangoAutomationError(*ERROR_MSG_0053)
147
+ raise MangoAutomationError(*ERROR_MSG_0054)
148
148
  await self.__ope_value(True)
149
149
  try:
150
150
  if self.drive_type == DriveTypeEnum.WEB.value:
@@ -163,7 +163,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
163
163
  pass
164
164
  except MangoAutomationError as error:
165
165
  self.element_result_model.ass_msg = error.msg
166
- raise MangoAutomationError(*ERROR_MSG_0054)
166
+ raise error
167
167
  self.element_result_model.ope_value = {i.f: i.v for i in self.element_model.ope_value if i.d}
168
168
 
169
169
  async def __sql(self):
@@ -144,7 +144,7 @@ class SyncElement(SyncWebDevice, AndroidDriver):
144
144
 
145
145
  def __ass(self):
146
146
  if self.element_model.ope_value is None:
147
- raise MangoAutomationError(*ERROR_MSG_0053)
147
+ raise MangoAutomationError(*ERROR_MSG_0054)
148
148
  self.__ope_value(True)
149
149
  try:
150
150
  if self.drive_type == DriveTypeEnum.WEB.value:
@@ -163,7 +163,7 @@ class SyncElement(SyncWebDevice, AndroidDriver):
163
163
  pass
164
164
  except MangoAutomationError as error:
165
165
  self.element_result_model.ass_msg = error.msg
166
- raise MangoAutomationError(*ERROR_MSG_0054)
166
+ raise error
167
167
  self.element_result_model.ope_value = {i.f: i.v for i in self.element_model.ope_value if i.d}
168
168
 
169
169
  def __sql(self):
@@ -101,7 +101,7 @@ class AsyncWebNewBrowser:
101
101
  raise MangoAutomationError(*ERROR_MSG_0009, value=(self.web_path,))
102
102
 
103
103
  async def new_context(self) -> BrowserContext:
104
- args_dict = {}
104
+ args_dict = {'ignore_https_errors': True}
105
105
  if self.web_is_default:
106
106
  args_dict["viewport"] = {"width": 1920, "height": 1080}
107
107
  if self.web_h5:
@@ -101,7 +101,7 @@ class SyncWebNewBrowser:
101
101
  raise MangoAutomationError(*ERROR_MSG_0009, value=(self.web_path,))
102
102
 
103
103
  def new_context(self) -> BrowserContext:
104
- args_dict = {}
104
+ args_dict = {'ignore_https_errors': True}
105
105
  if self.web_is_default:
106
106
  args_dict["viewport"] = {"width": 1920, "height": 1080}
107
107
  if self.web_h5:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mangoautomation
3
- Version: 1.0.49
3
+ Version: 1.0.51
4
4
  Summary: 测试工具
5
5
  Home-page: https://gitee.com/mao-peng/testkit
6
6
  Author: 毛鹏
@@ -3,7 +3,7 @@ mangoautomation/enums/__init__.py,sha256=xPv6158_Tup3U9rbYtUGgWR8W479-7czLvcRk4D
3
3
  mangoautomation/enums/_base_enum.py,sha256=dpaXsdhWY08BhIzi1B1ksh_p18ZTmhWvTYhbd3n_ONQ,1176
4
4
  mangoautomation/enums/_ui_enum.py,sha256=rdkejsyc4ogZbyNfZcp1q0V0bDPo14vg0A6or6ShaXA,4494
5
5
  mangoautomation/exceptions/__init__.py,sha256=dXtRZSuYg3e_lwYUKYvYjtxTKHITdbi2l9XkHk9DpfY,374
6
- mangoautomation/exceptions/_error_msg.py,sha256=GrB9crXQMNlq1Ng8a7RsuKfDHDhXglu_CQ_62lhj_iQ,5437
6
+ mangoautomation/exceptions/_error_msg.py,sha256=wnyHrBPE4ZGcWhvz8bD2K-8rMRRwcUIVVYIHWdhYM2U,5335
7
7
  mangoautomation/exceptions/_exceptions.py,sha256=BiyST1QPivpfIOuKn1gKhpXOyBv6gfip_KvlQuu8ctw,385
8
8
  mangoautomation/models/__init__.py,sha256=59J8VjshTxZK4xX_-_NBqdLZ1OuvuZPSpljY1Jc-4eQ,416
9
9
  mangoautomation/models/_ui_model.py,sha256=wKiBNpGDhSVCAYf798I0bMzdhCGXfSOptMCQrBLTUCM,1416
@@ -11,10 +11,10 @@ mangoautomation/tools/__init__.py,sha256=cc6zpsEdp3JiIx7HfOz-Vob7oTIIFzsuxDLgl20
11
11
  mangoautomation/tools/_mate.py,sha256=9lk_EJnAX_OyXbe5WacyHkkcEr2ScBgasl6eUnlklWA,405
12
12
  mangoautomation/tools/_uiautodev.py,sha256=RMOQMXse744xwUDb1_l7qDv9mUiqZt1Gm5sbB-nlgDk,1388
13
13
  mangoautomation/uidrive/__init__.py,sha256=Tk_gh4Qg2qnewEGxa-7Id4fkQLY3fvQE4X7JB0BEscY,577
14
- mangoautomation/uidrive/_async_element.py,sha256=CqQoYVkMjbFoAzFeWgdytf2fJ27-1ZZG_ZLmqAuRin0,13729
14
+ mangoautomation/uidrive/_async_element.py,sha256=nFzYJpUBvqrbxjtNli7nJBKSYM3zlLByLsyI-eZQSiY,13697
15
15
  mangoautomation/uidrive/_base_data.py,sha256=ur2Ts40MAhOYXb0vGVXZdSwEVCI3Csri9I9f1pw1r4Y,3766
16
16
  mangoautomation/uidrive/_driver_object.py,sha256=Re8j6VLHKfwW2VFdi-1XFRuix8tRBLcHYRBLVF6CApE,1962
17
- mangoautomation/uidrive/_sync_element.py,sha256=IKLhqttcV1d5zFj41IgIs56_bJZMNEPkO7Ah64hcpKg,13547
17
+ mangoautomation/uidrive/_sync_element.py,sha256=VMlvnA79y6KZiowFA3O1h8y8Xps4Nj8PvBzQGtUQbD0,13515
18
18
  mangoautomation/uidrive/android/__init__.py,sha256=SWn7PwRZOf34LCE9KigClDaV8R0n70rqLsG6hCeAok0,5499
19
19
  mangoautomation/uidrive/android/_application.py,sha256=EeEM0MPtOPeYeKx92mtMFWqGpCRmri-D_CzXvPt13RA,2800
20
20
  mangoautomation/uidrive/android/_assertion.py,sha256=Gzic7cH3_Vr6NLiMBPRJr7q1F8YFF2dEopINMR4XQFc,4289
@@ -37,7 +37,7 @@ mangoautomation/uidrive/web/async_web/_browser.py,sha256=39YroURzagpq0HoEn1RZnNf
37
37
  mangoautomation/uidrive/web/async_web/_customization.py,sha256=uw6p9uLHLXglgSkH4qjDl1v0iGlaNjvf8LljRH5cAHU,347
38
38
  mangoautomation/uidrive/web/async_web/_element.py,sha256=btIkX2nlic17sgSbXtNZ8h5wD-rPyIK6TH5fH4WaoPk,9506
39
39
  mangoautomation/uidrive/web/async_web/_input_device.py,sha256=sMAMHb_8QyPx3pKci0gRDQc2O7h1OYMGyA7fCWl81iM,3288
40
- mangoautomation/uidrive/web/async_web/_new_browser.py,sha256=gKjrbDQwDON-Omd2QFKdzMHYLxWd0L_cdM_tXYNz5TI,5597
40
+ mangoautomation/uidrive/web/async_web/_new_browser.py,sha256=WsQ-s2QCjXiePN_u4bLwpds_QpuDd9V2w6hLuLCB-zg,5624
41
41
  mangoautomation/uidrive/web/async_web/_page.py,sha256=TCYf79qQdVBBTTNq2COZFJVcLCgg5Ksu9lMgmQPVInU,2147
42
42
  mangoautomation/uidrive/web/sync_web/__init__.py,sha256=31U15FJftsv6yyDlKT-2zN0CNPyolZPRuPh7mdeKKas,7961
43
43
  mangoautomation/uidrive/web/sync_web/_assertion.py,sha256=hVA7-Z3CfPgkmtnK_3M5UGo6sct88W6AJfQTnrqu9jU,12534
@@ -45,13 +45,13 @@ mangoautomation/uidrive/web/sync_web/_browser.py,sha256=c7xHkIIFPawlzcVkGjwqeKfW
45
45
  mangoautomation/uidrive/web/sync_web/_customization.py,sha256=E_pfI8gKd0O6r4huJIvA6hoW-X9fSDVL4zEUqhHgxwE,355
46
46
  mangoautomation/uidrive/web/sync_web/_element.py,sha256=P5kSFkKyRP8a7qpKJZf_Lhp6Ik1jgHfIVB8Tgpl7kNw,9078
47
47
  mangoautomation/uidrive/web/sync_web/_input_device.py,sha256=8t6tJgMb4zgb4Sv02XP3gUU0ZVbApCs3WaILv8Fe1iY,3169
48
- mangoautomation/uidrive/web/sync_web/_new_browser.py,sha256=-JYteNz2O84BRHDwiaGKnl0estWdmnAnbhJclhg2Id0,5489
48
+ mangoautomation/uidrive/web/sync_web/_new_browser.py,sha256=LNwhzjf0SbsBAaIXD_bEq623MsX2RvSdLc6tIt1ygjA,5516
49
49
  mangoautomation/uidrive/web/sync_web/_page.py,sha256=MNekcL7o5YXEloeuvi3YrpOZxGhEWfrq-5i4PbtTLFg,2027
50
50
  tests/__init__.py,sha256=UhCNFqiVjxdh4CXESNo4oE7qfjpYYVkeHbSE5-7LGDY,125
51
51
  tests/test_ui_and.py,sha256=4k0_3bx_k2KbZifeRWGK65sxtdiPUOjkNzZ5oxjrc18,672
52
52
  tests/test_ui_web.py,sha256=MFaUN8O5qKOMMgyk2eelhKZsYcSJm0Do6pCgsdBZEH4,2765
53
- mangoautomation-1.0.49.dist-info/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
54
- mangoautomation-1.0.49.dist-info/METADATA,sha256=6GR-WJA2S1zKP2U04xCQ2HsAvGeNWpfxX54wB97fibM,660
55
- mangoautomation-1.0.49.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
- mangoautomation-1.0.49.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
57
- mangoautomation-1.0.49.dist-info/RECORD,,
53
+ mangoautomation-1.0.51.dist-info/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
54
+ mangoautomation-1.0.51.dist-info/METADATA,sha256=lX0w6NbYonPJ4U75xT7Z0U8WgLBetOIk8PYj1sd1WQs,660
55
+ mangoautomation-1.0.51.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
+ mangoautomation-1.0.51.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
57
+ mangoautomation-1.0.51.dist-info/RECORD,,