OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Can't access shadowRoot

  • Thread starter Thread starter Black Square
  • Start date Start date
B

Black Square

Guest
I want to pass a captcha on website https://sirus.one/#play and I need to set the solved captcha value in textarea.g-recaptcha-response -> div.innerText. TextArea has shadowRoot where website saving the response of recaptcha.

I tried to access shadowRoot like that: document.querySelector("textarea.g-recaptcha-response").shadowRoot, but the result is null.

If I print the element in console it appears that shadowRoot exists
screenshot


How to get the shadowRoot?

<p>I want to pass a captcha on website <a href="https://sirus.one/#play" rel="nofollow noreferrer">https://sirus.one/#play</a> and I need to set the solved captcha value in textarea.g-recaptcha-response -> div.innerText. TextArea has shadowRoot where website saving the response of recaptcha.</p>
<p>I tried to access shadowRoot like that:
<code>document.querySelector("textarea.g-recaptcha-response").shadowRoot</code>, but the result is null.</p>
<p>If I print the element in console it appears that shadowRoot exists
<img src="https://i.sstatic.net/pBmskjqf.png" alt="screenshot" /></p>
<p>How to get the shadowRoot?</p>
 

Latest posts

B
Replies
0
Views
1
Blundering Ecologist
B
Top