Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
rename active_page to current_page for consistency
Nick Sweetingbeae1bff326b
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex eae809332..709a538a5 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -445,7 +445,7 @@ class Agent(Generic[Context]):try:state = await self.browser_context.get_state(cache_clickable_elements_hashes=True)- active_page = await self.browser_context.get_current_page()+ current_page = await self.browser_context.get_current_page()# generate procedural memory if neededif self.enable_memory and self.memory and self.state.n_steps % self.memory.config.memory_interval == 0:@@ -454,10 +454,10 @@ class Agent(Generic[Context]):await self._raise_if_stopped_or_paused()# Update action models with page-specific actions- await self._update_action_models_for_page(active_page)+ await self._update_action_models_for_page(current_page)# Get page-specific filtered actions- page_filtered_actions = self.controller.registry.get_prompt_description(active_page)+ page_filtered_actions = self.controller.registry.get_prompt_description(current_page)# If there are page-specific actions, add them as a special message for this step onlyif page_filtered_actions: