com.shaft.driver.internal.WizardHelpers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SHAFT_ENGINE Show documentation
Show all versions of SHAFT_ENGINE Show documentation
SHAFT is a unified test automation engine. Powered by best-in-class frameworks, SHAFT provides a
wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve.
Stop reinventing the wheel. Upgrade now!
package com.shaft.driver.internal;
import com.shaft.validation.internal.*;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class WizardHelpers {
public static class WebDriverAssertions {
public WebDriverAssertions() {
}
public WebDriverBrowserValidationsBuilder browser() {
return com.shaft.validation.Validations.assertThat().browser();
}
public WebDriverElementValidationsBuilder element(By locator) {
return com.shaft.validation.Validations.assertThat().element(locator);
}
}
public static class WebDriverVerifications {
@SuppressWarnings("unused")
public WebDriverVerifications(ThreadLocal driverThreadLocal) {
}
public WebDriverVerifications() {
}
public WebDriverBrowserValidationsBuilder browser() {
return com.shaft.validation.Validations.verifyThat().browser();
}
public WebDriverElementValidationsBuilder element(By locator) {
return com.shaft.validation.Validations.verifyThat().element(locator);
}
}
public static class StandaloneAssertions {
public StandaloneAssertions() {
}
public NativeValidationsBuilder object(Object actual) {
return com.shaft.validation.Validations.assertThat().object(actual);
}
public NumberValidationsBuilder number(Number actual) {
return com.shaft.validation.Validations.assertThat().number(actual);
}
public FileValidationsBuilder file(String folderRelativePath, String fileName) {
return com.shaft.validation.Validations.assertThat().file(folderRelativePath, fileName);
}
public ValidationsExecutor forceFail() {
return com.shaft.validation.Validations.assertThat().forceFail();
}
}
@SuppressWarnings("unused")
public static class StandaloneVerifications {
public StandaloneVerifications() {
}
public NativeValidationsBuilder object(Object actual) {
return com.shaft.validation.Validations.verifyThat().object(actual);
}
public NumberValidationsBuilder number(Number actual) {
return com.shaft.validation.Validations.verifyThat().number(actual);
}
public FileValidationsBuilder file(String folderRelativePath, String fileName) {
return com.shaft.validation.Validations.verifyThat().file(folderRelativePath, fileName);
}
public ValidationsExecutor forceFail() {
return com.shaft.validation.Validations.verifyThat().forceFail();
}
}
}