Skip to content

Commit f2dc88b

Browse files
committed
Update Recorder Mode
1 parent 26ca791 commit f2dc88b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

seleniumbase/extensions/recorder.zip

4 Bytes
Binary file not shown.

seleniumbase/js_code/active_css_js.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,8 @@
179179
if (!selector_by_attr[i].includes(' > ') &&
180180
((num_by_attr[i] == 1) || (el == all_by_attr[i][0])))
181181
{
182-
if (n_i_attr == 'aria-label' || n_i_attr == 'for')
183-
if (hasDigit(selector_by_attr[i]))
184-
continue;
182+
if (n_i_attr.startsWith('aria') || n_i_attr == 'for')
183+
if (hasDigit(selector_by_attr[i])) continue;
185184
return selector_by_attr[i];
186185
}
187186
child_count_by_attr[i] = ssOccurrences(selector_by_attr[i], ' > ');

seleniumbase/js_code/recorder_js.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,8 @@
179179
if (!selector_by_attr[i].includes(' > ') &&
180180
((num_by_attr[i] == 1) || (el == all_by_attr[i][0])))
181181
{
182-
if (n_i_attr == 'aria-label' || n_i_attr == 'for')
183-
if (hasDigit(selector_by_attr[i]))
184-
continue;
182+
if (n_i_attr.startsWith('aria') || n_i_attr == 'for')
183+
if (hasDigit(selector_by_attr[i])) continue;
185184
return selector_by_attr[i];
186185
}
187186
child_count_by_attr[i] = ssOccurrences(selector_by_attr[i], ' > ');

0 commit comments

Comments
 (0)