MicrosoftEdge / EdgeWebDriver

Feedback and discussions about WebDriver for Microsoft Edge
MIT License
55 stars 7 forks source link

PDF printing does not work on 128.0.2739.42 as service #162

Open rasmusrim opened 1 month ago

rasmusrim commented 1 month ago

PDF-printing through msedgedriver seems to have stopped working after the last update (we think). It times out:

OpenQA.Selenium.WebDriverTimeoutException: timeout: Timed out receiving message from renderer: 10.000

How to reproduce:

  1. Clone the minimal reproduction repo: https://github.com/rasmusrim/msedgedriver-bug-minimal-reproduction
  2. Build the project
  3. Download the most recent msedgedriver.exe file and put it into bin/Debug/net7.0
  4. Create a local user account (mine is called svcft)
  5. Add the minimal reproduction as a service:

New-Service -Name "Minimal reproduction" -BinaryPathName "D:\repos\minimal-reproduction\minimal-reproduction\bin\Debug\net7.0\minimal-reproduction.exe"

  1. Make the service run as the local user account you created.
  2. Start the service
  3. See error message in log.txt: image
rasmusrim commented 1 month ago

Seems to also be a problem with Chrome. Will create issue there: https://issues.chromium.org/issues/362277536

rasmusrim commented 1 month ago

It seems as if adding no-sandbox solves the problem:

options.AddArgument("no-sandbox");