Closed Zardoz89 closed 1 year ago
Could you please attach a trace-level log from geckodriver? Also a minimized HTML testcase would be great to have. Right now it's not clear if this comes from geckodriver or your in use Selenium binding.
Could you please attach a trace-level log from geckodriver? Also a minimized HTML testcase would be great to have. Right now it's not clear if this comes from geckodriver or your in use Selenium binding.
I uploaded the trace level log.
I put the exact XML (yes, XML, not HTML) that the server responds on the issue.
PD: I know that using Selenium to run tests against a XML it's odd (I didn't create this tests). But this tests have many years, and had been working fine a lot of time. Only we begin to get this error a few days ago with the last automate update of Firefox
Thanks. The trace log revealed some information:
atom ... mmandsChild.jsm:335:22\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:121:31\n"},null]
1665120483225 webdriver::server DEBUG <- 500 Internal Server Error {"value":{"error":"unknown error","message":"TypeError: c is undefined","stacktrace":"$b@chrome://remote/content/marionette/atom.js:85:50\nX@chrome://remote/content/marionette/atom.js:83:252\njc@chrome://remote/content/marionette/atom.js:96:68\noc@chrome://remote/content/marionette/atom.js:101:95\natom.getElementText/</<@chrome://remote/content/marionette/atom.js:104:295\natom.getElementText/<@chrome://remote/content/marionette/atom.js:104:481\natom.getElementText@chrome://remote/content/marionette/atom.js:104:505\ngetElementText@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:335:22\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:121:31\n"}}
So the underlying problem is the call into the Selenium atoms when using getText()
.
Also thanks a lot for the XML testcase. I can reproduce this locally now with using Marionette directly. I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1794099 to handle this particular issue.
@Zardoz89 please note that as long this isn't fixed you can set the following Firefox preference and the test should pass: layout.css.computed-style.styles-outside-flat-tree=true
.
Again, thanks for your help. The fix landed and should be available in the most recent Firefox 108 nightly build.
System
Testcase
Trying to call getText() of a WebElement instance returned by a @FindBy tag
I verified that the page had a valid XML document that contains the node and contains some text :
Stacktrace
Trace-level log
Here it's the trace level log Trace-level log.txt