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

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

package com.version1.webdriver.configuration;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.net.MalformedURLException;
import java.net.URL;

public class GridConfig {

    private URL gridUrl;

    /**
     *
     * @return URL representing the grid address
     */
    public URL getGridUrl() {
        return gridUrl;
    }

    /**
     *
     * @param gridUrl a string representing the grid URL from the configuration file
     * @throws MalformedURLException if the URL passed in the configuration file is not a valid URL
     */
    @JsonProperty("url")
    public void setGridUrl(String gridUrl) throws MalformedURLException {
        this.gridUrl = new URL(gridUrl);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy