You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I loop over my list of li items, and only print the content with getText(), the code runs fine.
If I loop over my list of li items, and only print the content of a random div somewhere else on the tab, the code runs fine.
But if I try to do both, I get the following error (after 1 run of the loop, so second pass):
PHP Fatal error: Uncaught HeadlessChromium\Exception\DomException: -32000 - Could not find node with given id in /Users/marc434451/Sites/personal/shooz/vendor/chrome-php/chrome/src/Dom/Node.php:214
Stack trace:
#0 /Users/marc434451/Sites/personal/shooz/vendor/chrome-php/chrome/src/Dom/Node.php(138): HeadlessChromium\Dom\Node->assertNotError(Object(HeadlessChromium\Communication\Response))
#1 /Users/marc434451/Sites/personal/shooz/vendor/chrome-php/chrome/src/Dom/Node.php(156): HeadlessChromium\Dom\Node->getHTML()
#2 /Users/marc434451/Sites/personal/shooz/repro.php(22): HeadlessChromium\Dom\Node->getText()
#3 {main}
thrown in /Users/marc434451/Sites/personal/shooz/vendor/chrome-php/chrome/src/Dom/Node.php on line 214
Probably just interacting with the nodes in a wrong way/order, but I couldn't find any info in the docs.
The text was updated successfully, but these errors were encountered:
sanderdlm
changed the title
Looping over list of elements from querySelectorAll and performing actions sometimes throws Uncaught HeadlessChromium\Exception\DomException: -32000 - Could not find node with given id
Looping over querySelectorAll results and performing actions throws Uncaught DomException: -32000 - Could not find node with given idJan 7, 2024
Sorry for the long yet vague title.
I've included a short reproducer:
If I loop over my list of
li
items, and only print the content withgetText()
, the code runs fine.If I loop over my list of
li
items, and only print the content of a random div somewhere else on the tab, the code runs fine.But if I try to do both, I get the following error (after 1 run of the loop, so second pass):
Probably just interacting with the nodes in a wrong way/order, but I couldn't find any info in the docs.
The text was updated successfully, but these errors were encountered: