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

com.applitools.eyes.serializers.BySerializer Maven / Gradle / Ivy

There is a newer version: 5.63.43
Show newest version
package com.applitools.eyes.serializers;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
import org.openqa.selenium.By;

import java.io.IOException;

public class BySerializer extends StdSerializer {
    public BySerializer() {
        this(null);
    }

    protected BySerializer(Class t) {
        super(t);
    }

    @Override
    public void serialize(By value, JsonGenerator gen, SerializerProvider provider) throws IOException {
        gen.writeString(value.toString());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy