externalOptional
Index
Methods
Methods
externalisPresent
- Returns an - Answerablethat resolves to- truewhen the optional value is present,- falseotherwise.- Returns Answerable<boolean>
Returns an Answerable that resolves to true when the optional value
is present, false otherwise.
Optionalis a container object, which holds a value that may or may not be "present",The meaning of being "present" depends on the context and typically means a value that:
nullorundefinedAdditionally,
Optionalcan also have a context-specific meaning. For example,Optional#isPresent():PageElementmeans that the element exists in the DOM.ModalWindowmeans that the modal window is open.LastResponse.body().books[0].author.name.isPresent()will inform us if a given entry exists (sobooks[0].author.name), and if all the links of the property chain leading to the entry of interest exist too (sobooksis present, and so isbooks[0],books[0].author,books[0].author.name).