Fetches an element and performs the native .blur()
in the browser.
That means that this element will lose the focus-state.
Resolves when browser-script finished
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.
Query or concrete WebElement
Resolves when browser-script finished
Combines methods to bring either focus or blur to webelements elements