Skip to main content

Backend

Trait Backend 

Source
pub trait Backend {
    // Required methods
    fn find(&mut self, using: &str, value: &str) -> Result<String, String>;
    fn click(&mut self, id: &str) -> Result<(), String>;
    fn send_keys(&mut self, id: &str, text: &str) -> Result<(), String>;
    fn text(&mut self, id: &str) -> Result<String, String>;
    fn screenshot_png_b64(&mut self) -> Result<String, String>;
}

Required Methods§

Source

fn find(&mut self, using: &str, value: &str) -> Result<String, String>

Source

fn click(&mut self, id: &str) -> Result<(), String>

Source

fn send_keys(&mut self, id: &str, text: &str) -> Result<(), String>

Source

fn text(&mut self, id: &str) -> Result<String, String>

Source

fn screenshot_png_b64(&mut self) -> Result<String, String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§