When browser redirect me to telegram page, i have an alert(look at the screenshot). How can I cancel It?
I use this code, but i have an error at the second line:
alert = Alert(driver)
alert.dismiss()
IDK which type this window has. But the easiest solution is just send "enter" to browser and window will be closed.
import org.openqa.selenium.Keys
WebElement.sendKeys(Keys.RETURN);