📜  在 selenium 中切换帧的语法 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:48.726000             🧑  作者: Mango

代码示例2
Frame is a html document inside another html document. 
• Web driver handles one page/html document at a time. 
To control another frame, we always need to switch
• Driver.switchTo.frame(webelement) à find the iframe and pass as a param 
• Driver.switchTo.frame(string) à find the id or name of the iframe 
and pass as a param 
• Driver.switchTo.frame(int) à find the index and pass as a param