[Description]: Contains prompt information and [Confirm] [Cancel] buttons
【Operation】: 1. Obtain the content of the pop-up window; 2. Perform the "confirm" operation; 3. Perform the cancel operation
【Grammar Realization】
1. Obtain the content of the pop-up window:driver.switch_to.alert.text
2. Confirm the operation:driver.switch_to.alert.accept()
3. Perform the cancel operation:driver.switch_to.alert.dismiss()
2.3 Input information prompt pop-up window
[Description]: Contains prompt information, input information box and [Confirm] [Cancel] button
[Operation]: 1. Obtain the content of the pop-up window; 2. Enter information in the input box; 3. Perform the "confirm" operation; 4. Perform the cancel operation
【Grammar Realization】
1. Obtain the content of the pop-up window:driver.switch_to.alert.text
2. Enter information in the input box:driver.switch_to.alert.send_keys()
3. Confirm the operation:driver.switch_to.alert.accept()