You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @anthonychu,
I've been trying to follow your example and build an azure function with Selenium that uses chromium driver, but it keeps failing to start chrome.
When I publish/build the application, chromedriver.exe is in the bin\debug and publish directories but azure function throws an exception
unknown error: cannot find Chrome binary OpenQA.Selenium.WebDriverException at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError
I can see that binary is where it supposed to.
I've tested on consumption plans for both windows (chromedriver.exe) and linux (chromedriver). Any suggestions on the solution?
Error on premium app service plan Linux is slightly different and says that it could not start chrome service on port xxxx.
but playwright expects a different directory: Exception while executing function: RunPlaywright Driver not found: /home/site/.playwright/node/linux-x64/playwright.sh so I had to copy .playwright to /home/site for it to work
The text was updated successfully, but these errors were encountered:
Hi @anthonychu,
I've been trying to follow your example and build an azure function with Selenium that uses chromium driver, but it keeps failing to start chrome.
Packages I used:
When I publish/build the application,
chromedriver.exe
is in thebin\debug
andpublish
directories but azure function throws an exceptionI can see that binary is where it supposed to.
I've tested on consumption plans for both windows (
chromedriver.exe
) and linux (chromedriver
). Any suggestions on the solution?Error on premium app service plan Linux is slightly different and says that it could not start chrome service on port xxxx.
Repository with full code: https://github.com/karpikpl/selenium-azure-functions
--update
For playwright to work I had to run
but playwright expects a different directory:
Exception while executing function: RunPlaywright Driver not found: /home/site/.playwright/node/linux-x64/playwright.sh
so I had to copy.playwright
to/home/site
for it to workThe text was updated successfully, but these errors were encountered: