Skip to content

Commit 3af6641

Browse files
authored
Den 215 new_page param not working (#33)
1 parent 2bca92d commit 3af6641

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dendrite_sdk/_core/_base_browser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,14 @@ async def goto(
184184
except Exception as e:
185185
logger.debug(f"Exception when loading page but continuing anyways. {e}")
186186

187-
page = await active_page_manager.get_active_page()
188187
if expected_page != "":
189188
try:
190189
prompt = f"We are checking if we have arrived on the expected type of page. If it is apparent that we have arrived on the wrong page, output an error. Here is the description: '{expected_page}'"
191-
await page.ask(prompt, bool)
190+
await active_page.ask(prompt, bool)
192191
except Exception as e:
193192
raise Exception(f"Incorrect navigation, reason: {e}")
194193

195-
return page
194+
return active_page
196195

197196
async def _launch(self):
198197
"""

0 commit comments

Comments
 (0)