com.saucelabs.saucebindings.TimeoutStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sauce_bindings Show documentation
Show all versions of sauce_bindings Show documentation
Java library which provides tools for interacting with Sauce Labs
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;
}
}