Class MissingElement

java.lang.Object
io.karatelabs.driver.BaseElement
io.karatelabs.driver.MissingElement
All Implemented Interfaces:
Element, io.karatelabs.js.ObjectLike, io.karatelabs.js.SimpleObject

public class MissingElement extends BaseElement
The element Driver.optional(String) returns when nothing matched: actions are no-ops, reads return null / false / empty, retry() keeps the element missing (as in v1, optional(x).retry().click() never waits or throws), and the wait methods delegate to the driver and return the element that eventually appears.