首页布局优化前
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user