You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/utility-guides/TableUtil.md
+27-26Lines changed: 27 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,13 +42,14 @@ The Table Utilities module provides helper functions to interact with and valida
42
42
43
43
### Get Column Index
44
44
45
-
This function returns the index (1-based) of a specified column name.
45
+
This function returns the index (1-based) of a specified column name.1-based indexing means the first column is considered index 1 (not 0 as in Python lists).
46
+
If the column is not found, the function returns -1.
46
47
47
48
#### Required Arguments
48
49
49
-
-`column_name`:
50
-
-Type: `str`
51
-
-The visible header text of the column to locate.
50
+
-`column_name`:
51
+
-Type: `str`
52
+
-The visible header text of the column to locate.
52
53
53
54
#### How This Function Works
54
55
@@ -62,14 +63,14 @@ Clicks on the first hyperlink present in a specified column.
62
63
63
64
#### Required Arguments
64
65
65
-
-`column_name`:
66
-
-Type: `str`
67
-
-The column in which the link needs to be found.
66
+
-`column_name`:
67
+
-Type: `str`
68
+
-The column in which the link needs to be found.
68
69
69
70
#### How This Function Works
70
71
71
72
1. Finds the index of the specified column.
72
-
2. Searches the first visible row in the column for an <a> tag.
73
+
2. Searches the first visible row in the column for an `<a>` tag.
73
74
3. Clicks the first available link found.
74
75
75
76
### Click First Input In Column
@@ -78,14 +79,14 @@ Clicks on the first input element (e.g., checkbox/radio) in a specific column.
78
79
79
80
#### Required Arguments
80
81
81
-
-`column_name`:
82
-
-Type: `str`
83
-
-The name of the column containing the input element.
82
+
-`column_name`:
83
+
-Type: `str`
84
+
-The name of the column containing the input element.
84
85
85
86
#### How This Function Works
86
87
87
88
1. Locates the index of the specified column.
88
-
2. Checks the first visible row for an <input> tag in that column.
89
+
2. Checks the first visible row for an `<input>` tag in that column.
89
90
3. Clicks the first input found.
90
91
91
92
### Format Inner Text
@@ -94,9 +95,9 @@ Formats inner text of a row string into a dictionary.
94
95
95
96
#### Required Arguments
96
97
97
-
-data:
98
-
-Type: `str`
99
-
-Raw inner text of a table row (tab-delimited).
98
+
-data:
99
+
-Type: `str`
100
+
-Raw inner text of a table row (tab-delimited).
100
101
101
102
#### How This Function Works
102
103
@@ -110,7 +111,7 @@ Extracts and returns table headers.
110
111
111
112
#### Required Arguments
112
113
113
-
-None
114
+
-None
114
115
115
116
#### How This Function Works
116
117
@@ -124,7 +125,7 @@ Returns the count of visible rows in the table.
124
125
125
126
#### Required Arguments
126
127
127
-
-None
128
+
-None
128
129
129
130
#### How This Function Works
130
131
@@ -138,9 +139,9 @@ Returns a locator for a specific row.
138
139
139
140
#### Required Arguments
140
141
141
-
-`row_number`:
142
-
-Type: `int`
143
-
-The row index to locate (1-based).
142
+
-`row_number`:
143
+
-Type: `int`
144
+
-The row index to locate (1-based).
144
145
145
146
#### How This Function Works
146
147
@@ -153,7 +154,7 @@ Picks and returns a random row locator.
153
154
154
155
#### Required Arguments
155
156
156
-
None
157
+
-None
157
158
158
159
#### How This Function Works
159
160
@@ -167,7 +168,7 @@ Returns the number of a randomly selected row.
167
168
168
169
#### Required Arguments
169
170
170
-
None
171
+
-None
171
172
172
173
#### How This Function Works
173
174
@@ -181,9 +182,9 @@ Returns a dictionary of header-value pairs for a given row.
181
182
182
183
#### Required Arguments
183
184
184
-
-`row_number`:
185
-
-Type:int
186
-
-Index of the target row (1-based).
185
+
-`row_number`:
186
+
-Type:int
187
+
-Index of the target row (1-based).
187
188
188
189
#### How This Function Works
189
190
@@ -197,7 +198,7 @@ Constructs a dictionary of the entire table content.
0 commit comments