Skip to content

Commit ce40be2

Browse files
committed
Add more selector options for Recorder Mode
1 parent df5e519 commit ce40be2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

seleniumbase/extensions/recorder.zip

30 Bytes
Binary file not shown.

seleniumbase/js_code/recorder_js.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@
101101
non_id_attributes.push('data-test-id');
102102
non_id_attributes.push('data-test-selector');
103103
non_id_attributes.push('data-nav');
104+
non_id_attributes.push('data-sb');
105+
non_id_attributes.push('data-cy');
104106
non_id_attributes.push('data-action');
105107
non_id_attributes.push('data-target');
106108
non_id_attributes.push('alt');
@@ -114,6 +116,7 @@
114116
non_id_attributes.push('value');
115117
non_id_attributes.push('ng-model');
116118
non_id_attributes.push('ng-if');
119+
non_id_attributes.push('src');
117120
selector_by_attr = [];
118121
all_by_attr = [];
119122
num_by_attr = [];
@@ -149,9 +152,13 @@
149152
contains_tags.push('h2');
150153
contains_tags.push('h3');
151154
contains_tags.push('h4');
155+
contains_tags.push('li');
152156
contains_tags.push('td');
153157
contains_tags.push('code');
158+
contains_tags.push('mark');
159+
contains_tags.push('label');
154160
contains_tags.push('button');
161+
contains_tags.push('legend');
155162
contains_tags.push('strong');
156163
all_by_tag = [];
157164
inner_text = el.innerText.trim();

0 commit comments

Comments
 (0)