$OrNull method
The method queries frame for the selector. If there's no such element within the frame, the method will resolve to null.
selector
: A selector to query frame for
Returns a Future which resolves to ElementHandle pointing to the frame
element.
Implementation
Future<ElementHandle?> $OrNull(String selector) {
return _mainWorld.$OrNull(selector);
}