All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.version1.webdriver.configuration.TolerantActionExceptions Maven / Gradle / Ivy

Go to download

A simple Selenium framework offering externalised configuration, a good selection of libraries for supporting test data, simple WebDriver browser binary resolution and an opinionated approach for WebDriver test design.

The newest version!
package com.version1.webdriver.configuration;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class TolerantActionExceptions {

    private String waitTimeoutInSeconds;
    private List exceptionsToHandle;

    /**
     *
     * @return the tolerant action wait time in seconds
     */
    public String getWaitTimeoutInSeconds() {
        return waitTimeoutInSeconds;
    }

    /**
     *
     * @param waitTimeoutInSeconds set the tolerant action wait time in seconds
     */
    @JsonProperty("waitTimeoutInSeconds")
    public void setWaitTimeoutInSeconds(String waitTimeoutInSeconds) {
        this.waitTimeoutInSeconds = waitTimeoutInSeconds;
    }

    /**
     *
     * @return Exceptions list that we will use to tolerate in tolerable action wrappers
     */
    public List getExceptionsToHandle() {
        return exceptionsToHandle;
    }

    /**
     *
     * @param exceptionsToHandle sets the list of exceptions for WebDriver that we will retry
     *                                            on when using our tolerant wrapper
     */
    @JsonProperty("exceptionsToHandle")
    public void setExceptionsToHandle(List exceptionsToHandle) {
        this.exceptionsToHandle = exceptionsToHandle;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy