首页布局优化前

This commit is contained in:
iven
2026-03-17 23:26:16 +08:00
parent 74dbf42644
commit e262200f1e
89 changed files with 2266 additions and 2120 deletions

View File

@@ -324,10 +324,10 @@ impl BrowserClient {
let client = self.get_client(session_id).await?;
let locator = Locator::Css(selector);
// Use wait_for_find with proper API
// Use the new wait().for_element() API instead of deprecated wait_for_find
let element = tokio::time::timeout(
Duration::from_millis(timeout_ms),
client.wait_for_find(locator)
client.wait().for_element(locator)
)
.await
.map_err(|_| BrowserError::Timeout {