By default, testRTC enables using CSS notation when you want to refer to different DOM elements on your web application. This applies to script commands such as .setValue(), .click() and .waitForElementVisible().
This means that whenever you need to hook up to a DOM element in your application, but it for clicking a button, filling out a form entry or anything else, you need to use a selector. The default is CSS though XPath is also available.
<button id="submit">Submit</button>
client.click("#submit");
While we prefer the use of ID’s to access elements, these are not always available and then you need to figure out a good CSS selector for it.
To learn more about CSS selectors and how to use them, we recommend this article.