Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spawning Chrome/Edge browser in Windows from WSL2 #151

Open
Et9797 opened this issue May 25, 2022 · 0 comments
Open

Spawning Chrome/Edge browser in Windows from WSL2 #151

Et9797 opened this issue May 25, 2022 · 0 comments

Comments

@Et9797
Copy link

Et9797 commented May 25, 2022

I would like to spawn Chrome/Edge browsers that are on Windows paths but from within wsl2 where I'm running arsenic. The reason is that spawning Chrome installed on wsl2 in an XLaunch server is laggy on my pc. However, I cannot seem to find how to provide the Windows chrome/edge browser exec paths to arsenic. For the drivers I managed to make it work, but it will not spawn the browser in Windows.

from arsenic.services import Chromedriver, MSEdgeDriver
from arsenic.browsers import Chrome, MicrosoftEdge

service = MSEdgeDriver(binary="/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedgedriver.exe")
browser = MicrosoftEdge(binary="/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe")

await start_session(service, browser)

When I run this the driver starts running successfully, however the browser is not started in Windows. Any help appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant