Package jp.vmi.selenium.selenese
Interface AlertActionListener
-
public interface AlertActionListeneraction class for native alert dialog.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactionPerformed(org.openqa.selenium.Alert alert)Performs the action toalert.voidsetAccept(boolean accept)Set whether or not to accept next alert dialog.voidsetAnswer(String answer)Set the answer for native alert dialog.
-
-
-
Method Detail
-
setAccept
void setAccept(boolean accept)
Set whether or not to accept next alert dialog.truefor accept,falsefor dismiss.- Parameters:
accept- result of dialog.
-
setAnswer
void setAnswer(String answer)
Set the answer for native alert dialog.- Parameters:
answer- result of dialog.
-
actionPerformed
void actionPerformed(org.openqa.selenium.Alert alert)
Performs the action toalert. After perform, instance behaviour should be reset.- Parameters:
alert- Alert instance of Selenium.
-
-