📌  相关文章
📜  如何处理 selenium 中的浏览器弹出窗口 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:25.293000             🧑  作者: Mango

代码示例1
void dismiss()-> clicks on the “Cancel” button 
 as soon as the pop-up window appears. 
• void accept()-> clicks on the “Ok” button 
as soon as the pop-up window appears. 
• String getText()-> returns the text displayed on the alert box. 
• void sendKeys(String stringToSend) -> enters the specified 
string pattern into the alert box.