v1.99.30
Whats Changed
- feat Web automation steps by target url or path.
- add internal ViewPort for chrome handling.
- add partial eq configuration
let mut automation_scripts = HashMap::new();
automation_scripts.insert(
"/en/blog".into(),
Vec::from([
WebAutomation::Evaluate(r#"document.body.style.background = "blue";"#.into()),
WebAutomation::ScrollY(2000),
WebAutomation::Click("article a".into()),
WebAutomation::Wait(5000),
WebAutomation::Screenshot {
output: "example.png".into(),
full_page: true,
omit_background: true,
},
]),
);
let mut website: Website = Website::new("https://rsseau.fr/en/blog")
.with_chrome_intercept(true, true)
.with_wait_for_idle_network(Some(WaitForIdleNetwork::new(Some(Duration::from_secs(30)))))
.with_caching(cfg!(feature = "cache"))
.with_limit(1)
.with_automation_scripts(Some(automation_scripts))
.build()
.unwrap();web-automation-chrome.mov
Full Changelog: v1.99.21...v1.99.30