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

com.lazerycode.selenium.repository.DriverDetails Maven / Gradle / Ivy

Go to download

A plugin to automatically download individual selenium standalone binaries (e.g. chromedriver.exe) for your mavenised selenium project.

There is a newer version: 1.0.18
Show newest version
package com.lazerycode.selenium.repository;

import com.lazerycode.selenium.hash.HashType;
import com.lazerycode.selenium.hash.HashTypeAdaptor;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.net.URL;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class DriverDetails {

    @XmlElement(name = "filelocation")
    public URL fileLocation;

    @XmlElement()
    public String hash;

    @XmlElement(name = "hashtype")
    @XmlJavaTypeAdapter(HashTypeAdaptor.class)
    public HashType hashType;

    public String extractedLocation;

    @Override
    public int hashCode() {
        int result = fileLocation != null ? fileLocation.hashCode() : 0;
        result = 31 * result + (hash != null ? hash.hashCode() : 0);
        result = 31 * result + (hashType != null ? hashType.hashCode() : 0);
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy