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 139cc06 commit c20a798Copy full SHA for c20a798
lib/capybara/selenium/node.rb
@@ -494,8 +494,8 @@ def attrs(*attr_names)
494
var pos, tempitem2;
495
496
if (el.getRootNode && el.getRootNode() instanceof ShadowRoot) {
497
- return ": Shadow DOM element - no XPath :"
498
- };
+ return "(: Shadow DOM element - no XPath :)";
+ };
499
while(el !== xml.documentElement) {
500
pos = 0;
501
tempitem2 = el;
lib/capybara/spec/session/node_spec.rb
@@ -418,8 +418,8 @@
418
return root.shadowRoot.querySelector('span');
419
})(arguments[0])
420
JS
421
- expect(element.path).to eq ": Shadow DOM element - no XPath :"
422
- end
+ expect(element.path).to eq '(: Shadow DOM element - no XPath :)'
+ end()
423
end
424
425
describe '#trigger', requires: %i[js trigger] do
0 commit comments