Skip to content

Commit 21ed761

Browse files
committed
Update comments
1 parent cb0e899 commit 21ed761

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2873,8 +2873,7 @@ def select_option_by_text(
28732873
"""Selects an HTML <select> option by option text.
28742874
@Params
28752875
dropdown_selector - the <select> selector.
2876-
option - the text of the option.
2877-
"""
2876+
option - the text of the option."""
28782877
self.__check_scope()
28792878
if not timeout:
28802879
timeout = settings.SMALL_TIMEOUT
@@ -2898,8 +2897,7 @@ def select_option_by_index(
28982897
"""Selects an HTML <select> option by option index.
28992898
@Params
29002899
dropdown_selector - the <select> selector.
2901-
option - the index number of the option.
2902-
"""
2900+
option - the index number of the option."""
29032901
self.__check_scope()
29042902
if not timeout:
29052903
timeout = settings.SMALL_TIMEOUT
@@ -2923,8 +2921,7 @@ def select_option_by_value(
29232921
"""Selects an HTML <select> option by option value.
29242922
@Params
29252923
dropdown_selector - the <select> selector.
2926-
option - the value property of the option.
2927-
"""
2924+
option - the value property of the option."""
29282925
self.__check_scope()
29292926
if not timeout:
29302927
timeout = settings.SMALL_TIMEOUT
@@ -2950,8 +2947,7 @@ def get_select_options(
29502947
dropdown_selector - The selector of the "select" element.
29512948
attribute - Choose from "text", "index", "value", or None (elements).
29522949
by - The "by" of the "select" selector to use. Default: "css selector".
2953-
timeout - Time to wait for "select". If None: settings.SMALL_TIMEOUT.
2954-
"""
2950+
timeout - Wait time for "select". If None: settings.SMALL_TIMEOUT."""
29552951
self.wait_for_ready_state_complete()
29562952
if not timeout:
29572953
timeout = settings.SMALL_TIMEOUT
@@ -3933,14 +3929,12 @@ def switch_to_default_driver(self):
39333929
def save_screenshot(
39343930
self, name, folder=None, selector=None, by="css selector"
39353931
):
3936-
"""
3937-
Saves a screenshot of the current page.
3932+
"""Saves a screenshot of the current page.
39383933
If no folder is specified, uses the folder where pytest was called.
39393934
The screenshot will include the entire page unless a selector is given.
39403935
If a provided selector is not found, then takes a full-page screenshot.
39413936
If the folder provided doesn't exist, it will get created.
3942-
The screenshot will be in PNG format: (*.png)
3943-
"""
3937+
The screenshot will be in PNG format: (*.png)"""
39443938
self.wait_for_ready_state_complete()
39453939
if selector and by:
39463940
selector, by = self.__recalculate_selector(selector, by)
@@ -4012,8 +4006,7 @@ def save_page_source(self, name, folder=None):
40124006
If the folder specified doesn't exist, it will get created.
40134007
@Params
40144008
name - The file name to save the current page's HTML to.
4015-
folder - The folder to save the file to. (Default = current folder)
4016-
"""
4009+
folder - The folder to save the file to. (Default = current folder)"""
40174010
self.wait_for_ready_state_complete()
40184011
return page_actions.save_page_source(self.driver, name, folder)
40194012

@@ -4167,8 +4160,7 @@ def sleep(self, seconds):
41674160
def install_addon(self, xpi_file):
41684161
"""Installs a Firefox add-on instantly at run-time.
41694162
@Params
4170-
xpi_file - A file archive in .xpi format.
4171-
"""
4163+
xpi_file - A file archive in .xpi format."""
41724164
self.wait_for_ready_state_complete()
41734165
if self.browser != "firefox":
41744166
raise Exception(

0 commit comments

Comments
 (0)