robot framework + selenium2-- switching operation and switch the browser window

list windows Keywords: Get all the pages currently open windows does not require any parameters and returns a list of 


Open Browser HTTP: // www.baidu.com Chrome 

$ {} the Result list windows 

log the Result $ {} 

SLEEP                                                 2 

use Close Browser

 == ================================================== ================================================== ================================ 


the SELECT window keywords: simulating a multiple tab pages open in a different tab pages window switch receives the keyword [Locator = none] parameter,
           
                                                                                    locator can be a name, window title, url, window handle and other 



Open Browser HTTP: // www.baidu.com Chrome 

the Click Link name = tj_trmap 

the SELECT window Baidu map 

use Close window

 ============== ================================================== ================================================== ==================== switch browser keywords: after simulated multiple browsers open, the switching operation of the plurality of browser receives [index_or_aliias] parameter 
open HTTP Browser: //




www.baidu.com                          chrome

open browser                                         http://www.ifeng.com                          ie

switch browser                                       1

close all browsers


======================================================================================================================================

 

Guess you like

Origin www.cnblogs.com/xiaobaibailongma/p/12334164.html