Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FocusActionApi

Combines methods to bring either focus or blur to webelements elements

Hierarchy

Index

Methods

_blur

_focus

  • Fetches an element and performs the native .focus() method in the browser. When _focus is performed on an <input> element, it will be automatically scrolled into the viewport by the browser.

    Note that not all elements will get an actual focus in the browser. Usually links and user-controls (e.g. <input>, <textarea>, <select>...) can gain focus.

    Parameters

    Returns Promise<void>

    Resolves when browser-script finished

_removeFocus