天天看點

nightwatch 切換視窗

change focus to another window. the window to change focus to may be specified by its server assigned window handle, or by the value of its name attribute.

to find out the window handle use <code>window_handles</code> protocol action

name

type

description

<code>handleorname</code>

string

the server assigned window handle or the name attribute.

<code>callback</code>

optional

function

optional callback function to be called when the command finishes.