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

Issue 1651042: Throw exception if page load fails

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by viarheichyk
Modified:
13 years, 10 months ago
CC:
webdriver-mobile-eng_google.com
Base URL:
http://webkitdriver.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 4

Patch Set 2 : Report loading errors if enabled with setter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -5 lines) Patch
M driver/src/java/org/openqa/selenium/webkit/WebKitDriver.java View 1 3 chunks +7 lines, -2 lines 0 comments Download
M driver/src/java/org/openqa/selenium/webkit/WebKitInterface.java View 1 chunk +8 lines, -0 lines 0 comments Download
M driver/src/java/org/openqa/selenium/webkit/WebKitJNI.java View 1 chunk +8 lines, -0 lines 0 comments Download
M hlwk/WebKit/hl/JavaBindings.h View 1 chunk +1 line, -0 lines 0 comments Download
M hlwk/WebKit/hl/JavaBindings.cpp View 1 2 chunks +8 lines, -2 lines 0 comments Download
M hlwk/WebKit/hl/WebKitSupport/FrameLoaderClientHl.h View 1 chunk +1 line, -0 lines 0 comments Download
M hlwk/WebKit/hl/WebKitSupport/FrameLoaderClientHl.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
viarheichyk
13 years, 10 months ago (2010-06-11 11:35:18 UTC) #1
baran
Igor, shouldn't we be checking an environment variable to regard CURL warnings as errors in ...
13 years, 10 months ago (2010-06-11 11:48:52 UTC) #2
Eran
The major issue I saw is configuration of the driver through an environment property - ...
13 years, 10 months ago (2010-06-11 12:43:02 UTC) #3
viarheichyk
http://codereview.appspot.com/1651042/diff/1/5 File hlwk/WebKit/hl/JavaBindings.cpp (right): http://codereview.appspot.com/1651042/diff/1/5#newcode330 hlwk/WebKit/hl/JavaBindings.cpp:330: String str = client->error().localizedDescription(); On 2010/06/11 12:43:03, Eran wrote: ...
13 years, 10 months ago (2010-06-11 12:56:35 UTC) #4
baran
On 11 June 2010 13:43, <eranm@google.com> wrote: > The major issue I saw is configuration ...
13 years, 10 months ago (2010-06-11 13:00:04 UTC) #5
viarheichyk
13 years, 10 months ago (2010-06-11 13:33:11 UTC) #6
simonstewart
13 years, 10 months ago (2010-06-14 10:02:55 UTC) #7
http://codereview.appspot.com/1651042/diff/1/5
File hlwk/WebKit/hl/JavaBindings.cpp (right):

http://codereview.appspot.com/1651042/diff/1/5#newcode109
hlwk/WebKit/hl/JavaBindings.cpp:109: static char* reportLoadErrors =
getenv("WEBKITDRIVER_REPORT_LOAD_ERRORS");
On 2010/06/11 12:43:03, Eran wrote:
> This should be configured on driver creation - it's a classic behavioural
option
> that should be supplied on driver creation and remain consistent during its
> life.

The "webdriver way" of doing this is to accept a "Capabilities" object in the
constructor, and to read the value of a well-known key from there. I suggest
adding the key as a public final static String on the WebKitDriver.

Naturally, there should also be a no-arg constructor, which should set sensible
defaults.
Sign in to reply to this message.

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