What happened?
The Selenium atom Get Text should not only return the value from a slot when it is used but also it's default value when it has not been used. In the example below the value foobar is visible as text but the atom Get Text returns just bar.
How can we reproduce the issue?
With the following testcase it can be reproduced:
<head>
<script>
class TestContainer extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `<slot><span>foo</span></slot>bar`;
}
}
customElements.define('test-container', TestContainer);
</script>
</head>
<body>
<test-container></test-container>
</body>
CC @43081j in case you are interested.
### Relevant log output
```shell
No log output available.
Operating System
MacOS 13.6
Selenium version
Latest
What are the browser(s) and version(s) where you see this issue?
Firefox (not tested with others)
What are the browser driver(s) and version(s) where you see this issue?
geckodriver (not tested with others)
Are you using Selenium Grid?
No
What happened?
The Selenium atom
Get Textshould not only return the value from a slot when it is used but also it's default value when it has not been used. In the example below the valuefoobaris visible as text but the atomGet Textreturns justbar.How can we reproduce the issue?
With the following testcase it can be reproduced: <head> <script> class TestContainer extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `<slot><span>foo</span></slot>bar`; } } customElements.define('test-container', TestContainer); </script> </head> <body> <test-container></test-container> </body>CC @43081j in case you are interested.
Operating System
MacOS 13.6
Selenium version
Latest
What are the browser(s) and version(s) where you see this issue?
Firefox (not tested with others)
What are the browser driver(s) and version(s) where you see this issue?
geckodriver (not tested with others)
Are you using Selenium Grid?
No