Hi!

I'm making some experiments before writing the tests the the link rewriting code I'll write to complete the URL rewriting support. Then I discover something a little bit strange, at least for a Selenium beginner like me.

I changed my hosts file to make something.com point to localhost. At first, I run Jetty using virtual hosts (I added the support for in tapestry-test), without selenium. I request something.com:9999/login. Request.getServerName() returns "something.com", Request.getPath() returns "/login", everything as expected.

When I run exactly the same setup through Selenium, Request.getServerName() returns "localhost" and Request.getPath() returns "/something.com:9999/login". Isn't that weird? Unless we find some solution for this, I don't know how to test the link rewriting support when the server name is rewritten.

Any ideas?

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to