@@ -833,9 +833,9 @@ def click_chain(
833
833
"""This method clicks on a list of elements in succession.
834
834
@Params
835
835
selectors_list - The list of selectors to click on.
836
- by - The type of selector to search by (Default: CSS_Selector ).
836
+ by - The type of selector to search by (Default: "css selector" ).
837
837
timeout - How long to wait for the selector to be visible.
838
- spacing - The amount of time to wait between clicks (in seconds). """
838
+ spacing - The amount of time to wait between clicks (in seconds)."""
839
839
self.__check_scope()
840
840
if not timeout:
841
841
timeout = settings.SMALL_TIMEOUT
@@ -857,11 +857,11 @@ def update_text(
857
857
* Types in the new text.
858
858
* Hits Enter/Submit (if the text ends in "\n").
859
859
@Params
860
- selector - the selector of the text field
861
- text - the new text to type into the text field
862
- by - the type of selector to search by (Default: CSS Selector )
863
- timeout - how long to wait for the selector to be visible
864
- retry - if True, use JS if the Selenium text update fails """
860
+ selector - The selector of the text field.
861
+ text - The new text to type into the text field.
862
+ by - The type of selector to search by. (Default: "css selector" )
863
+ timeout - How long to wait for the selector to be visible.
864
+ retry - If True, use JS if the Selenium text update fails. """
865
865
self.__check_scope()
866
866
if not timeout:
867
867
timeout = settings.LARGE_TIMEOUT
@@ -1039,11 +1039,11 @@ def type(
1039
1039
* Types in the new text.
1040
1040
* Hits Enter/Submit (if the text ends in "\n").
1041
1041
@Params
1042
- selector - the selector of the text field
1043
- text - the new text to type into the text field
1044
- by - the type of selector to search by (Default: CSS Selector )
1045
- timeout - how long to wait for the selector to be visible
1046
- retry - if True, use JS if the Selenium text update fails
1042
+ selector - The selector of the text field.
1043
+ text - The new text to type into the text field.
1044
+ by - The type of selector to search by. (Default: "css selector" )
1045
+ timeout - How long to wait for the selector to be visible.
1046
+ retry - If True, use JS if the Selenium text update fails.
1047
1047
DO NOT confuse self.type() with Python type()! They are different!
1048
1048
"""
1049
1049
self.__check_scope()
@@ -1085,9 +1085,9 @@ def clear(self, selector, by="css selector", timeout=None):
1085
1085
In case websites trigger an autofill after clearing a field,
1086
1086
add backspaces to make sure autofill doesn't undo the clear.
1087
1087
@Params
1088
- selector - the selector of the text field
1089
- by - the type of selector to search by (Default: CSS Selector )
1090
- timeout - how long to wait for the selector to be visible """
1088
+ selector - The selector of the text field.
1089
+ by - The type of selector to search by. (Default: "css selector" )
1090
+ timeout - How long to wait for the selector to be visible. """
1091
1091
self.__check_scope()
1092
1092
if not timeout:
1093
1093
timeout = settings.LARGE_TIMEOUT
@@ -6625,7 +6625,9 @@ def append_data_to_file(self, data, file_name, destination_folder=None):
6625
6625
def get_file_data(self, file_name, folder=None):
6626
6626
"""Gets the data from the file specified.
6627
6627
If no folder is specified, the default one is used.
6628
- (The default folder = "./downloaded_files")
6628
+ The default folder = "./downloaded_files"
6629
+ For the "latest_logs/" test data folders, use:
6630
+ self.data_path OR self.data_abspath
6629
6631
Use "." as the folder for the current directory."""
6630
6632
if not folder:
6631
6633
folder = constants.Files.DOWNLOADS_FOLDER
@@ -8337,7 +8339,7 @@ def post_message_and_highlight(self, message, selector, by="css selector"):
8337
8339
Arguments:
8338
8340
message: The message to display.
8339
8341
selector: The selector of the Element to highlight.
8340
- by: The type of selector to search by. (Default: CSS Selector )"""
8342
+ by: The type of selector to search by. (Default: "css selector" )"""
8341
8343
self.__check_scope()
8342
8344
self.__highlight_with_assert_success(message, selector, by=by)
8343
8345
0 commit comments