-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Feature] innerText not defined in evaluate context #1237
Comments
cc @JoelEinbinder - can we actually do this?
@thernstig yeah, no one-liner here. You can use |
#1166 fixes a lot of case like this, but I believe this actually working as intended. /** @type {playwright.ElementHandle<HTMLElement>} */
const foo = await page.waitForSelector('text="Something"'); |
@JoelEinbinder @alukyan This might be of interest. The above case was in regards to |
Here
innerText
is not a type (if you e.g. use VS Code for autocompletion) whereastextContent
is. It would be nice to addinnerText
into the TypeScript definitions.(On a side-note it is quite verbose to get some text then assert on it, as above, but I don't think there is a nicer way (one-liner) for this?)
The text was updated successfully, but these errors were encountered: