[−][src]Struct thirtyfour_sync::WebDriverSession
Implementations
impl WebDriverSession
[src]
pub fn new(
session_id: SessionId,
conn: Arc<dyn WebDriverHttpClientSync>
) -> Self
[src]
session_id: SessionId,
conn: Arc<dyn WebDriverHttpClientSync>
) -> Self
pub fn session_id(&self) -> &SessionId
[src]
pub fn config(&self) -> &WebDriverConfig
[src]
pub fn config_mut(&mut self) -> &mut WebDriverConfig
[src]
pub fn execute(&self, command: Command<'_>) -> WebDriverResult<Value>
[src]
Trait Implementations
impl Debug for WebDriverSession
[src]
impl WebDriverCommands for WebDriverSession
[src]
fn session(&self) -> &WebDriverSession
[src]
fn cmd(&self, command: Command<'_>) -> WebDriverResult<Value>
[src]
fn close(&self) -> WebDriverResult<()>
[src]
fn get<S: Into<String>>(&self, url: S) -> WebDriverResult<()>
[src]
fn current_url(&self) -> WebDriverResult<String>
[src]
fn page_source(&self) -> WebDriverResult<String>
[src]
fn title(&self) -> WebDriverResult<String>
[src]
fn find_element(&self, by: By<'_>) -> WebDriverResult<WebElement<'_>>
[src]
fn find_elements(&self, by: By<'_>) -> WebDriverResult<Vec<WebElement<'_>>>
[src]
fn execute_script(&self, script: &str) -> WebDriverResult<ScriptRetSync<'_>>
[src]
fn execute_script_with_args(
&self,
script: &str,
args: &ScriptArgs
) -> WebDriverResult<ScriptRetSync<'_>>
[src]
&self,
script: &str,
args: &ScriptArgs
) -> WebDriverResult<ScriptRetSync<'_>>
fn execute_async_script(
&self,
script: &str
) -> WebDriverResult<ScriptRetSync<'_>>
[src]
&self,
script: &str
) -> WebDriverResult<ScriptRetSync<'_>>
fn execute_async_script_with_args(
&self,
script: &str,
args: &ScriptArgs
) -> WebDriverResult<ScriptRetSync<'_>>
[src]
&self,
script: &str,
args: &ScriptArgs
) -> WebDriverResult<ScriptRetSync<'_>>
fn current_window_handle(&self) -> WebDriverResult<WindowHandle>
[src]
fn window_handles(&self) -> WebDriverResult<Vec<WindowHandle>>
[src]
fn maximize_window(&self) -> WebDriverResult<()>
[src]
fn minimize_window(&self) -> WebDriverResult<()>
[src]
fn fullscreen_window(&self) -> WebDriverResult<()>
[src]
fn get_window_rect(&self) -> WebDriverResult<Rect>
[src]
fn set_window_rect(&self, rect: OptionRect) -> WebDriverResult<()>
[src]
fn back(&self) -> WebDriverResult<()>
[src]
fn forward(&self) -> WebDriverResult<()>
[src]
fn refresh(&self) -> WebDriverResult<()>
[src]
fn get_timeouts(&self) -> WebDriverResult<TimeoutConfiguration>
[src]
fn set_timeouts(&self, timeouts: TimeoutConfiguration) -> WebDriverResult<()>
[src]
fn set_implicit_wait_timeout(
&self,
time_to_wait: Duration
) -> WebDriverResult<()>
[src]
&self,
time_to_wait: Duration
) -> WebDriverResult<()>
fn set_script_timeout(&self, time_to_wait: Duration) -> WebDriverResult<()>
[src]
fn set_page_load_timeout(&self, time_to_wait: Duration) -> WebDriverResult<()>
[src]
fn action_chain(&self) -> ActionChain<'_>
[src]
fn get_cookies(&self) -> WebDriverResult<Vec<Cookie>>
[src]
fn get_cookie(&self, name: &str) -> WebDriverResult<Cookie>
[src]
fn delete_cookie(&self, name: &str) -> WebDriverResult<()>
[src]
fn delete_all_cookies(&self) -> WebDriverResult<()>
[src]
fn add_cookie(&self, cookie: Cookie) -> WebDriverResult<()>
[src]
fn screenshot_as_base64(&self) -> WebDriverResult<String>
[src]
fn screenshot_as_png(&self) -> WebDriverResult<Vec<u8>>
[src]
fn screenshot(&self, path: &Path) -> WebDriverResult<()>
[src]
fn switch_to(&self) -> SwitchTo<'_>
[src]
fn set_window_name(&self, window_name: &str) -> WebDriverResult<()>
[src]
fn extension_command<T: ExtensionCommand + Send>(
&self,
ext_cmd: T
) -> WebDriverResult<Value>
[src]
&self,
ext_cmd: T
) -> WebDriverResult<Value>
Auto Trait Implementations
impl !RefUnwindSafe for WebDriverSession
impl Send for WebDriverSession
impl Sync for WebDriverSession
impl Unpin for WebDriverSession
impl !UnwindSafe for WebDriverSession
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,