Skip to content

Commit 2bead9f

Browse files
committed
Recorder: Add "th" & "summary" tags for selector-generation
1 parent 532d8b1 commit 2bead9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

seleniumbase/js_code/recorder_js.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,18 @@
201201
contains_tags.push('h5');
202202
contains_tags.push('li');
203203
contains_tags.push('td');
204+
contains_tags.push('th');
204205
contains_tags.push('code');
205206
contains_tags.push('mark');
206207
contains_tags.push('label');
207208
contains_tags.push('button');
208209
contains_tags.push('legend');
209210
contains_tags.push('strong');
211+
contains_tags.push('summary');
210212
all_by_tag = [];
211-
inner_text = el.innerText.trim();
213+
inner_text = '';
214+
if (el.innerText)
215+
inner_text = el.innerText.trim();
212216
for (var i = 0; i < contains_tags.length; i++) {
213217
if (tag_name == contains_tags[i] &&
214218
inner_text.length >= 2 && inner_text.length <= 64)

0 commit comments

Comments
 (0)