There are two approaches I know about:
- you can use WebDriver#get(String url)
- you can inject a custom URL using URLResourceProvider:
We haven't implemented this feature into Graphene 2.0 finally, because it is uncertain how it is going to influence other extensions that @RunAsClient.
We are going to implement it in 2.1 and port it to 2.0 if necessary.
Please vote here:
Note: they might be other approaches how to switch port in an URL provided by the container, but none that I'm aware of ATM.