From b7aec69134f0b5b8c9c9eecabe18546c49f8b56c Mon Sep 17 00:00:00 2001 From: Mahmudul Alam Date: Sat, 14 Feb 2026 18:25:43 +0600 Subject: [PATCH 1/2] Clear_And_Enter_Text_ADB expects serial of the device UI_Automator2 latest version requires int instead of float --- .../Mobile/CrossPlatform/Appium/BuiltInFunctions.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Framework/Built_In_Automation/Mobile/CrossPlatform/Appium/BuiltInFunctions.py b/Framework/Built_In_Automation/Mobile/CrossPlatform/Appium/BuiltInFunctions.py index 32705eb4..70c596b8 100755 --- a/Framework/Built_In_Automation/Mobile/CrossPlatform/Appium/BuiltInFunctions.py +++ b/Framework/Built_In_Automation/Mobile/CrossPlatform/Appium/BuiltInFunctions.py @@ -3266,6 +3266,8 @@ def Clear_And_Enter_Text_ADB(data_set, serial=""): if serial != "": serial = "-s %s" % serial # Prepare serial number with command line switch + else: + serial = f"-s {appium_details[device_id]['serial']}" # deleting existing text by going to end of line and clicking delete multiple times subprocess.check_output( "adb %s shell input keyevent 123" % (serial), @@ -5443,7 +5445,7 @@ def swipe_appium(data_set): "Calculated Coordinate: (%s,%s) to (%s,%s)" % (x1, y1, x2, y2), 1) i = 0 while i < max_try: - appium_driver.swipe(x1, y1, x2, y2, duration * 1000) # duration seconds to milliseconds + appium_driver.swipe(x1, y1, x2, y2, int(duration * 1000)) # duration seconds to milliseconds i = i+1 return "passed" @@ -5568,7 +5570,7 @@ def scroll_to_element(data_set): if Element != 'zeuz_failed': CommonUtil.ExecLog(sModuleInfo, "Scrolled to the desired element successfully.", 1) return "passed" - appium_driver.swipe(x1, y1, x2, y2, duration * 1000) # duration seconds to milliseconds + appium_driver.swipe(x1, y1, x2, y2, int(duration * 1000)) # duration seconds to milliseconds i = i+1 CommonUtil.ExecLog(sModuleInfo, "Scrolled %d times.Couldn't find the element." % max_try, 3) return "zeuz_failed" From 8a7eac79a801f14efef0abd74ec28221f7250e8c Mon Sep 17 00:00:00 2001 From: Mahmudul Alam Date: Sun, 15 Feb 2026 09:51:09 +0600 Subject: [PATCH 2/2] Fix swipe duration calculation in BuiltInFunctions.py --- .../Mobile/CrossPlatform/Appium/BuiltInFunctions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Framework/Built_In_Automation/Mobile/CrossPlatform/Appium/BuiltInFunctions.py b/Framework/Built_In_Automation/Mobile/CrossPlatform/Appium/BuiltInFunctions.py index 70c596b8..9e6388b7 100755 --- a/Framework/Built_In_Automation/Mobile/CrossPlatform/Appium/BuiltInFunctions.py +++ b/Framework/Built_In_Automation/Mobile/CrossPlatform/Appium/BuiltInFunctions.py @@ -5445,7 +5445,7 @@ def swipe_appium(data_set): "Calculated Coordinate: (%s,%s) to (%s,%s)" % (x1, y1, x2, y2), 1) i = 0 while i < max_try: - appium_driver.swipe(x1, y1, x2, y2, int(duration * 1000)) # duration seconds to milliseconds + appium_driver.swipe(x1, y1, x2, y2, int(duration) * 1000) # duration seconds to milliseconds i = i+1 return "passed" @@ -5570,7 +5570,7 @@ def scroll_to_element(data_set): if Element != 'zeuz_failed': CommonUtil.ExecLog(sModuleInfo, "Scrolled to the desired element successfully.", 1) return "passed" - appium_driver.swipe(x1, y1, x2, y2, int(duration * 1000)) # duration seconds to milliseconds + appium_driver.swipe(x1, y1, x2, y2, int(duration) * 1000) # duration seconds to milliseconds i = i+1 CommonUtil.ExecLog(sModuleInfo, "Scrolled %d times.Couldn't find the element." % max_try, 3) return "zeuz_failed"