rustenium 1.1.9

A modern, robust, high-performance WebDriver BiDi automation library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use rustenium_cdp_definitions::browser_protocol::target::types::TargetId;
use crate::domain::cdp::page::Page;

pub struct ChromeTab {
    target_id: TargetId,
}

impl ChromeTab {
    pub fn new(target_id: TargetId) -> Self {
        Self { target_id }
    }
}

impl Page for ChromeTab {
    fn target_id(&self) -> &TargetId {
        &self.target_id
    }
}