Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Helenium for Appium is not recording the Xpath, even when the testcase is successful #64

Open
sheikhjebran opened this issue Jan 2, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sheikhjebran
Copy link

Describe the bug

There is no Selector , even when there is successful test case

image

the below command i use to get the docker container up

docker-compose -f docker-compose-appium.yaml up -d

Unitest Result
image

SampleCode.zip

How to reproduce the issue

Get the docker-image up 

run the sample project which i have attached.

Logs appeared during using Healenium

2025-01-02 16:04:28 
2025-01-02 16:04:28   .   ____          _            __ _ _
2025-01-02 16:04:28  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2025-01-02 16:04:28 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2025-01-02 16:04:28  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2025-01-02 16:04:28   '  |____| .__|_| |_|_| |_\__, | / / / /
2025-01-02 16:04:28  =========|_|==============|___/=/_/_/_/
2025-01-02 16:04:28 
2025-01-02 16:04:28  :: Spring Boot ::                (v3.3.3)
2025-01-02 16:04:28 
2025-01-02 16:04:28 2025-01-02 13:34:28.639  INFO 1 - [       main] .e.h.h.HealeniumProxyApplication : Starting HealeniumProxyApplication v2.1.1 using Java 22.0.2 with PID 1 (/hlm-proxy.jar started by root in /) 
2025-01-02 16:04:28 2025-01-02 13:34:28.645  INFO 1 - [       main] .e.h.h.HealeniumProxyApplication : No active profile set, falling back to 1 default profile: "default" 
2025-01-02 16:04:30 2025-01-02 13:34:30.989  INFO 1 - [       main] o.s.c.c.scope.GenericScope       : BeanFactory id=daa05cf8-6045-34e7-8e04-6a12f01c9465 
2025-01-02 16:04:32 2025-01-02 13:34:32.587  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [After] 
2025-01-02 16:04:32 2025-01-02 13:34:32.588  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Before] 
2025-01-02 16:04:32 2025-01-02 13:34:32.590  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Between] 
2025-01-02 16:04:32 2025-01-02 13:34:32.590  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Cookie] 
2025-01-02 16:04:32 2025-01-02 13:34:32.591  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Header] 
2025-01-02 16:04:32 2025-01-02 13:34:32.592  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Host] 
2025-01-02 16:04:32 2025-01-02 13:34:32.593  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Method] 
2025-01-02 16:04:32 2025-01-02 13:34:32.594  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Path] 
2025-01-02 16:04:32 2025-01-02 13:34:32.595  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Query] 
2025-01-02 16:04:32 2025-01-02 13:34:32.595  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [ReadBody] 
2025-01-02 16:04:32 2025-01-02 13:34:32.596  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [RemoteAddr] 
2025-01-02 16:04:32 2025-01-02 13:34:32.598  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [XForwardedRemoteAddr] 
2025-01-02 16:04:32 2025-01-02 13:34:32.598  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Weight] 
2025-01-02 16:04:32 2025-01-02 13:34:32.600  INFO 1 - [       main] .g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [CloudFoundryRouteService] 
2025-01-02 16:04:33 2025-01-02 13:34:33.343  INFO 1 - [       main] o.s.b.w.e.netty.NettyWebServer   : Netty started on port 8085 (http) 
2025-01-02 16:04:33 2025-01-02 13:34:33.530  INFO 1 - [       main] .e.h.h.HealeniumProxyApplication : Started HealeniumProxyApplication in 5.948 seconds (process running for 7.605) 
2025-01-02 16:05:28 2025-01-02 13:35:28.736  WARN 1 - [ttp-epoll-2] .InitSessionGatewayFilterFactory : Init Session: {"value":{"capabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","automationName":"UIAutomator2","udid":"RZCT30BHZXH","app":"/Users/philips/Desktop/SampleCode/healenium.apk","appPackage":"com.example.demoapp","appActivity":".MainActivity","newCommandTimeout":1000,"avdLaunchTimeout":100000,"platformVersion":"14"},"platformName":"Android","automationName":"UIAutomator2","udid":"RZCT30BHZXH","app":"/Users/philips/Desktop/SampleCode/healenium.apk","appPackage":"com.example.demoapp","appActivity":".MainActivity","newCommandTimeout":1000,"avdLaunchTimeout":100000,"platformVersion":"14","deviceName":"RZCT30BHZXH","deviceUDID":"RZCT30BHZXH","deviceApiLevel":34,"deviceScreenSize":"1080x2408","deviceScreenDensity":450,"deviceModel":"SM-E236B","deviceManufacturer":"samsung","pixelRatio":2.8125,"statBarHeight":70,"viewportRect":{"left":0,"top":70,"width":1080,"height":2133}},"sessionId":"9fc63f38-2195-4fb5-adc8-35f34b4af864"}} 
2025-01-02 16:05:28 2025-01-02 13:35:28.740  INFO 1 - [ttp-epoll-2] healenium                        : [Proxy] Using Selenium server: http://host.docker.internal:4723 
2025-01-02 16:05:29 2025-01-02 13:35:29.716  INFO 1 - [ttp-epoll-2] healenium                        : Find Element Request: {"using": "xpath", "value": "//android.view.View[@content-desc=\"NameInputField\"]"} 
2025-01-02 16:05:32 2025-01-02 13:35:32.338  INFO 1 - [ttp-epoll-2] healenium                        : Find Element Response: {"value":{"element-6066-11e4-a52e-4f735466cecf":"00000000-0000-047f-7735-940c00000004"}} 
2025-01-02 16:05:32 2025-01-02 13:35:32.384  INFO 1 - [ttp-epoll-2] healenium                        : Find Element Request: {"using": "xpath", "value": "//android.widget.TextView[@text=\"Submit\"]"} 
2025-01-02 16:05:32 2025-01-02 13:35:32.606  INFO 1 - [ttp-epoll-2] healenium                        : Find Element Response: {"value":{"element-6066-11e4-a52e-4f735466cecf":"00000000-0000-047f-0000-001800000004"}}

Expected behavior

No response

Actual behavior

No response

Healenium Backend version

image: healenium/hlm-backend:3.4.6

Healenium Appium version

appium --version 2.12.1

Selenium version

No response

Platform

python

Additional context

No response

@sheikhjebran sheikhjebran added the bug Something isn't working label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants