@@ -2873,8 +2873,7 @@ def select_option_by_text(
2873
2873
"""Selects an HTML <select> option by option text.
2874
2874
@Params
2875
2875
dropdown_selector - the <select> selector.
2876
- option - the text of the option.
2877
- """
2876
+ option - the text of the option."""
2878
2877
self.__check_scope()
2879
2878
if not timeout:
2880
2879
timeout = settings.SMALL_TIMEOUT
@@ -2898,8 +2897,7 @@ def select_option_by_index(
2898
2897
"""Selects an HTML <select> option by option index.
2899
2898
@Params
2900
2899
dropdown_selector - the <select> selector.
2901
- option - the index number of the option.
2902
- """
2900
+ option - the index number of the option."""
2903
2901
self.__check_scope()
2904
2902
if not timeout:
2905
2903
timeout = settings.SMALL_TIMEOUT
@@ -2923,8 +2921,7 @@ def select_option_by_value(
2923
2921
"""Selects an HTML <select> option by option value.
2924
2922
@Params
2925
2923
dropdown_selector - the <select> selector.
2926
- option - the value property of the option.
2927
- """
2924
+ option - the value property of the option."""
2928
2925
self.__check_scope()
2929
2926
if not timeout:
2930
2927
timeout = settings.SMALL_TIMEOUT
@@ -2950,8 +2947,7 @@ def get_select_options(
2950
2947
dropdown_selector - The selector of the "select" element.
2951
2948
attribute - Choose from "text", "index", "value", or None (elements).
2952
2949
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."""
2955
2951
self.wait_for_ready_state_complete()
2956
2952
if not timeout:
2957
2953
timeout = settings.SMALL_TIMEOUT
@@ -3933,14 +3929,12 @@ def switch_to_default_driver(self):
3933
3929
def save_screenshot(
3934
3930
self, name, folder=None, selector=None, by="css selector"
3935
3931
):
3936
- """
3937
- Saves a screenshot of the current page.
3932
+ """Saves a screenshot of the current page.
3938
3933
If no folder is specified, uses the folder where pytest was called.
3939
3934
The screenshot will include the entire page unless a selector is given.
3940
3935
If a provided selector is not found, then takes a full-page screenshot.
3941
3936
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)"""
3944
3938
self.wait_for_ready_state_complete()
3945
3939
if selector and by:
3946
3940
selector, by = self.__recalculate_selector(selector, by)
@@ -4012,8 +4006,7 @@ def save_page_source(self, name, folder=None):
4012
4006
If the folder specified doesn't exist, it will get created.
4013
4007
@Params
4014
4008
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)"""
4017
4010
self.wait_for_ready_state_complete()
4018
4011
return page_actions.save_page_source(self.driver, name, folder)
4019
4012
@@ -4167,8 +4160,7 @@ def sleep(self, seconds):
4167
4160
def install_addon(self, xpi_file):
4168
4161
"""Installs a Firefox add-on instantly at run-time.
4169
4162
@Params
4170
- xpi_file - A file archive in .xpi format.
4171
- """
4163
+ xpi_file - A file archive in .xpi format."""
4172
4164
self.wait_for_ready_state_complete()
4173
4165
if self.browser != "firefox":
4174
4166
raise Exception(
0 commit comments