Summary
This chapter shows how to tap into the PhantomJS capability of handling and triggering different events. We have covered different aspects like handling page events and callbacks, sending keyboard events, and simulating mouse events. In the next chapter, we will learn the details on how to capture error messages.