pub enum TestStep {
Navigate {
url: String,
wait_after_ms: Option<u64>,
},
Click {
target: String,
selector: Option<String>,
wait_after_ms: Option<u64>,
endpoint: Option<String>,
},
Type {
target: String,
text: String,
selector: Option<String>,
wait_after_ms: Option<u64>,
endpoint: Option<String>,
},
Wait {
target: String,
selector: Option<String>,
timeout_ms: Option<u64>,
endpoint: Option<String>,
},
Assert {
definition: Option<String>,
preset: Option<String>,
prompt: Option<String>,
assert_text: Option<String>,
endpoint: Option<String>,
},
Screenshot {
path: Option<String>,
},
Agent {
agent: String,
task: String,
definition: Option<String>,
},
Mcp {
server: String,
tool: String,
args: Option<Value>,
},
}Expand description
A single step in a test. The kind field determines which variant is
deserialized and which field constraints apply.
Variants§
Navigate the browser to a URL.
Click
Click an element described in natural language.
Fields
Type
Type text into an input element.
Fields
Wait
Wait for an element to appear on the page.
Fields
Assert
Evaluate an assertion against the current page content.
Fields
Screenshot
Take a screenshot of the current page.
Agent
Call an A2A agent with a task.
Fields
Mcp
Call an MCP server tool.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestStep
impl<'de> Deserialize<'de> for TestStep
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TestStep
impl RefUnwindSafe for TestStep
impl Send for TestStep
impl Sync for TestStep
impl Unpin for TestStep
impl UnsafeUnpin for TestStep
impl UnwindSafe for TestStep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more