.switchWindow() 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 window_handles protocol action Parameters: N…
http://uniquepig.iteye.com/blog/1559321 在webdriver官方的api中,切换窗口的方法提供的参数是nameOrHandle. 引用 http://uniquepig.iteye.com/blog/1559321 WebDriver window(java.lang.String nameOrHandle) Switch the focus of future commands for this driver to the windo…