public class JavaScript extends RunOnFailureKeywordsAdapter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
acceptOnNextConfirmation |
protected boolean |
acceptOnNextConfirmationDefault |
protected BrowserManagement |
browserManagement
Instantiated BrowserManagement keyword bean
|
protected Logging |
logging
Instantiated Logging keyword bean
|
protected Robot |
robot |
| Constructor and Description |
|---|
JavaScript() |
| Modifier and Type | Method and Description |
|---|---|
void |
alertShouldBePresent() |
void |
alertShouldBePresent(String... params) |
void |
chooseCancelOnConfirmation() |
void |
chooseCancelOnNextConfirmation() |
void |
chooseOkOnConfirmation() |
void |
chooseOkOnNextConfirmation() |
String |
confirmAction() |
Object |
executeAsyncJavascript(String... code) |
Object |
executeJavascript(String... code) |
String |
getAlertMessage() |
protected String |
getJavascriptToExecute(String code) |
protected static String |
readFile(String path) |
runOnFailureByAspectJprotected boolean acceptOnNextConfirmationDefault
protected boolean acceptOnNextConfirmation
protected BrowserManagement browserManagement
protected Logging logging
protected Robot robot
public void alertShouldBePresent()
public void alertShouldBePresent(String... params)
public void chooseCancelOnNextConfirmation()
public void chooseOkOnNextConfirmation()
public void chooseCancelOnConfirmation()
public void chooseOkOnConfirmation()
public String confirmAction()
public String getAlertMessage()
protected static String readFile(String path) throws IOException
IOExceptionCopyright © 2019. All rights reserved.