Skip to content

Commit 7e7df71

Browse files
committed
Update console script that displays seleniumbase methods
1 parent c61802b commit 7e7df71

File tree

1 file changed

+6
-5
lines changed
  • seleniumbase/console_scripts

1 file changed

+6
-5
lines changed

seleniumbase/console_scripts/run.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def show_basic_usage():
5656
from seleniumbase.console_scripts import logo_helper
5757
seleniumbase_logo = logo_helper.get_seleniumbase_logo()
5858
print(seleniumbase_logo)
59-
time.sleep(0.25) # Enough time to see the logo
6059
print()
60+
time.sleep(0.16) # Enough time to see the logo
6161
show_package_location()
6262
show_version_info()
6363
print()
@@ -542,9 +542,11 @@ def show_methods():
542542
sbm += ('*.get_new_driver(OPTIONS) => Open a new driver with OPTIONS.\n')
543543
sbm += ('*.switch_to_driver(driver) => Switch to the browser driver.\n')
544544
sbm += ('*.switch_to_default_driver() => Switch to the original driver.\n')
545-
sbm += ('*.is_element_visible(selector) => Return True if item visible.\n')
546-
sbm += ('*.is_text_visible(text) => Return True if text is visible.\n')
547-
sbm += ('*.save_screenshot(name) => Save a screenshot in PNG format.\n')
545+
sbm += ('*.wait_for_element(selector) => Wait until element is visible.\n')
546+
sbm += ('*.is_element_visible(selector) => Return element visibility.\n')
547+
sbm += ('*.is_text_visible(text, selector) => Return text visibility.\n')
548+
sbm += ('*.sleep(seconds) => Do nothing for the given amount of time.\n')
549+
sbm += ('*.save_screenshot(name) => Save a screenshot in .png format.\n')
548550
sbm += ('*.assert_element(selector) => Verify the element is visible.\n')
549551
sbm += ('*.assert_text(text, selector) => Verify text in the element.\n')
550552
sbm += ('*.assert_title(title) => Verify the title of the web page.\n')
@@ -556,7 +558,6 @@ def show_methods():
556558
sbm = sbm.replace('(', c3 + '(' + c4)
557559
sbm = sbm.replace(')', c3 + ')' + cr)
558560
print(sbm)
559-
print("")
560561

561562

562563
def show_options():

0 commit comments

Comments
 (0)