I need a Python-based Selenium script that can take a finished DOCX manuscript and walk it all the way through Draft2Digital’s publishing workflow without manual clicks. The sequence is straightforward: log in with my credentials, upload the DOCX, attach the cover image I already have, populate every metadata field (title, description, author name, categories, keywords, price, etc.), and trigger the final “Publish” action. Stability and re-usability matter more than speed. The finished tool should: • run headless or visible by flag • accept the key inputs (file paths plus a small JSON or CSV holding the metadata) • surface meaningful logs or exceptions so I can quickly spot where D2D changes their UI • be easy for me to maintain—clear, well-commented code and a short README explaining setup and usage If another library such as Playwright or BeautifulSoup helps with edge cases (e.g., category dropdowns), feel free to include it, but Selenium must remain the core driver. On delivery I will test by pointing the script at one of my accounts; once it reliably publishes from the command line, the job is complete.