History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-482
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Eric Z. Ayers
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

Unexpected POST URL request when using Selenium-RC with *safari on a Mac

Created: 30/May/08 02:29 PM   Updated: 12/Aug/08 05:35 PM
Component/s: Launcher - Safari
Affects Version/s: 1.0 beta 1
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Java Archive File selenium-rc-safari-test4.jar (7 kb)

Environment: Problem occurs when launching Safari using the string '*safari' on mac os X (10.4 and another user in the forum reports 10.5 too)


 Description  « Hide
I wrote a small program to reproduce the problem:

$ java -cp ./selenium-rc-safari-test4.jar:./selenium-java-client-driver.jar com.example.seleniumrc.SafariTest myserver.mydomain.net
[Faux Server] Waiting for a new connection on port: 18892
Loop: 0
[Faux Server] Connection: 1 Looking for HTTP command.
[Faux Server] Connection: 1 : GET /foo.html HTTP/1.1

Sending response to HTTP request
Loop: 1
[Faux Server] Connection: 2 Looking for HTTP command.
[Faux Server] Connection: 2 : POST /selenium-server/driver/?retry=true&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_92855&sessionId=2f013e8db3b046388d96bf779fc223c4&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1212175452616&sequenceNumber=50 HTTP/1.1

Sending response to HTTP request
[Faux Server] Connection: 2 Got unexpected request for: POST /selenium-server/driver/?retry=true&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_92855&sessionId=2f013e8db3b046388d96bf779fc223c4&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1212175452616&sequenceNumber=50 HTTP/1.1



 All   Comments   Work Log   Change History      Sort Order:
Eric Z. Ayers - 30/May/08 02:32 PM
On my setup, this test program reproduces the problem, but it doesn't happen consistently, that's why the test runs in a loop.

It mocks up a web server in the same process and serves up a dummy web page for every request. If any request comes in that doesn't recognize, it writes the request to stderr.

$ java -cp ./selenium-rc-safari-test4.jar:./GWT/tools/lib/selenium/selenium-java-client-driver.jar com.example.seleniumrc.SafariTest mymachine.mydomain.net
[Faux Server] Waiting for a new connection on port: 18892
Loop: 0
[Faux Server] Connection: 1 Looking for HTTP command.
[Faux Server] Connection: 1 : GET /foo.html HTTP/1.1

Sending response to HTTP request
Loop: 1
[Faux Server] Connection: 2 Looking for HTTP command.
[Faux Server] Connection: 2 : POST /selenium-server/driver/?retry=true&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_92855&sessionId=2f013e8db3b046388d96bf779fc223c4&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1212175452616&sequenceNumber=50 HTTP/1.1

Sending response to HTTP request
[Faux Server] Connection: 2 Got unexpected request for: POST /selenium-server/driver/?retry=true&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_92855&sessionId=2f013e8db3b046388d96bf779fc223c4&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1212175452616&sequenceNumber=50 HTTP/1.1

Eric Z. Ayers - 30/May/08 02:36 PM