// This is the test’s execute method, it will contain the actions taken in the test.
public ExecutionResult execute(WebTestHelper helper) throws FailureException {
// Leverage the TestProject driver.
WebDriver driver = helper.getDriver();
// set timeout for adaptive wait driver actions, by increasing this timeout you increase the maximum threshold that the driver will wait for element to become visible.
driver.setTimeout(15000);
// The TestProject reporter.
TestReporter report = helper.getReporter();
// Navigates the specified URL.
booleanResult = driver.testproject().navigateToUrl(ApplicationURL);
report.step(String.format("Navigate to '%s'",ApplicationURL), booleanResult, TakeScreenshotConditionType.Failure);
by = By.cssSelector("#name");
booleanResult = driver.testproject().typeText(by,"Username");
report.step("Type 'Username' in 'name1'", booleanResult, TakeScreenshotConditionType.Failure);
by = By.cssSelector("#password");
booleanResult = driver.testproject().typeText(by,"12345678");
report.step("Type '12345678' in 'password1'", booleanResult, TakeScreenshotConditionType.Failure);
// Report the test as passed.
return ExecutionResult.PASSED;