seleniumbase 4.54.3__tar.gz → 4.54.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. {seleniumbase-4.54.3/seleniumbase.egg-info → seleniumbase-4.54.4}/PKG-INFO +1 -1
  2. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/mcp_servers/server.py +83 -62
  3. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/__version__.py +1 -1
  4. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/sb_cdp.py +9 -5
  5. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/base_case.py +4 -2
  6. {seleniumbase-4.54.3 → seleniumbase-4.54.4/seleniumbase.egg-info}/PKG-INFO +1 -1
  7. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/.gitignore +0 -0
  8. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/LICENSE +0 -0
  9. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/MANIFEST.in +0 -0
  10. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/README.md +0 -0
  11. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/install.sh +0 -0
  12. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/mcp_servers/__init__.py +0 -0
  13. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/pyproject.toml +0 -0
  14. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/pytest.ini +0 -0
  15. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/requirements.txt +0 -0
  16. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/sbase/__init__.py +0 -0
  17. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/sbase/__main__.py +0 -0
  18. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/sbase/steps.py +0 -0
  19. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/__init__.py +0 -0
  20. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/__main__.py +0 -0
  21. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/behave/__init__.py +0 -0
  22. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/behave/behave_helper.py +0 -0
  23. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/behave/behave_sb.py +0 -0
  24. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/behave/steps.py +0 -0
  25. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/common/__init__.py +0 -0
  26. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/common/decorators.py +0 -0
  27. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/common/encryption.py +0 -0
  28. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/common/exceptions.py +0 -0
  29. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/common/obfuscate.py +0 -0
  30. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/common/unobfuscate.py +0 -0
  31. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/config/__init__.py +0 -0
  32. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/config/ad_block_list.py +0 -0
  33. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/config/proxy_list.py +0 -0
  34. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/config/settings.py +0 -0
  35. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/__init__.py +0 -0
  36. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/logo_helper.py +0 -0
  37. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/rich_helper.py +0 -0
  38. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/run.py +0 -0
  39. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_behave_gui.py +0 -0
  40. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_caseplans.py +0 -0
  41. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_commander.py +0 -0
  42. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_install.py +0 -0
  43. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_mkchart.py +0 -0
  44. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_mkdir.py +0 -0
  45. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_mkfile.py +0 -0
  46. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_mkpres.py +0 -0
  47. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_mkrec.py +0 -0
  48. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_objectify.py +0 -0
  49. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_print.py +0 -0
  50. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/console_scripts/sb_recorder.py +0 -0
  51. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/__init__.py +0 -0
  52. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/application_manager.py +0 -0
  53. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/browser_launcher.py +0 -0
  54. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/capabilities_parser.py +0 -0
  55. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/colored_traceback.py +0 -0
  56. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/create_db_tables.sql +0 -0
  57. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/detect_b_ver.py +0 -0
  58. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/download_helper.py +0 -0
  59. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/encoded_images.py +0 -0
  60. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/jqc_helper.py +0 -0
  61. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/log_helper.py +0 -0
  62. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/mysql.py +0 -0
  63. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/nest_asyncio.py +0 -0
  64. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/proxy_helper.py +0 -0
  65. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/recorder_helper.py +0 -0
  66. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/report_helper.py +0 -0
  67. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/s3_manager.py +0 -0
  68. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/sb_driver.py +0 -0
  69. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/session_helper.py +0 -0
  70. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/settings_parser.py +0 -0
  71. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/style_sheet.py +0 -0
  72. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/testcase_manager.py +0 -0
  73. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/tour_helper.py +0 -0
  74. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/core/visual_helper.py +0 -0
  75. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/drivers/__init__.py +0 -0
  76. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/drivers/brave_drivers/__init__.py +0 -0
  77. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/drivers/cft_drivers/__init__.py +0 -0
  78. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/drivers/chromium_drivers/__init__.py +0 -0
  79. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/drivers/chs_drivers/__init__.py +0 -0
  80. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/drivers/comet_drivers/__init__.py +0 -0
  81. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/drivers/opera_drivers/__init__.py +0 -0
  82. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/extensions/__init__.py +0 -0
  83. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/extensions/ad_block.zip +0 -0
  84. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/extensions/disable_csp.zip +0 -0
  85. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/extensions/recorder.zip +0 -0
  86. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/extensions/sbase_ext.zip +0 -0
  87. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/__init__.py +0 -0
  88. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/constants.py +0 -0
  89. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/css_to_xpath.py +0 -0
  90. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/errors.py +0 -0
  91. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/js_utils.py +0 -0
  92. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/page_actions.py +0 -0
  93. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/page_utils.py +0 -0
  94. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/shared_utils.py +0 -0
  95. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/unittest_helper.py +0 -0
  96. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/words.py +0 -0
  97. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/fixtures/xpath_to_css.py +0 -0
  98. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/js_code/__init__.py +0 -0
  99. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/js_code/active_css_js.py +0 -0
  100. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/js_code/live_js.py +0 -0
  101. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/js_code/recorder_js.py +0 -0
  102. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/masterqa/__init__.py +0 -0
  103. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/masterqa/master_qa.py +0 -0
  104. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/__init__.py +0 -0
  105. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/base_plugin.py +0 -0
  106. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/basic_test_info.py +0 -0
  107. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/db_reporting_plugin.py +0 -0
  108. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/driver_manager.py +0 -0
  109. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/page_source.py +0 -0
  110. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/pytest_plugin.py +0 -0
  111. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/s3_logging_plugin.py +0 -0
  112. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/sb_manager.py +0 -0
  113. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/screen_shots.py +0 -0
  114. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/plugins/selenium_plugin.py +0 -0
  115. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/resources/__init__.py +0 -0
  116. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/__init__.py +0 -0
  117. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/chinese.py +0 -0
  118. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/dutch.py +0 -0
  119. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/french.py +0 -0
  120. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/italian.py +0 -0
  121. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/japanese.py +0 -0
  122. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/korean.py +0 -0
  123. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/master_dict.py +0 -0
  124. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/portuguese.py +0 -0
  125. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/russian.py +0 -0
  126. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/spanish.py +0 -0
  127. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/translate/translator.py +0 -0
  128. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/__init__.py +0 -0
  129. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/cdp.py +0 -0
  130. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/cdp_driver/__init__.py +0 -0
  131. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/cdp_driver/_contradict.py +0 -0
  132. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/cdp_driver/browser.py +0 -0
  133. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/cdp_driver/cdp_util.py +0 -0
  134. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/cdp_driver/config.py +0 -0
  135. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/cdp_driver/connection.py +0 -0
  136. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/cdp_driver/element.py +0 -0
  137. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/cdp_driver/tab.py +0 -0
  138. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/dprocess.py +0 -0
  139. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/options.py +0 -0
  140. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/patcher.py +0 -0
  141. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/reactor.py +0 -0
  142. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/undetected/webelement.py +0 -0
  143. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/__init__.py +0 -0
  144. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/__init__.py +0 -0
  145. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/download_selenium_server.py +0 -0
  146. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/font_color +0 -0
  147. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/grid-hub +0 -0
  148. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/grid-node +0 -0
  149. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/grid_hub.py +0 -0
  150. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/grid_node.py +0 -0
  151. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/register-grid-node.bat +0 -0
  152. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/register-grid-node.sh +0 -0
  153. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/start-grid-hub.bat +0 -0
  154. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_grid/start-grid-hub.sh +0 -0
  155. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_ide/__init__.py +0 -0
  156. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase/utilities/selenium_ide/convert_ide.py +0 -0
  157. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase.egg-info/SOURCES.txt +0 -0
  158. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase.egg-info/dependency_links.txt +0 -0
  159. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase.egg-info/entry_points.txt +0 -0
  160. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase.egg-info/requires.txt +0 -0
  161. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/seleniumbase.egg-info/top_level.txt +0 -0
  162. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/setup.cfg +0 -0
  163. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/setup.py +0 -0
  164. {seleniumbase-4.54.3 → seleniumbase-4.54.4}/virtualenv_install.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seleniumbase
3
- Version: 4.54.3
3
+ Version: 4.54.4
4
4
  Summary: SeleniumBase is a framework for web crawling, scraping, and testing. Supports pytest. CDP Mode adds stealth. Includes many tools.
5
5
  Home-page: https://github.com/seleniumbase/SeleniumBase
6
6
  Author: Michael Mintz
@@ -34,14 +34,15 @@ having to choose between multiple near-identical tools.
34
34
 
35
35
  Tool-selection philosophy:
36
36
  - Use 'start_browser'/'close_browser' for opening/quitting the web browser.
37
- - Use 'goto_url'/'manage_history' for browser navigation and history
37
+ - Use 'open_url'/'manage_history' for browser navigation and history
38
38
  inspection.
39
39
  - Use 'get_page_info' for reading browser/page metadata such as URL/title.
40
40
  - Use 'get_content'/'get_attributes' for reading text, HTML, or attributes.
41
41
  - Use 'find_elements' for discovering and inspecting multiple matching
42
42
  elements as structured data.
43
- - Use 'check_condition' for an immediate, non-waiting state check.
44
- - Use 'wait_for' when the agent needs to wait for a condition to become true.
43
+ - Use 'check_if_condition' for an immediate, non-waiting state check.
44
+ - Use 'wait_for_condition' when the agent needs to wait for a condition
45
+ to become true.
45
46
  - Use 'assert_condition' when the agent needs to verify an expected condition
46
47
  and treat failure as an assertion error.
47
48
  - Use 'click_element'/'type_text'/'select_option' for standard page
@@ -111,7 +112,7 @@ def start_browser(
111
112
  ) -> str:
112
113
  """Launch a persistent SeleniumBase Pure CDP Mode browser session.
113
114
 
114
- Call this before using browser interaction tools such as goto_url,
115
+ Call this before using browser interaction tools such as open_url,
115
116
  get_content, click_element, type_text, or find_elements. The same browser
116
117
  session remains active across subsequent MCP tool calls until
117
118
  close_browser is called or the server process exits.
@@ -303,8 +304,8 @@ def get_page_info() -> dict[str, Any]:
303
304
  - Need URL, title, origin, or User-Agent -> use get_page_info.
304
305
  - Need visible page text or HTML -> use get_content.
305
306
  - Need information about matching elements -> use find_elements.
306
- - Need an immediate state check -> use check_condition.
307
- - Need to wait for a condition -> use wait_for.
307
+ - Need an immediate state check -> use check_if_condition.
308
+ - Need to wait for a condition -> use wait_for_condition.
308
309
  - Need to verify an expected condition -> use assert_condition.
309
310
 
310
311
  Unlike a dedicated browser-status tool, get_page_info is the single
@@ -338,8 +339,8 @@ def get_page_info() -> dict[str, Any]:
338
339
 
339
340
  @mcp.tool()
340
341
  @handle_sb_errors
341
- def goto_url(url: str) -> str:
342
- """Navigate the current browser tab to a URL.
342
+ def open_url(url: str) -> str:
343
+ """Navigate the current browser tab to the URL provided.
343
344
 
344
345
  Use this when the browser needs to visit a new URL rather than move
345
346
  through its existing back/forward history.
@@ -350,17 +351,18 @@ def goto_url(url: str) -> str:
350
351
 
351
352
  Navigation waits for the browser's navigation operation to complete
352
353
  before returning. Dynamic content may still be loading;
353
- use wait_for when synchronization is required.
354
+ use wait_for_condition when synchronization is required.
355
+ If there's an error, that gets propagated through @handle_sb_errors.
354
356
 
355
357
  Args:
356
- url: Destination URL. May be a complete URL such as
357
- "https://example.com" or a hostname such as "example.com".
358
+ url: The destination URL. May be a complete URL such as
359
+ "https://example.com", or a hostname such as "example.com".
358
360
 
359
361
  Returns:
360
- A confirmation message containing the requested URL.
362
+ A confirmation message containing the requested URL if successful.
361
363
 
362
364
  Tool selection:
363
- - Go to a new URL -> use goto_url.
365
+ - Navigate to a new URL -> use open_url.
364
366
  - Return to the previous page -> use manage_history(action="back").
365
367
  - Go forward in history -> use manage_history(action="forward").
366
368
  - Refresh the current page -> use manage_history(action="reload").
@@ -379,7 +381,7 @@ def manage_history(
379
381
 
380
382
  Use 'back' or 'forward' for history navigation, 'reload' to refresh
381
383
  while bypassing the cache, or 'list' to inspect history.
382
- Use 'goto_url' for navigation to an arbitrary URL.
384
+ Use 'open_url' for navigation to an arbitrary URL.
383
385
 
384
386
  Args:
385
387
  action:
@@ -477,7 +479,7 @@ def find_elements(
477
479
  use get_content.
478
480
  - Need to click one of several matches -> use click_element with nth.
479
481
  - Need to know whether an element is present/visible ->
480
- use check_condition.
482
+ use check_if_condition.
481
483
 
482
484
  Notes:
483
485
  Element handles cannot be persisted across MCP calls. If you find
@@ -542,8 +544,8 @@ def get_content(
542
544
  - Need visible text, html, or URLs on a page -> use get_content.
543
545
  - Need structured information about matching elements ->
544
546
  use find_elements.
545
- - Need to check element presence/visibility -> use check_condition.
546
- - Need to wait for content to appear -> use wait_for.
547
+ - Need to check element presence/visibility -> use check_if_condition.
548
+ - Need to wait for content to appear -> use wait_for_condition.
547
549
 
548
550
  If there's no matching element found within the timeout,
549
551
  then @handle_sb_errors returns details from the exception raised.
@@ -592,7 +594,8 @@ def get_attributes(
592
594
  - Need to discover multiple matching elements or inspect their text ->
593
595
  use 'find_elements'.
594
596
  - Need visible text or HTML content -> use 'get_content'.
595
- - Need to check element presence/visibility -> use 'check_condition'.
597
+ - Need to check element presence/visibility ->
598
+ use 'check_if_condition'.
596
599
 
597
600
  This is a read-only operation.
598
601
 
@@ -609,7 +612,7 @@ def get_attributes(
609
612
 
610
613
  @mcp.tool()
611
614
  @handle_sb_errors
612
- def check_condition(
615
+ def check_if_condition(
613
616
  check: Literal["present", "visible"] = "visible",
614
617
  selector: str = "body",
615
618
  text: str | None = None,
@@ -618,9 +621,10 @@ def check_condition(
618
621
  for the condition to become true.
619
622
 
620
623
  Use this tool when you need an immediate boolean observation of the current
621
- page state. Use wait_for when the condition may become true later and the
622
- workflow should wait for it. Use assert_condition when the condition is an
623
- expected requirement and failure should be treated as an assertion error.
624
+ page state. Use wait_for_condition when the condition may become true later
625
+ and the workflow should wait for it. Use assert_condition when the
626
+ condition is an expected requirement and failure should be treated as an
627
+ assertion error.
624
628
 
625
629
  Args:
626
630
  check:
@@ -645,8 +649,8 @@ def check_condition(
645
649
  exception. If there's an error, returns a string with error details.
646
650
 
647
651
  Tool selection:
648
- - Immediate boolean observation -> use check_condition.
649
- - Wait for a state/content transition -> use wait_for.
652
+ - Immediate boolean observation -> use check_if_condition.
653
+ - Wait for a state/content transition -> use wait_for_condition.
650
654
  - Verify an expected condition -> use assert_condition.
651
655
  - Need element details of matching elements -> use find_elements.
652
656
  - Need to read page or element content -> use get_content.
@@ -654,7 +658,7 @@ def check_condition(
654
658
  Notes:
655
659
  This tool does not intentionally wait for elements or text to appear.
656
660
  It is intended for checking the current state only. If page timing or
657
- asynchronous loading matters, use wait_for instead.
661
+ asynchronous loading matters, use wait_for_condition instead.
658
662
 
659
663
  When `text` is provided, `check` is ignored.
660
664
  """
@@ -709,7 +713,7 @@ def click_element(
709
713
  clicks; do not use them with `all_matches=True`.
710
714
 
711
715
  nth: 1-based occurrence to click when multiple elements match.
712
- Must be >= 1. Takes precedence over `all_matches`,
716
+ Must be >= 1 if provided. Takes precedence over `all_matches`,
713
717
  `only_if_visible`, and `parent_selector`.
714
718
 
715
719
  all_matches: If True, click every currently visible matching element
@@ -744,7 +748,7 @@ def click_element(
744
748
  """
745
749
  sb = _get_sb()
746
750
 
747
- if nth is not None:
751
+ if nth:
748
752
  if nth < 1:
749
753
  return "Error: nth must be >= 1."
750
754
  sb.click_nth_element(selector, nth, scroll=scroll)
@@ -769,9 +773,10 @@ def click_element(
769
773
  @mcp.tool()
770
774
  @handle_sb_errors
771
775
  def hover_action(
772
- selector1: str,
773
- selector2: str | None = None,
776
+ selector: str,
777
+ secondary_selector: str | None = None,
774
778
  action: Literal["hover", "hover_and_click", "drag_and_drop"] = "hover",
779
+ timeout: float = 5,
775
780
  ) -> str:
776
781
  """Hover over an element, optionally click another, or drag-and-drop.
777
782
 
@@ -779,51 +784,67 @@ def hover_action(
779
784
  drag-and-drop operations.
780
785
 
781
786
  Args:
782
- selector1:
787
+ selector:
783
788
  The primary element selector.
784
789
  For action="hover", this is the element to hover over.
785
790
  For action="hover_and_click", this is the element to hover over
786
- before clicking selector2.
791
+ before clicking 'secondary_selector'.
787
792
  For action="drag_and_drop", this is the draggable source element.
788
793
 
789
- selector2:
794
+ secondary_selector:
790
795
  The secondary element selector.
791
796
  Required for action="hover_and_click", where it identifies
792
- the element revealed or targeted after hovering selector1.
797
+ the element to click after hovering 'selector'.
793
798
  Required for action="drag_and_drop", where it identifies the
794
799
  destination/drop target.
795
800
  Not used for action="hover".
796
801
 
797
802
  action:
798
- - "hover": Hover over selector1 only.
799
- - "hover_and_click": Hover over selector1, then click selector2.
800
- - "drag_and_drop": Drag selector1 and drop it onto selector2.
803
+ - "hover": Hover over 'selector' only.
804
+ - "hover_and_click": Hover over 'selector', then click
805
+ 'secondary_selector' after a short moment has passed.
806
+ - "drag_and_drop": Drag 'selector' and drop it onto
807
+ 'secondary_selector'.
808
+
809
+ timeout: Maximum seconds to wait for 'selector'.
810
+ For drag_and_drop, the same timeout applies to secondary_selector.
811
+ For hover_and_click, SeleniumBase uses its own short wait for
812
+ secondary_selector; this parameter does not extend that secondary
813
+ wait.
801
814
 
802
815
  Returns:
803
- A confirmation message describing the performed operation.
816
+ A confirmation message describing the performed operation's result.
817
+
818
+ Errors:
819
+ If a required element cannot be found or interacted with within the
820
+ applicable wait period, or if an error occurs during the action, the
821
+ resulting exception message is returned through @handle_sb_errors.
804
822
 
805
- Tool selection:
806
- - Simple hover -> action="hover".
807
- - Hover over one element and click another -> action="hover_and_click".
808
- - Drag one element onto another -> action="drag_and_drop".
809
823
  """
810
824
  sb = _get_sb()
811
825
 
826
+ if timeout < 0:
827
+ return "Error: timeout must be >= 0."
828
+
812
829
  if action == "hover":
813
- sb.hover_element(selector1)
814
- return f"Hovered {selector1}"
830
+ sb.hover_element(selector, timeout=timeout)
831
+ return f"Hovered {selector}"
815
832
 
816
833
  if action == "hover_and_click":
817
- if selector2 is None:
818
- return "Error: action='click' requires selector2."
819
- sb.hover_and_click(selector1, selector2)
820
- return f"Hovered {selector1} and clicked {selector2}"
834
+ if not secondary_selector:
835
+ return (
836
+ "Error: action='hover_and_click' requires secondary_selector."
837
+ )
838
+ sb.hover_and_click(selector, secondary_selector, timeout=timeout)
839
+ return f"Hovered {selector} and clicked {secondary_selector}"
821
840
 
822
841
  if action == "drag_and_drop":
823
- if selector2 is None:
824
- return "Error: action='drag_and_drop' requires selector2."
825
- sb.drag_and_drop(selector1, selector2)
826
- return f"Dragged {selector1} onto {selector2}"
842
+ if not secondary_selector:
843
+ return (
844
+ "Error: action='drag_and_drop' requires secondary_selector."
845
+ )
846
+ sb.drag_and_drop(selector, secondary_selector, timeout=timeout)
847
+ return f"Dragged {selector} onto {secondary_selector}"
827
848
 
828
849
  return (
829
850
  f"Error: unknown action '{action}'. "
@@ -998,7 +1019,7 @@ def focus_element(
998
1019
 
999
1020
  @mcp.tool()
1000
1021
  @handle_sb_errors
1001
- def wait_for(
1022
+ def wait_for_condition(
1002
1023
  state: Literal[
1003
1024
  "present",
1004
1025
  "visible",
@@ -1017,7 +1038,7 @@ def wait_for(
1017
1038
  condition is met or the timeout expires. It does not intentionally scroll,
1018
1039
  click, or otherwise modify the page while waiting.
1019
1040
 
1020
- Use check_condition to inspect the current state without waiting.
1041
+ Use check_if_condition to inspect the current state without waiting.
1021
1042
  Use assert_condition to verify an expected condition rather than
1022
1043
  synchronize with a changing page.
1023
1044
 
@@ -1056,8 +1077,8 @@ def wait_for(
1056
1077
  the tool returns the error produced by its error handler.
1057
1078
 
1058
1079
  Tool selection:
1059
- - Inspect current state immediately -> check_condition.
1060
- - Wait for a state change -> wait_for.
1080
+ - Inspect current state immediately -> check_if_condition.
1081
+ - Wait for a state change -> wait_for_condition.
1061
1082
  - Verify an expectation -> assert_condition.
1062
1083
  """
1063
1084
  sb = _get_sb()
@@ -1132,10 +1153,10 @@ def assert_condition(
1132
1153
  handled by `handle_sb_errors` and returned as a descriptive tool error;
1133
1154
  it is not reported as a successful result.
1134
1155
 
1135
- Unlike check_condition, this tool does not merely return whether a
1156
+ Unlike check_if_condition, this tool does not merely return whether a
1136
1157
  condition is true: a failed expectation is an error.
1137
- Unlike wait_for, its purpose is to verify an expectation, not merely
1138
- synchronize with a changing page.
1158
+ Unlike wait_for_condition, its purpose is to verify an expectation,
1159
+ not merely synchronize with a changing page.
1139
1160
 
1140
1161
  Args:
1141
1162
  check:
@@ -1169,8 +1190,8 @@ def assert_condition(
1169
1190
  instead of a success message.
1170
1191
 
1171
1192
  Tool selection:
1172
- - Inspect a condition without failing -> check_condition.
1173
- - Wait for a condition to become true -> wait_for.
1193
+ - Inspect a condition without failing -> check_if_condition.
1194
+ - Wait for a condition to become true -> wait_for_condition.
1174
1195
  - Verify that an expected condition is true -> assert_condition.
1175
1196
  """
1176
1197
  sb = _get_sb()
@@ -1499,7 +1520,7 @@ def manage_tabs(
1499
1520
  """Manage browser tabs, including opening new ones.
1500
1521
 
1501
1522
  Use this for listing, opening, switching, or closing tabs.
1502
- Use `goto_url` and `manage_history` for navigation within the active tab.
1523
+ Use `open_url` and `manage_history` for navigation within the active tab.
1503
1524
 
1504
1525
  Args:
1505
1526
  action:
@@ -1596,7 +1617,7 @@ def solve_captcha() -> str:
1596
1617
  1. Inspect the webpage with get_content when you need to
1597
1618
  determine whether CAPTCHA-related controls are present.
1598
1619
  2. Call solve_captcha to attempt the CAPTCHA interaction.
1599
- 3. Use get_page_info, get_content, check_condition,
1620
+ 3. Use get_page_info, get_content, check_if_condition,
1600
1621
  or manage_cookies to inspect resulting page/session state.
1601
1622
 
1602
1623
  Returns:
@@ -1,2 +1,2 @@
1
1
  # seleniumbase package
2
- __version__ = "4.54.3"
2
+ __version__ = "4.54.4"
@@ -3034,8 +3034,10 @@ class CDPMethods():
3034
3034
  self.__slow_mode_pause_if_set()
3035
3035
  self.loop.run_until_complete(self.page.wait(0.1))
3036
3036
 
3037
- def hover_element(self, selector, timeframe=0.27):
3038
- element = self.select(selector)
3037
+ def hover_element(self, selector, timeframe=0.27, timeout=None):
3038
+ if not timeout:
3039
+ timeout = settings.SMALL_TIMEOUT
3040
+ element = self.select(selector, timeout=timeout)
3039
3041
  gui_lock = FileLock(constants.MultiBrowser.PYAUTOGUILOCK)
3040
3042
  with gui_lock:
3041
3043
  self.bring_active_window_to_front()
@@ -3043,11 +3045,13 @@ class CDPMethods():
3043
3045
  element.mouse_move()
3044
3046
  time.sleep(timeframe)
3045
3047
 
3046
- def hover_and_click(self, hover_selector, click_selector):
3048
+ def hover_and_click(self, hover_selector, click_selector, timeout=None):
3049
+ if not timeout:
3050
+ timeout = settings.SMALL_TIMEOUT
3047
3051
  if getattr(sb_config, "_cdp_mobile_mode", None):
3048
- self.select(click_selector).click()
3052
+ self.select(click_selector, timeout=timeout).click()
3049
3053
  return
3050
- hover_element = self.select(hover_selector)
3054
+ hover_element = self.select(hover_selector, timeout=timeout)
3051
3055
  gui_lock = FileLock(constants.MultiBrowser.PYAUTOGUILOCK)
3052
3056
  with gui_lock:
3053
3057
  self.bring_active_window_to_front()
@@ -2772,7 +2772,7 @@ class BaseCase(unittest.TestCase):
2772
2772
  original_by = by
2773
2773
  selector, by = self.__recalculate_selector(selector, by)
2774
2774
  if self.__is_cdp_swap_needed():
2775
- self.cdp.hover_element(selector)
2775
+ self.cdp.hover_element(selector, timeout=timeout)
2776
2776
  return
2777
2777
  self.wait_for_element_visible(
2778
2778
  original_selector, by=original_by, timeout=timeout
@@ -2817,7 +2817,9 @@ class BaseCase(unittest.TestCase):
2817
2817
  click_selector, click_by
2818
2818
  )
2819
2819
  if self.__is_cdp_swap_needed():
2820
- self.cdp.hover_and_click(hover_selector, click_selector)
2820
+ self.cdp.hover_and_click(
2821
+ hover_selector, click_selector, timeout=timeout
2822
+ )
2821
2823
  return
2822
2824
  dropdown_element = self.wait_for_element_visible(
2823
2825
  original_selector, by=original_by, timeout=timeout
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seleniumbase
3
- Version: 4.54.3
3
+ Version: 4.54.4
4
4
  Summary: SeleniumBase is a framework for web crawling, scraping, and testing. Supports pytest. CDP Mode adds stealth. Includes many tools.
5
5
  Home-page: https://github.com/seleniumbase/SeleniumBase
6
6
  Author: Michael Mintz
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes