Package jp.vmi.selenium.selenese
Interface AlertActionListener
public interface AlertActionListener
action class for native alert dialog.
-
Method Summary
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 Details
-
setAccept
void setAccept(boolean accept)Set whether or not to accept next alert dialog.truefor accept,falsefor dismiss.- Parameters:
accept- result of dialog.
-
setAnswer
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.
-