Issue Details (XML | Word | Printable)

Key: SRC-169
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dan Fabulich
Reporter: Dan Fabulich
Votes: 1
Watchers: 1
Operations

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

under proxyInjection mode, alerts/confirmations/prompts don't work in FF unless stepped through using the debugger

Created: 07/Nov/06 06:48 PM   Updated: 12/Aug/08 05:37 PM
Component/s: Launcher - Firefox, Proxy Injection
Affects Version/s: 0.9.0
Fix Version/s: None


 Description  « Hide

From Nelson's e-mail: Another problem which I didn't get to: those tests which require the ability to propogate state across window reloadings (TestAlerts, TestConfirmations, TestPrompts) don't work in Firefox unless stepped though using the debugger.



Sort Order: Ascending order - Click to sort in descending order
Dan Fabulich added a comment - 19/Oct/07 05:06 PM

I think this is probably related to SRC-327. The window is closing and so the extra XHRs aren't necessarily getting sent.


Jack Senechal added a comment - 31/Oct/07 04:57 PM

I'm observing a bug which may be the same or related... I'm using -proxyInjectionMode, and when I try to verify a confirmation it sometimes succeeds and sometimes fails. The confirmation seems to show up about 30% of the time. When it doesn't show, and I use getConfirmation(), I get this error back:

"The Response of the Selenium RC is invalid: ERROR: There were no confirmations"

Another point of interest is that when the confirmation doesn't show up, the following waitForPageToLoad() times out. I don't grok the relationship between the two, but there clearly is one...

In order to work around, I've got to use the following code (PHP)

$this->selenium->click("some_button");
if ($this->selenium->isConfirmationPresent())

{ $this->selenium->getConfirmation(); $this->selenium->waitForPageToLoad("30000"); }

$this->assertTrue($this->selenium->isTextPresent("Some text on the next page"));

Here's my server info, in case it helps:

21:46:42.659 INFO - Java: Sun Microsystems Inc. 1.6.0_03-b05
21:46:42.660 INFO - OS: Linux 2.6.22-14-generic i386
21:46:42.662 INFO - v0.9.2 [2006], with Core v0.8.3 [1879]
21:46:42.859 INFO - Version Jetty/5.1.x