pub struct AutomationSession { /* private fields */ }Implementations§
Source§impl AutomationSession
impl AutomationSession
pub fn new( application_id: impl Into<String>, bundle_identifier: impl Into<String>, ) -> Self
pub fn with_session_id( application_id: impl Into<String>, bundle_identifier: impl Into<String>, session_id: impl Into<String>, ) -> Self
pub fn with_page( application_id: impl Into<String>, bundle_identifier: impl Into<String>, session_id: impl Into<String>, page_id: u64, ) -> Self
pub fn session_id(&self) -> &str
pub fn bundle_identifier(&self) -> &str
pub fn page_id(&self) -> u64
pub fn set_implicit_wait_timeout(&mut self, timeout: Duration)
pub async fn attach<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, timeout_duration: Duration, ) -> Result<(), WebInspectorError>
pub async fn start_session<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, ) -> Result<String, WebInspectorError>
pub async fn stop_session<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, ) -> Result<(), WebInspectorError>
pub async fn go_back<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, ) -> Result<(), WebInspectorError>
pub async fn go_forward<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, ) -> Result<(), WebInspectorError>
pub async fn refresh<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, ) -> Result<(), WebInspectorError>
pub async fn current_url<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, ) -> Result<Option<String>, WebInspectorError>
pub async fn execute_script<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, script: &str, args: &[JsonValue], ) -> Result<JsonValue, WebInspectorError>
pub async fn evaluate_js_function<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, function: &str, args: &[JsonValue], implicit_callback: bool, ) -> Result<JsonValue, WebInspectorError>
pub async fn get_title<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, ) -> Result<String, WebInspectorError>
pub async fn get_page_source<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, ) -> Result<String, WebInspectorError>
pub async fn screenshot_base64<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, ) -> Result<String, WebInspectorError>
pub async fn find_element<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, by: By, value: &str, ) -> Result<Option<JsonValue>, WebInspectorError>
pub async fn find_elements<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, by: By, value: &str, single: bool, ) -> Result<Vec<JsonValue>, WebInspectorError>
pub async fn click_element<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, element: &JsonValue, ) -> Result<(), WebInspectorError>
pub async fn element_text<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, element: &JsonValue, ) -> Result<String, WebInspectorError>
pub async fn element_tag_name<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, element: &JsonValue, ) -> Result<String, WebInspectorError>
Trait Implementations§
Source§impl Clone for AutomationSession
impl Clone for AutomationSession
Source§fn clone(&self) -> AutomationSession
fn clone(&self) -> AutomationSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AutomationSession
impl RefUnwindSafe for AutomationSession
impl Send for AutomationSession
impl Sync for AutomationSession
impl Unpin for AutomationSession
impl UnsafeUnpin for AutomationSession
impl UnwindSafe for AutomationSession
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