question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selenium docs suggest deprecated `getTestHostIpAddress()` instead of host exposing mechanism

See original GitHub issue

Trying to get my Selenium WebDriver testcontainer up, I get the following error when I try to get the host’s port using getTestHostIpAddress():

Caused by: java.lang.UnsupportedOperationException: getTestHostIpAddress() is only implemented for docker-machine right now

I am running this on Ubuntu 20.04

Any ideas?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
GregJohnStewartcommented, Feb 20, 2022

lol I meant to the Webdriver docs, they just have you use getTestHostIpAddress()

1reaction
bsideupcommented, Feb 20, 2022

Ah, great point, thank you! Would you like to contribute a fix? 😃

Here is the file: https://github.com/testcontainers/testcontainers-java/blob/master/docs/modules/webdriver_containers.md

Read more comments on GitHub >

github_iconTop Results From Across the Web

Networking and communicating with containers - Testcontainers
getContainerIpAddress() is believed to be confusingly named, and will eventually be deprecated. Exposing host ports to the container. In some cases it is ......
Read more >
Deprecated List - Selenium
When searching for a single element, the driver should poll the page until the element has been found, or this timeout expires before...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found