frame switching robot framework + selenium2--

select frame Keywords: receiving parameters of a locator, for positioning 


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

select frame ID = FRA 

$ {} List List items GET ID = Buy 

Unselect Frame                                                                           // returns to the uppermost 

log scource                                                                              / / Print page html source code 

sleep                                                2 

use Close Browser



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

Unselect key Frame word: return to the top level pages do not need any parameters 




Note: robot framework there will be no return to the keywords on a frame, and can only return to the top level. Then one level handover. 


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

 

Guess you like

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