mangoautomation 1.0.38__tar.gz → 1.0.40__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 mangoautomation might be problematic. Click here for more details.
- {mangoautomation-1.0.38/mangoautomation.egg-info → mangoautomation-1.0.40}/PKG-INFO +1 -1
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/_async_element.py +3 -1
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/_sync_element.py +3 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/_new_browser.py +1 -1
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_new_browser.py +1 -1
- {mangoautomation-1.0.38 → mangoautomation-1.0.40/mangoautomation.egg-info}/PKG-INFO +1 -1
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/setup.py +1 -1
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/LICENSE +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/MANIFEST.in +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/README.md +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/enums/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/enums/_base_enum.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/enums/_ui_enum.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/exceptions/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/exceptions/_error_msg.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/exceptions/_exceptions.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/models/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/models/_ui_model.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/tools/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/tools/_mate.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/_base_data.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/_driver_object.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_application.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_assertion.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_customization.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_element.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_equipment.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_new_android.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_page.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/pc/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/pc/assertion.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/pc/customization.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/pc/element.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/pc/input_device.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/pc/new_windows.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/_assertion.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/_browser.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/_customization.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/_element.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/_input_device.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/_page.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_assertion.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_browser.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_customization.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_element.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_input_device.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_page.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation.egg-info/SOURCES.txt +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation.egg-info/dependency_links.txt +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation.egg-info/requires.txt +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation.egg-info/top_level.txt +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/setup.cfg +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/tests/__init__.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/tests/test_ui_and.py +0 -0
- {mangoautomation-1.0.38 → mangoautomation-1.0.40}/tests/test_ui_web.py +0 -0
|
@@ -41,7 +41,6 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
|
|
|
41
41
|
self.base_data.log.debug(f'不存在这个类型,如果是非管理员看到这种提示,请联系管理员')
|
|
42
42
|
raise Exception('不存在的设备类型')
|
|
43
43
|
|
|
44
|
-
|
|
45
44
|
async def element_main(self, element_model: ElementModel, element_data: dict | None = None) -> ElementResultModel:
|
|
46
45
|
self.element_model = element_model
|
|
47
46
|
self.element_data = element_data
|
|
@@ -93,8 +92,11 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
|
|
|
93
92
|
async def __main(self):
|
|
94
93
|
try:
|
|
95
94
|
self.element_model.loc = self.base_data.test_data.replace(self.element_model.loc)
|
|
95
|
+
self.element_result_model.loc = self.element_model.loc
|
|
96
96
|
self.element_model.sleep = self.base_data.test_data.replace(self.element_model.sleep)
|
|
97
|
+
self.element_result_model.sleep = self.element_model.sleep
|
|
97
98
|
self.element_model.sub = self.base_data.test_data.replace(self.element_model.sub)
|
|
99
|
+
self.element_result_model.sub = self.element_model.sub
|
|
98
100
|
except MangoAutomationError as error:
|
|
99
101
|
self.base_data.log.error(f'操作元素解析数据失败,类型:{type(error)}, 详情:{error}')
|
|
100
102
|
raise MangoAutomationError(error.code, error.msg)
|
|
@@ -92,8 +92,11 @@ class SyncElement(SyncWebDevice, AndroidDriver):
|
|
|
92
92
|
def __main(self):
|
|
93
93
|
try:
|
|
94
94
|
self.element_model.loc = self.base_data.test_data.replace(self.element_model.loc)
|
|
95
|
+
self.element_result_model.loc = self.element_model.loc
|
|
95
96
|
self.element_model.sleep = self.base_data.test_data.replace(self.element_model.sleep)
|
|
97
|
+
self.element_result_model.sleep = self.element_model.sleep
|
|
96
98
|
self.element_model.sub = self.base_data.test_data.replace(self.element_model.sub)
|
|
99
|
+
self.element_result_model.sub = self.element_model.sub
|
|
97
100
|
except MangoAutomationError as error:
|
|
98
101
|
self.base_data.log.debug(f'操作元素解析数据失败,类型:{type(error)}, 详情:{error}')
|
|
99
102
|
raise MangoAutomationError(error.code, error.msg)
|
|
@@ -103,7 +103,7 @@ class AsyncWebNewBrowser:
|
|
|
103
103
|
async def new_context(self) -> BrowserContext:
|
|
104
104
|
args_dict = {}
|
|
105
105
|
if self.web_is_default:
|
|
106
|
-
args_dict["viewport"] = {"width":
|
|
106
|
+
args_dict["viewport"] = {"width": 1920, "height": 1080}
|
|
107
107
|
if self.web_h5:
|
|
108
108
|
args_dict.update(self.playwright.devices[self.web_h5])
|
|
109
109
|
if not (self.web_is_default or self.web_h5):
|
|
@@ -103,7 +103,7 @@ class SyncWebNewBrowser:
|
|
|
103
103
|
def new_context(self) -> BrowserContext:
|
|
104
104
|
args_dict = {}
|
|
105
105
|
if self.web_is_default:
|
|
106
|
-
args_dict["viewport"] = {"width":
|
|
106
|
+
args_dict["viewport"] = {"width": 1920, "height": 1080}
|
|
107
107
|
if self.web_h5:
|
|
108
108
|
args_dict.update(self.playwright.devices[self.web_h5])
|
|
109
109
|
if not (self.web_is_default or self.web_h5):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/__init__.py
RENAMED
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_application.py
RENAMED
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_assertion.py
RENAMED
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_customization.py
RENAMED
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_element.py
RENAMED
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_equipment.py
RENAMED
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/android/_new_android.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/pc/customization.py
RENAMED
|
File without changes
|
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/pc/input_device.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/_browser.py
RENAMED
|
File without changes
|
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/_element.py
RENAMED
|
File without changes
|
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/async_web/_page.py
RENAMED
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/__init__.py
RENAMED
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_assertion.py
RENAMED
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_browser.py
RENAMED
|
File without changes
|
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_element.py
RENAMED
|
File without changes
|
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation/uidrive/web/sync_web/_page.py
RENAMED
|
File without changes
|
|
File without changes
|
{mangoautomation-1.0.38 → mangoautomation-1.0.40}/mangoautomation.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|