Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(75)

Issue 10963044: workaround for selenium 2.33 vs firefox 23+ (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by felix8a
Modified:
12 years, 8 months ago
Reviewers:
kpreid2
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This fixes https://code.google.com/p/google-caja/issues/detail?id=1749 browser tests fail completely on firefox 23+ (beta and aurora) because selenium's executeScript() fails. I took a look at why executeScript is failing, and fixing it is not particularly simple. So instead I'm reducing our dependency on executeScript, because that's easy, and we really need to test firefox beta (there's a new failure revealed by this fix). We use executeScript in two ways: 1. querying firefox for build id, so we can tell different builds of firefox apart. I've downgraded this to 'best effort'. 2. opening a new window for each browser test. There doesn't really seem to be much value in doing that, and it complicates the test driver in weird ways. I've stripped out much of that code, so we now just re-use the same window instead of opening a new one.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -57 lines) Patch
M tests/com/google/caja/plugin/WebDriverHandle.java View 6 chunks +29 lines, -57 lines 1 comment Download

Messages

Total messages: 10
felix8a
12 years, 8 months ago (2013-07-10 07:33:25 UTC) #1
kpreid2
https://codereview.appspot.com/10963044/diff/1/tests/com/google/caja/plugin/WebDriverHandle.java File tests/com/google/caja/plugin/WebDriverHandle.java (right): https://codereview.appspot.com/10963044/diff/1/tests/com/google/caja/plugin/WebDriverHandle.java#newcode116 tests/com/google/caja/plugin/WebDriverHandle.java:116: // we just re-use the same window. This will ...
12 years, 8 months ago (2013-07-10 16:39:47 UTC) #2
felix8a
On 2013/07/10 16:39:47, kpreid2 wrote: > https://codereview.appspot.com/10963044/diff/1/tests/com/google/caja/plugin/WebDriverHandle.java > File tests/com/google/caja/plugin/WebDriverHandle.java (right): > > https://codereview.appspot.com/10963044/diff/1/tests/com/google/caja/plugin/WebDriverHandle.java#newcode116 > ...
12 years, 8 months ago (2013-07-10 16:51:11 UTC) #3
kpreid2
On 2013/07/10 16:51:11, felix8a wrote: > this still leaves failed windows alone. if a test ...
12 years, 8 months ago (2013-07-10 17:01:39 UTC) #4
felix8a
On 2013/07/10 17:01:39, kpreid2 wrote: > On 2013/07/10 16:51:11, felix8a wrote: > > this still ...
12 years, 8 months ago (2013-07-10 17:27:56 UTC) #5
kpreid2
On 2013/07/10 17:27:56, felix8a wrote: > if that's a problem I can put a max ...
12 years, 8 months ago (2013-07-10 17:36:04 UTC) #6
felix8a
On 2013/07/10 17:36:04, kpreid2 wrote: > On 2013/07/10 17:27:56, felix8a wrote: > > if that's ...
12 years, 8 months ago (2013-07-10 21:38:40 UTC) #7
felix8a
btw, reusing the same window seems to be marginally faster than opening new windows
12 years, 8 months ago (2013-07-10 21:43:15 UTC) #8
kpreid2
On 2013/07/10 21:38:40, felix8a wrote: > That was the first thing I tried, but it ...
12 years, 8 months ago (2013-07-10 21:46:50 UTC) #9
felix8a
12 years, 8 months ago (2013-07-10 22:47:26 UTC) #10
@r5479
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b