alttester / AltTester-Unity-SDK

AltTester Unity SDK is an open-source UI driven test automation tool that helps you find objects in your game and interacts with them using tests written in C#, Python, Robot or Java.
https://alttester.com/docs/sdk/latest/home.html
GNU General Public License v3.0
60 stars 7 forks source link

Not able to get text from text area in iOS unity app #1372

Open Mayur5712 opened 1 year ago

Mayur5712 commented 1 year ago

In what language is the test written? (Python 3)

What version of Unity are you using? (2022.3.7f1)

What version of AltTester Unity SDK are you using? (2.0.2)

On what device are you trying to run the test? (Android, iOS)

The OS from where you are running the test? (macOS)

Summary

When we try to get text from any input field/text area of buttons, we are not getting the text from that command. It gives an exception. {NotFoundException}NotFoundException('Object reference not set to an instance of an object.')

Steps to reproduce

  1. Generate ipa using AltTester
  2. Install it on iPhone
  3. Run test and try to get text of button

Relevant logs and/or screenshots

Screenshot 2023-08-24 at 6 30 56 PM
RobertPoienar commented 1 year ago

@Mayur5712 does the find_object command return an object? I think the problem is before trying to get_text. Can you add the log file generated when you are running a test?

sandraaltom commented 11 months ago

Triaged Week no. 38, 2023.