use super::ZapApiError;
use super::ZapService;
use serde_json::Value;
use std::collections::HashMap;
pub fn option_chrome_driver_path(service: &ZapService) -> Result<Value, ZapApiError> {
let params = HashMap::new();
super::call(
service,
"selenium",
"view",
"optionChromeDriverPath",
params,
)
}
pub fn option_firefox_binary_path(service: &ZapService) -> Result<Value, ZapApiError> {
let params = HashMap::new();
super::call(
service,
"selenium",
"view",
"optionFirefoxBinaryPath",
params,
)
}
pub fn option_firefox_driver_path(service: &ZapService) -> Result<Value, ZapApiError> {
let params = HashMap::new();
super::call(
service,
"selenium",
"view",
"optionFirefoxDriverPath",
params,
)
}
pub fn option_ie_driver_path(service: &ZapService) -> Result<Value, ZapApiError> {
let params = HashMap::new();
super::call(service, "selenium", "view", "optionIeDriverPath", params)
}
pub fn option_phantom_js_binary_path(service: &ZapService) -> Result<Value, ZapApiError> {
let params = HashMap::new();
super::call(
service,
"selenium",
"view",
"optionPhantomJsBinaryPath",
params,
)
}
pub fn set_option_chrome_driver_path(
service: &ZapService,
string: String,
) -> Result<Value, ZapApiError> {
let mut params = HashMap::new();
params.insert("String".to_string(), string);
super::call(
service,
"selenium",
"action",
"setOptionChromeDriverPath",
params,
)
}
pub fn set_option_firefox_binary_path(
service: &ZapService,
string: String,
) -> Result<Value, ZapApiError> {
let mut params = HashMap::new();
params.insert("String".to_string(), string);
super::call(
service,
"selenium",
"action",
"setOptionFirefoxBinaryPath",
params,
)
}
pub fn set_option_firefox_driver_path(
service: &ZapService,
string: String,
) -> Result<Value, ZapApiError> {
let mut params = HashMap::new();
params.insert("String".to_string(), string);
super::call(
service,
"selenium",
"action",
"setOptionFirefoxDriverPath",
params,
)
}
pub fn set_option_ie_driver_path(
service: &ZapService,
string: String,
) -> Result<Value, ZapApiError> {
let mut params = HashMap::new();
params.insert("String".to_string(), string);
super::call(
service,
"selenium",
"action",
"setOptionIeDriverPath",
params,
)
}
pub fn set_option_phantom_js_binary_path(
service: &ZapService,
string: String,
) -> Result<Value, ZapApiError> {
let mut params = HashMap::new();
params.insert("String".to_string(), string);
super::call(
service,
"selenium",
"action",
"setOptionPhantomJsBinaryPath",
params,
)
}