diff options
Diffstat (limited to 'src/browser/mod.rs')
-rw-r--r-- | src/browser/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/browser/mod.rs b/src/browser/mod.rs index 4c7ef8e..528849d 100644 --- a/src/browser/mod.rs +++ b/src/browser/mod.rs @@ -72,3 +72,13 @@ pub async unsafe fn get_timetable() -> WebDriverResult<Option<HashMap<String, St Ok(None) } + +pub async unsafe fn select_table_row(index: &str) -> WebDriverResult<bool> { + if let Some(driver) = &WEB_BROWSER { + let result = driver.select_timetable_row(index).await?; + + return Ok(result); + } + + Ok(false) +} |