A, alert balloon
1. First with switch_to_alert () method is switched to the alert popup
2. You can get the pop-up text information using text method
3.accept () Click the OK button
4.dismiss () is equivalent to the upper right corner x, cancel pop-up box
Two, confirm confirmation box
1. First with switch_to_alert () method is switched to the alert popup
2. You can get the pop-up text information using text method
3.accept () Click the OK button
4.dismiss () is equivalent to the Cancel button or the upper right corner point x, cancel pop-up box
Three, prompt submission box
1. First with switch_to_alert () method is switched to the alert popup
2. You can get the pop-up text information using text method
3.accept () Click the OK button
4.dismiss () is equivalent to the upper right corner x, cancel pop-up box
5.send_keys () where a plurality of input boxes can be used send_keys () method for inputting text