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

Text() not always working #297

Open
Kur-Ich opened this issue Aug 13, 2022 · 2 comments
Open

Text() not always working #297

Kur-Ich opened this issue Aug 13, 2022 · 2 comments

Comments

@Kur-Ich
Copy link

Kur-Ich commented Aug 13, 2022

Hi, I have series of webelements like this one:
<span class="WSJTheme--headlineText--He1ANr9C ">Rocket Lab Is Already Science, Not Fiction </span>
source: https://www.wsj.com/news/heard-on-the-street?mod=nav_top_subsection

However, the .Text() method doesn't work on all of them, it only works on a few. Is there another way to try to get the inner text?

Many thanks

@tonyquang
Copy link

tonyquang commented Apr 6, 2024

Got the same issue, but when you call element.Screenshot(true) before you call Text() you can get the value). But don't know the root cause yet.

@gbatanov
Copy link

gbatanov commented Jun 7, 2024

Got the same issue, work correctly if element is displayed

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

3 participants