Using Screen Builder
You can make it easy to create screen nickname file with Screen Builder.
Getting Screen Builder (Shirates Builder)
Get from GitHub repository. https://github.com/ldi-github/shirates-builder
git clone https://github.com/ldi-github/shirates-builder.git
Launching Screen Builder
- Open
shirates-builder
project with IntelliJ IDEA. - Run app.
Starting recording session (in Settings tab)
- Set
testrun File
field. Drag & Drop is available. - Select platform (Android/iOS).
- Click
[Load testrun File]
. - Set
packageOrBundleId
. - Click
[Start]
button to launch the device.
Capturing screen (in Edit tab)
- Click
[Capture]
button or[Capture with scroll]
button.
Preview JSON (in Preview tab)
- See Preview tab.
Defining Nicknames
- Click an element on the image. It will be focused with red rectangle.
- You can edit the nickname.
Converting the element to relative selector
- Click the base element to select. (red rectangle)
- Ctrl+Click the element that you want to convert to relative element of the base element. (green rectangle)
{Network & internet}
is relative selector.