public class JsAlert extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.Alert |
alert |
| Constructor and Description |
|---|
JsAlert(org.openqa.selenium.Alert alert) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept()
Accepts the pop-up, usually would press OK button, but depending on web page
could be Confirm, Accept.
|
String |
getText()
Gets the text displayed in the pop-up
|
public String getText()
public void accept()
Copyright © 2022. All rights reserved.