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

com.saucelabs.saucebindings.TimeoutStore Maven / Gradle / Ivy

The newest version!
package com.saucelabs.saucebindings;

import java.util.HashMap;
import java.util.Map;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Accessors(chain = true)
@Setter
@Getter
public class TimeoutStore {
  private Integer implicitWait;
  private Integer script;
  private Integer pageLoad;

  public Map getTimeouts() {
    HashMap map = new HashMap<>();
    if (implicitWait != null) {
      map.put(Timeouts.IMPLICIT, implicitWait);
    }
    if (script != null) {
      map.put(Timeouts.SCRIPT, script);
    }
    if (pageLoad != null) {
      map.put(Timeouts.PAGE_LOAD, pageLoad);
    }
    return map;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy