Rayrun
← Back to Discord Forum

read docx file and get its content

i know it not necesecerally connect to playwright but to typescript but after i download file as docx format i am not enable to get it content although i am encoding it as utf-8. does anyone has an idea how i can get its connent readable?

This thread is trying to answer question "How can I read the content of a docx file in typescript?"

3 replies

Do you have some external library to read docx files?

if i needed to do this, would create a .net core mininal api. Assuming you need to deal with a docx files you are in M$ land. Plenty of libraries to handle docx in .Net. Have your test make a get request passing the docx "resouce" you want, then response with a json payload...

i finally installed package that made the magic - thanks!

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].