Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “We have a host
command and a ghost
party. Writing this line of code could potentially take the host
command from the ghost
string.”
A block of code is set as follows:
Set JOURNEY="Attend Ghost"; yarn ch15 if (journey.includes(" host").toLowerCase()) { // Host path being taken in error. }
Any command-line input or output is written as follows:
[0-0] ---> Clicking button[type="submit"] ... [0-0] ---> button clicked. [0-0] ---> pageSync() completed in 25 ms [0-0] ---> Clicking button[type="bogus"] ... [0-0] ---> button[type="submit"] was not clicked. [0-0] Error: Can't call click on element with selector "button[type="bogus"]" because element wasn't found
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “In this example, the user does not attend the party and instead clicks the I’m scared button.”
Tips or important notes
Appear like this.