Stetho and PonyDebugger support finding elements

You know for finding elements is the first step to describe GUI Testing scenarios.

For example, you need to find accessibilityIdentifier, accessibilityLabel, text and so on to describe GUI test in iOS with UIAutomation or Appium. In Android, you need to detect contentDescription or text and so on.

In usually, anyone use Appium Inspector or console tools. If you can read code, you may read source code directory. But they are not easy way. It’s a bit difficult.

I think that using Stetho and PonyDebugger is easier way to do it. Because you only need Browser or Chrome Dev tools.

Introduce

PonyDebugger

PonyDebugger provides view hierarchy debugging. You can customise its parameters.

For example, you can get accessibilityIdentifier and so on with the following customisation.

[debugger setDisplayedViewAttributeKeyPaths:@[@"frame", @"hidden", @"accessibilityIdentifier", @"accessibilityLabel", @"text"]];

Stetho

Stetho provides view hierarchy debugging over 1.1.0.
Stetho can get all elements via Google Dev Tools.

Do checking

Launch browser and connect target device.
That’s all.

conclusion

You can find elements easier with Stetho and PonyDebugger. Convinient tools make your test more efficient.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s