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

I met this Error [ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine] #4575

Open
Hades69 opened this issue Jun 2, 2024 Discussed in #4574 · 0 comments

Comments

@Hades69
Copy link

Hades69 commented Jun 2, 2024

Discussed in #4574

Originally posted by Hades69 June 2, 2024
Please let me know how to solve this Error, even my code is right, it still show this Error code.
I'm using newest Poco and AirTest IDE
Here is my code:

# -*- encoding=utf8 -*-
__author__ = "hoang"

from airtest.core.api import *
from airtest.cli.parser import cli_setup

if not cli_setup():
    auto_setup(__file__, logdir=True, devices=["android://127.0.0.1:5037/6743c116?cap_method=ADBCAP&touch_method=MAXTOUCH&",])



from poco.drivers.unity3d import UnityPoco
poco = UnityPoco()


# script content
print("start...")

stop_app("com.wood.nut.and.bolts.puzzle")
start_app("com.wood.nut.and.bolts.puzzle")
sleep(7)

def check_object_text(obj, expected_text):
    
    if not obj.exists():
        
        return False
    
    actual_text = obj.get_text()
    
    
    
    if actual_text == expected_text:
        
        return True
    else:
        
        return False

button = poco( textMatches = "CONNEXION QUOTIDIENNE")


if check_object_text(button, 'CONNEXION QUOTIDIENNE'):
    print('Text matches')
else:
    print('Text not matches')    
         
# generate html report
# from airtest.report.report import simple_report
# simple_report(__file__, logpath=True)</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant