O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Selecting and typing into input texts

In this recipe, we will write our first test. We are going to get the three input texts and type some values, then we will assert that the values are present in the fields.

Getting ready

For this recipe, we will continue working on the same project we created in the previous recipe.

We need to make sure the Appium server is running; please take a look at recipe number 1 in this chapter.

We also need to make sure the inspector is not running, otherwise the device will be busy running the app and won't be able to run our tests.

Just in case, I have to mention that the device should be connected to your Mac (sometimes I've forgotten this important step) and the React Native Packager running.

We need the packager running ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required