healenium / healenium-appium

Self-healing library for Appium-based tests
Apache License 2.0
26 stars 8 forks source link

[BUG]: IOS locator not able to save #61

Open uschouhan opened 1 month ago

uschouhan commented 1 month ago

Describe the bug

2024-09-25 18:54:01 2024-09-25 16:24:01.986 INFO 1 - [8085-exec-1] healenium : [Create Session] Response from Selenium Server: {"value":{"capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"IOS","automationName":"XCUITest","bundleId":"com.angelbroking.angeleye","deviceName":"iPhone11","udid":"11DBF953-9F96-4F9C-87BC-36FAC8B15097","platformVersion":"17.4"},"sessionId":"fea84d6a-0a63-471c-85f2-5f7e74d27a88"}} 2024-09-25 18:54:07 2024-09-25 16:24:07.259 WARN 1 - [8085-exec-3] healenium : [Save Elements] Error during save elements: [18000000-0000-0000-CF6D-010000000000]. Message: An unknown server-side error occurred while processing the command. Original error: The attribute 'bounds' is unknown. Valid attribute names are: (\n UID,\n accessibilityContainer,\n accessible,\n enabled,\n focused,\n frame,\n hittable,\n index,\n label,\n name,\n rect,\n selected,\n type,\n value,\n visible,\n wdAccessibilityContainer,\n wdAccessible,\n wdEnabled,\n wdFocused,\n wdFrame,\n wdHittable,\n wdIndex,\n wdLabel,\n wdName,\n wdRect,\n wdSelected,\n wdType,\n wdUID,\n wdValue,\n wdVisible\n )\n Build info: version: '4.16.0', revision: '15400459dd'\n System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.49-linuxkit', java.version: '17.0.10'\n Driver info: io.appium.java_client.AppiumDriver\n Command: [fea84d6a-0a63-471c-85f2-5f7e74d27a88, getElementAttribute {id=18000000-0000-0000-CF6D-010000000000, name=bounds}]\n Capabilities {appium:automationName: XCUITest, appium:bundleId: com.angelbroking.angeleye, appium:databaseEnabled: false, appium:deviceName: iPhone11, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:platformVersion: 17.4, appium:takesScreenshot: true, appium:udid: 11DBF953-9F96-4F9C-87BC-36F..., appium:webStorageEnabled: false, platformName: IOS}\n Element: [[AppiumDriver: on IOS (fea84d6a-0a63-471c-85f2-5f7e74d27a88)] -> accessibility id: Button.Login.Signup]\n Session ID: fea84d6a-0a63-471c-85f2-5f7e74d27a88. Exception: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The attribute 'bounds' is unknown. Valid attribute names are: (\n UID,\n accessibilityContainer,\n accessible,\n enabled,\n focused,\n frame,\n hittable,\n index,\n label,\n name,\n rect,\n selected,\n type,\n value,\n visible,\n wdAccessibilityContainer,\n wdAccessible,\n wdEnabled,\n wdFocused,\n wdFrame,\n wdHittable,\n wdIndex,\n wdLabel,\n wdName,\n wdRect,\n wdSelected,\n wdType,\n wdUID,\n wdValue,\n wdVisible\n )\n Build info: version: '4.16.0', revision: '15400459dd'\n System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.49-linuxkit', java.version: '17.0.10'\n Driver info: io.appium.java_client.AppiumDriver\n Command: [fea84d6a-0a63-471c-85f2-5f7e74d27a88, getElementAttribute {id=18000000-0000-0000-CF6D-010000000000, name=bounds}]\n Capabilities {appium:automationName: XCUITest, appium:bundleId: com.angelbroking.angeleye, appium:databaseEnabled: false, appium:deviceName: iPhone11, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:platformVersion: 17.4, appium:takesScreenshot: true, appium:udid: 11DBF953-9F96-4F9C-87BC-36F..., appium:webStorageEnabled: false, platformName: IOS}\n Element: [[AppiumDriver: on IOS (fea84d6a-0a63-471c-85f2-5f7e74d27a88)] -> accessibility id: Button.Login.Signup]\n Session ID: fea84d6a-0a63-471c-85f2-5f7e74d27a88 2024-09-25 18:54:07 2024-09-25 16:24:07.282 INFO 1 - [8085-exec-3] healenium : [Find Element] {\n "value": {\n "element-6066-11e4-a52e-4f735466cecf": "18000000-0000-0000-CF6D-010000000000"\n }\n } 2024-09-25 18:54:08 2024-09-25 16:24:08.868 WARN 1 - [8085-exec-5] healenium : [Save Elements] Error during save elements: [34000000-0000-0000-CF6D-010000000000]. Message: An unknown server-side error occurred while processing the command. Original error: The attribute 'bounds' is unknown. Valid attribute names are: (\n UID,\n accessibilityContainer,\n accessible,\n enabled,\n focused,\n frame,\n hittable,\n index,\n label,\n name,\n rect,\n selected,\n type,\n value,\n visible,\n wdAccessibilityContainer,\n wdAccessible,\n wdEnabled,\n wdFocused,\n wdFrame,\n wdHittable,\n wdIndex,\n wdLabel,\n wdName,\n wdRect,\n wdSelected,\n wdType,\n wdUID,\n wdValue,\n wdVisible\n )\n Build info: version: '4.16.0', revision: '15400459dd'\n System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.49-linuxkit', java.version: '17.0.10'\n Driver info: io.appium.java_client.AppiumDriver\n Command: [fea84d6a-0a63-471c-85f2-5f7e74d27a88, getElementAttribute {id=34000000-0000-0000-CF6D-010000000000, name=bounds}]\n Capabilities {appium:automationName: XCUITest, appium:bundleId: com.angelbroking.angeleye, appium:databaseEnabled: false, appium:deviceName: iPhone11, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:platformVersion: 17.4, appium:takesScreenshot: true, appium:udid: 11DBF953-9F96-4F9C-87BC-36F..., appium:webStorageEnabled: false, platformName: IOS}\n Element: [[AppiumDriver: on IOS (fea84d6a-0a63-471c-85f2-5f7e74d27a88)] -> accessibility id: TxtFiled.Login.Signup]\n Session ID: fea84d6a-0a63-471c-85f2-5f7e74d27a88. Exception: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The attribute 'bounds' is unknown. Valid attribute names are: (\n UID,\n accessibilityContainer,\n accessible,\n enabled,\n focused,\n frame,\n hittable,\n index,\n label,\n name,\n rect,\n selected,\n type,\n value,\n visible,\n wdAccessibilityContainer,\n wdAccessible,\n wdEnabled,\n wdFocused,\n wdFrame,\n wdHittable,\n wdIndex,\n wdLabel,\n wdName,\n wdRect,\n wdSelected,\n wdType,\n wdUID,\n wdValue,\n wdVisible\n )\n Build info: version: '4.16.0', revision: '15400459dd'\n System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.49-linuxkit', java.version: '17.0.10'\n Driver info: io.appium.java_client.AppiumDriver\n Command: [fea84d6a-0a63-471c-85f2-5f7e74d27a88, getElementAttribute {id=34000000-0000-0000-CF6D-010000000000, name=bounds}]\n Capabilities {appium:automationName: XCUITest, appium:bundleId: com.angelbroking.angeleye, appium:databaseEnabled: false, appium:deviceName: iPhone11, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:platformVersion: 17.4, appium:takesScreenshot: true, appium:udid: 11DBF953-9F96-4F9C-87BC-36F..., appium:webStorageEnabled: false, platformName: IOS}\n Element: [[AppiumDriver: on IOS (fea84d6a-0a63-471c-85f2-5f7e74d27a88)] -> accessibility id: TxtFiled.Login.Signup]\n Session ID: fea84d6a-0a63-471c-85f2-5f7e74d27a88 2024-09-25 18:54:08 2024-09-25 16:24:08.883 INFO 1 - [8085-exec-5] healenium : [Find Element] {\n "value": {\n "element-6066-11e4-a52e-4f735466cecf": "34000000-0000-0000-CF6D-010000000000"\n }\n }

How to reproduce the issue

while selector is getting inserted in db we are getting this error

Logs appeared during using Healenium

2024-09-25 18:54:01 2024-09-25 16:24:01.986  INFO 1 - [8085-exec-1] healenium                        : [Create Session] Response from Selenium Server: {"value":{"capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"IOS","automationName":"XCUITest","bundleId":"com.angelbroking.angeleye","deviceName":"iPhone11","udid":"11DBF953-9F96-4F9C-87BC-36FAC8B15097","platformVersion":"17.4"},"sessionId":"fea84d6a-0a63-471c-85f2-5f7e74d27a88"}} 
2024-09-25 18:54:07 2024-09-25 16:24:07.259  WARN 1 - [8085-exec-3] healenium                        : [Save Elements] Error during save elements: [18000000-0000-0000-CF6D-010000000000]. Message: An unknown server-side error occurred while processing the command. Original error: The attribute 'bounds' is unknown. Valid attribute names are: (\n     UID,\n     accessibilityContainer,\n     accessible,\n     enabled,\n     focused,\n     frame,\n     hittable,\n     index,\n     label,\n     name,\n     rect,\n     selected,\n     type,\n     value,\n     visible,\n     wdAccessibilityContainer,\n     wdAccessible,\n     wdEnabled,\n     wdFocused,\n     wdFrame,\n     wdHittable,\n     wdIndex,\n     wdLabel,\n     wdName,\n     wdRect,\n     wdSelected,\n     wdType,\n     wdUID,\n     wdValue,\n     wdVisible\n )\n Build info: version: '4.16.0', revision: '15400459dd*'\n System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.49-linuxkit', java.version: '17.0.10'\n Driver info: io.appium.java_client.AppiumDriver\n Command: [fea84d6a-0a63-471c-85f2-5f7e74d27a88, getElementAttribute {id=18000000-0000-0000-CF6D-010000000000, name=bounds}]\n Capabilities {appium:automationName: XCUITest, appium:bundleId: com.angelbroking.angeleye, appium:databaseEnabled: false, appium:deviceName: iPhone11, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:platformVersion: 17.4, appium:takesScreenshot: true, appium:udid: 11DBF953-9F96-4F9C-87BC-36F..., appium:webStorageEnabled: false, platformName: IOS}\n Element: [[AppiumDriver:  on IOS (fea84d6a-0a63-471c-85f2-5f7e74d27a88)] -> accessibility id: Button.Login.Signup]\n Session ID: fea84d6a-0a63-471c-85f2-5f7e74d27a88. Exception: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The attribute 'bounds' is unknown. Valid attribute names are: (\n     UID,\n     accessibilityContainer,\n     accessible,\n     enabled,\n     focused,\n     frame,\n     hittable,\n     index,\n     label,\n     name,\n     rect,\n     selected,\n     type,\n     value,\n     visible,\n     wdAccessibilityContainer,\n     wdAccessible,\n     wdEnabled,\n     wdFocused,\n     wdFrame,\n     wdHittable,\n     wdIndex,\n     wdLabel,\n     wdName,\n     wdRect,\n     wdSelected,\n     wdType,\n     wdUID,\n     wdValue,\n     wdVisible\n )\n Build info: version: '4.16.0', revision: '15400459dd*'\n System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.49-linuxkit', java.version: '17.0.10'\n Driver info: io.appium.java_client.AppiumDriver\n Command: [fea84d6a-0a63-471c-85f2-5f7e74d27a88, getElementAttribute {id=18000000-0000-0000-CF6D-010000000000, name=bounds}]\n Capabilities {appium:automationName: XCUITest, appium:bundleId: com.angelbroking.angeleye, appium:databaseEnabled: false, appium:deviceName: iPhone11, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:platformVersion: 17.4, appium:takesScreenshot: true, appium:udid: 11DBF953-9F96-4F9C-87BC-36F..., appium:webStorageEnabled: false, platformName: IOS}\n Element: [[AppiumDriver:  on IOS (fea84d6a-0a63-471c-85f2-5f7e74d27a88)] -> accessibility id: Button.Login.Signup]\n Session ID: fea84d6a-0a63-471c-85f2-5f7e74d27a88 
2024-09-25 18:54:07 2024-09-25 16:24:07.282  INFO 1 - [8085-exec-3] healenium                        : [Find Element] {\n   "value": {\n     "element-6066-11e4-a52e-4f735466cecf": "18000000-0000-0000-CF6D-010000000000"\n   }\n } 
2024-09-25 18:54:08 2024-09-25 16:24:08.868  WARN 1 - [8085-exec-5] healenium                        : [Save Elements] Error during save elements: [34000000-0000-0000-CF6D-010000000000]. Message: An unknown server-side error occurred while processing the command. Original error: The attribute 'bounds' is unknown. Valid attribute names are: (\n     UID,\n     accessibilityContainer,\n     accessible,\n     enabled,\n     focused,\n     frame,\n     hittable,\n     index,\n     label,\n     name,\n     rect,\n     selected,\n     type,\n     value,\n     visible,\n     wdAccessibilityContainer,\n     wdAccessible,\n     wdEnabled,\n     wdFocused,\n     wdFrame,\n     wdHittable,\n     wdIndex,\n     wdLabel,\n     wdName,\n     wdRect,\n     wdSelected,\n     wdType,\n     wdUID,\n     wdValue,\n     wdVisible\n )\n Build info: version: '4.16.0', revision: '15400459dd*'\n System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.49-linuxkit', java.version: '17.0.10'\n Driver info: io.appium.java_client.AppiumDriver\n Command: [fea84d6a-0a63-471c-85f2-5f7e74d27a88, getElementAttribute {id=34000000-0000-0000-CF6D-010000000000, name=bounds}]\n Capabilities {appium:automationName: XCUITest, appium:bundleId: com.angelbroking.angeleye, appium:databaseEnabled: false, appium:deviceName: iPhone11, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:platformVersion: 17.4, appium:takesScreenshot: true, appium:udid: 11DBF953-9F96-4F9C-87BC-36F..., appium:webStorageEnabled: false, platformName: IOS}\n Element: [[AppiumDriver:  on IOS (fea84d6a-0a63-471c-85f2-5f7e74d27a88)] -> accessibility id: TxtFiled.Login.Signup]\n Session ID: fea84d6a-0a63-471c-85f2-5f7e74d27a88. Exception: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The attribute 'bounds' is unknown. Valid attribute names are: (\n     UID,\n     accessibilityContainer,\n     accessible,\n     enabled,\n     focused,\n     frame,\n     hittable,\n     index,\n     label,\n     name,\n     rect,\n     selected,\n     type,\n     value,\n     visible,\n     wdAccessibilityContainer,\n     wdAccessible,\n     wdEnabled,\n     wdFocused,\n     wdFrame,\n     wdHittable,\n     wdIndex,\n     wdLabel,\n     wdName,\n     wdRect,\n     wdSelected,\n     wdType,\n     wdUID,\n     wdValue,\n     wdVisible\n )\n Build info: version: '4.16.0', revision: '15400459dd*'\n System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.49-linuxkit', java.version: '17.0.10'\n Driver info: io.appium.java_client.AppiumDriver\n Command: [fea84d6a-0a63-471c-85f2-5f7e74d27a88, getElementAttribute {id=34000000-0000-0000-CF6D-010000000000, name=bounds}]\n Capabilities {appium:automationName: XCUITest, appium:bundleId: com.angelbroking.angeleye, appium:databaseEnabled: false, appium:deviceName: iPhone11, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:platformVersion: 17.4, appium:takesScreenshot: true, appium:udid: 11DBF953-9F96-4F9C-87BC-36F..., appium:webStorageEnabled: false, platformName: IOS}\n Element: [[AppiumDriver:  on IOS (fea84d6a-0a63-471c-85f2-5f7e74d27a88)] -> accessibility id: TxtFiled.Login.Signup]\n Session ID: fea84d6a-0a63-471c-85f2-5f7e74d27a88 
2024-09-25 18:54:08 2024-09-25 16:24:08.883  INFO 1 - [8085-exec-5] healenium                        : [Find Element] {\n   "value": {\n     "element-6066-11e4-a52e-4f735466cecf": "34000000-0000-0000-CF6D-010000000000"\n   }\n }

Expected behavior

No response

Actual behavior

No response

Healenium Backend version

3.8

Healenium Appium version

3.8

Selenium version

No response

Platform

java

Additional context

No response