@Daniel said in Преобразовать html в docx:
но как теперь test.docx в файл сохранить?
Смотрите примеры использования модуля "fs"

https://yescaptcha.atlassian.net/wiki/spaces/YESCAPTCHA/pages/29786113/reCaptchaV2+Python+selenium+DEMO
I don't know how to make it work, because I can't always get the picture for machine recognition.