Summary
In this chapter, we explored an area of Karate that deviates from its core API testing functionality. Even though API calls are used in the background, browser tests feel very different in that they focus on the UI of a web application.
First, we saw what browser tests are used for, why they matter, and that there are a lot of competing tools in this area between which Karate stands out due to its API focus. Specifically, we looked at how to write basic tests in Chrome and why this should be the first browser to start with.
Following this, we learned how to find and interact with web elements and saw what possibilities there are to speed up test development using Karate’s debugging functions.
Finally, we combined Karate’s mocking abilities with API call interception to bring this topic full circle.
In Chapter 10, Performance Testing with Karate Gatling, we will look at the last specialty of Karate: running performance and load tests against APIs to...