The device is the core component that allows you to interact with the mobile app. It provides methods for interacting with the app, such as tapping, typing, and verifying the state of elements etc.
API reference for Device
Locators are essential for selecting elements in the app. Appwright provides a set of built-in locators that you can use to select elements by text, ID, RegExp or XPath.
API reference for Locator