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

DNS #2

Open
woutGdpr opened this issue Nov 12, 2020 · 1 comment
Open

DNS #2

woutGdpr opened this issue Nov 12, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@woutGdpr
Copy link

woutGdpr commented Nov 12, 2020

Hello

when i connect to the container with webdriver.remote i get this error.

selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=dnsNotFound&u=https%3A//www.youtube.com/&c=UTF-8&d=We%20can%E2%80%99t%20connect%20to%20the%20server%20at%20www.youtube.com

Here is my code.

options = Options()
options.add_argument("--headless")
driver = webdriver.Remote(command_executor="172.18.0.1:4444", options=options)
driver.get("https://www.youtube.com")

And to run the container i used
docker run -d -p 4444:4444 instrumentisto/geckodriver

As the command_executor i used 172.18.0.1:4444 because im running it on a wsl and 172.18.0.1 is my local adress that docker uses.

thanks in advance for the help 😃

@tyranron
Copy link
Member

cc @quite4work

@tyranron tyranron added the bug Something isn't working label Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants