We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8864da6 commit 628d7ecCopy full SHA for 628d7ec
seleniumbase/extensions/recorder.zip
-9 Bytes
seleniumbase/js_code/recorder_js.py
@@ -40,10 +40,8 @@
40
!el.getAttribute(attr).includes('\n'))
41
{
42
the_attr = el.getAttribute(attr);
43
- if (the_attr.includes('"'))
44
- the_attr = the_attr.replace('"', '\\"');
45
- if (the_attr.includes("'"))
46
- the_attr = the_attr.replace("'", "\\'");
+ the_attr = the_attr.replaceAll('"', '\\"');
+ the_attr = the_attr.replaceAll("'", "\\'");
47
selector += '[' + attr + '="' + the_attr + '"]';
48
path.unshift(selector);
49
break;
@@ -163,6 +161,7 @@
163
161
non_id_attributes.push('for');
164
162
non_id_attributes.push('placeholder');
165
non_id_attributes.push('value');
+ non_id_attributes.push('ng-click');
166
non_id_attributes.push('ng-if');
167
non_id_attributes.push('src');
168
selector_by_attr = [];
0 commit comments