Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not support get text in Element within other element'text of Element (innerText) #563

Open
jokerbo1 opened this issue Nov 27, 2023 · 0 comments

Comments

@jokerbo1
Copy link

jokerbo1 commented Nov 27, 2023

Hello ,today i want to get text of element ,but i am not found method of named 'inner_text' similar playwright ,begin i am use element.text get the parent's text,but the result included child's text,it's no needed mine, how to get the current element text ,please

image

image

Below is the html format ,i'm only get

the part of the body with which one sees. ...
content
thank you

<div class="ds-list"><b>1. </b> <span class="illustration">Open your eyes; </span><span class="illustration">She has blue eyes.</span><span class="trans" lang="af" style="display: none;"> oog, oë </span><span class="trans" lang="ar" style="display: none;"><a href="//ar.thefreedictionary.com/%d8%b9%d9%8e%d9%8a%d9%92%d9%86">عَيْن</a></span><span class="trans" lang="bg" style="display: none;"> очи </span><span class="trans" lang="br" style="display: none;"> olho </span><span class="trans" lang="cs" style="display: none;"> oko </span><span class="trans" lang="de" style="display: none;"> das Auge </span><span class="trans" lang="da" style="display: none;"> øje </span><span class="trans" lang="el" style="display: none;"><a href="//el.thefreedictionary.com/%ce%bc%ce%ac%cf%84%ce%b9">μάτι</a>, <a href="//el.thefreedictionary.com/%ce%bf%cf%86%ce%b8%ce%b1%ce%bb%ce%bc%cf%8c%cf%82">οφθαλμός</a></span><span class="trans" lang="es" style="display: none;"><a href="//es.thefreedictionary.com/ojo">ojo</a></span><span class="trans" lang="et" style="display: none;"> silm </span><span class="trans" lang="fa" style="display: none;"> چشم </span><span class="trans" lang="fi" style="display: none;"> silmä </span><span class="trans" lang="fr" style="display: none;"> oeil </span><span class="trans" lang="he" style="display: none;"><a href="//he.thefreedictionary.com/%d7%a2%d7%99%d7%9f">עין</a></span><span class="trans" lang="hi" style="display: none;"> आंख </span><span class="trans" lang="hr" style="display: none;"> oko </span><span class="trans" lang="hu" style="display: none;"> szem </span><span class="trans" lang="id" style="display: none;"> mata </span><span class="trans" lang="is" style="display: none;"> auga </span><span class="trans" lang="it" style="display: none;"><a href="//it.thefreedictionary.com/occhio">occhio</a></span><span class="trans" lang="ja" style="display: none;"> 目 </span><span class="trans" lang="ko" style="display: none;"> 눈 </span><span class="trans" lang="lt" style="display: none;"> akis </span><span class="trans" lang="lv" style="display: none;"> acs </span><span class="trans" lang="ml" style="display: none;"> mata </span><span class="trans" lang="nl" style="display: none;"><a href="//nl.thefreedictionary.com/oog">oog</a></span><span class="trans" lang="no" style="display: none;"><a href="//no.thefreedictionary.com/%c3%b8ye">øye</a></span><span class="trans" lang="pl" style="display: none;"><a href="//pl.thefreedictionary.com/oko">oko</a></span><span class="trans" lang="ps" style="display: none;"> سترګه </span><span class="trans" lang="pt" style="display: none;"><a href="//pt.thefreedictionary.com/olho">olho</a></span><span class="trans" lang="ro" style="display: none;"> ochi </span><span class="trans" lang="ru" style="display: none;"><a href="//ru.thefreedictionary.com/%d0%b3%d0%bb%d0%b0%d0%b7">глаз</a></span><span class="trans" lang="sk" style="display: none;"> oko </span><span class="trans" lang="sl" style="display: none;"> oko </span><span class="trans" lang="sr" style="display: none;"> oko </span><span class="trans" lang="sv" style="display: none;"> öga </span><span class="trans" lang="th" style="display: none;"> ดวงตา </span><span class="trans" lang="tr" style="display: none;"><a href="//tr.thefreedictionary.com/g%c3%b6z">göz</a></span><span class="trans" lang="tw" style="display: none;"> 眼睛 </span><span class="trans" lang="uk" style="display: none;"> око </span><span class="trans" lang="ur" style="display: none;"> آنکھ </span><span class="trans" lang="vi" style="display: none;"> mắt </span><span class="trans" lang="zh" style="display: inline;"><a href="//zh.thefreedictionary.com/%e7%9c%bc%e7%9d%9b">眼睛</a></span></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant