Example usage for org.openqa.selenium Cookie value

List of usage examples for org.openqa.selenium Cookie value

Introduction

In this page you can find the example usage for org.openqa.selenium Cookie value.

Prototype

String value

To view the source code for org.openqa.selenium Cookie value.

Click Source Link

Usage

From source file:org.eweb4j.spiderman.plugin.util.WebDriverDownloader.java

License:Apache License

public void addCookie(String key, String val, String host, String path) {
    Cookie c = new Cookie(key, val, host, path);
    //Cookie//w  ww. java  2s. c  o  m
    String name = c.name();
    String value = c.value();
    List<String> vals = this.cookies.get(name);
    if (vals == null)
        vals = new ArrayList<String>();
    vals.add(value);
    this.cookies.put(key, vals);
}