1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! Browser typing compatibility wrappers backed by the canonical human-typing
//! model in [`crate::human::typing`].
//!
//! Both entry points route through [`HumanTyper::type_text`] so there is a single
//! typing model in the codebase (G135).
use Page;
use crate;
/// Type text with human-like cadence via the canonical [`HumanTyper`].
///
/// # Example
///
/// ```rust,no_run
/// use guise::human::behavior::type_realistic;
/// # async fn example(page: &runtime_foxdriver::Page) -> anyhow::Result<()> {
/// type_realistic(page, "hello world").await?;
/// # Ok(()) }
/// ```
pub async
/// Type text with bigram-aware human keystroke timing.
///
/// This is now the same path as [`type_realistic`], both use the canonical
/// [`HumanTyper`] backed by [`crate::human::plan_keystrokes`]. The separate
/// name is retained for source compatibility with callers that explicitly
/// requested bigram-aware typing.
///
/// # Example
///
/// ```rust,no_run
/// use guise::human::behavior::type_human;
/// # async fn example(page: &runtime_foxdriver::Page) -> anyhow::Result<()> {
/// type_human(page, "the quick brown fox").await?;
/// # Ok(()) }
/// ```
pub async
/// Type text with an explicit WPM target.
///
/// Convenience wrapper that builds a [`TypingConfig`] and dispatches through
/// the canonical [`HumanTyper`].
///
/// # Example
///
/// ```rust,no_run
/// use guise::human::behavior::type_at_wpm;
/// # async fn example(page: &runtime_foxdriver::Page) -> anyhow::Result<()> {
/// type_at_wpm(page, "the quick brown fox", 45.0).await?;
/// # Ok(()) }
/// ```
pub async