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

com.applitools.eyes.serializers.WebElementSerializer 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.WebElement;

import java.io.IOException;

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy