Selenium + Java (five) iframe / frame multi-form processing

Foreword

If a Web page using a frame, when you use the Selenium positioning elements need to switch to the corresponding frame, otherwise it will not require the positioning element.

 

Switch to the frame to be switched

driver.switchTo().frame();

Switch back to the original frame

driver.switchTo().defaultContent();

Guess you like

Origin www.cnblogs.com/yogouo/p/11949101.html