swal("Here's a message!", "It's pretty, isn't it?");
alert("You clicked the coffee cup!");
alert("this is the alert")
<!DOCTYPE html>
<html>
<body>
<h2>Biggnars platform</h2>
<script>
window.alert("My known programming languages are python,c# and java");
</script>
</body>
</html>
// the hello world program
alert("Hello, World!");
alert("Alert")
alert("Hello World!");
alert("This is an alert !");
<a href="javascript:console.log('javascript');alert('javascript')">Link</a>
alert("Message")
If the alert on the browser comes from JavaScript, we use to
handle them Alert class.
Alert alert = driver.switchTo.alert();
alert.accept();
alert.dismiss();
alert.sendKeys();
alert.getText();
alert("Hello! I am an alert!!");
- Information : You can only accept.
- Confirmation: You can accept or decline.
- Prompt : You can accept, decline, and/or sendKeys.
alert("--Your alert--"); = Notification Alert