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

Issue 1207042: DOM objects dump

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

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M driver/src/java/org/openqa/selenium/webkit/WebKitDriver.java View 4 chunks +10 lines, -1 line 1 comment 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 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 9
razmyslovich
13 years, 11 months ago (2010-05-14 12:34:59 UTC) #1
baran
LGTM
13 years, 11 months ago (2010-05-17 08:46:02 UTC) #2
Eran
getPageSource may be more suitable than getScreenshotAs for returning the DOM dump. http://codereview.appspot.com/1207042/diff/1/4 File driver/src/java/org/openqa/selenium/webkit/WebKitDriver.java ...
13 years, 11 months ago (2010-05-17 09:34:55 UTC) #3
baran
That's good point. Vadzim, do you think we can move screen dump generation to getPageSource ...
13 years, 11 months ago (2010-05-17 09:50:50 UTC) #4
Anatoli
As far as I understand getPageSource is already implemented. I thought that idea was to ...
13 years, 11 months ago (2010-05-17 10:13:39 UTC) #5
Anatoli
Another idea: can draw rectangle according to it coordinate and add debug/help info? It can ...
13 years, 11 months ago (2010-05-17 10:14:55 UTC) #6
razmyslovich
Yes, getPageSource is already implemented so we can't change it (as it behaves according to ...
13 years, 11 months ago (2010-05-17 10:39:05 UTC) #7
baran
Thanks Vadzim. Then in this case the getScreenshot implementation becomes redundant. Returning an image is ...
13 years, 11 months ago (2010-05-17 10:43:57 UTC) #8
shs_google.com
13 years, 11 months ago (2010-05-17 10:52:41 UTC) #9
Why use JNI for this when you could just cast the driver instance to a
JavascriptExecutor and use the "innerHTML" or "outerHTML" properties?
The less complexity in the code, the better.

Returning a PNG is only necessary if you implement the TakesScreenshot
interface.

Simon

On Mon, May 17, 2010 at 11:39 AM, Vadzim Razmyslovich
<razmyslovich@google.com> wrote:
> Yes, getPageSource is already implemented so we can't change it (as it
> behaves according to WebDriver expectations). But in fact they behave in a
> very similar way, difference is being innerHTML versus outerHTML.
> I don't think the idea was to return JNI as an image (say png file)
> On Mon, May 17, 2010 at 1:14 PM, Anatoli Kuzmin <kuzmin@google.com> wrote:
>>
>> Another idea: can draw rectangle according to it coordinate and add
>> debug/help info?
>> It can be very useful
>>
>> On Mon, May 17, 2010 at 11:13 AM, Anatoli Kuzmin <kuzmin@google.com>
>> wrote:
>>>
>>> As far as I understand getPageSource is already implemented.
>>> I thought that idea was to return DOM as image. correct?
>>>
>>> On Mon, May 17, 2010 at 10:50 AM, Baran ♪ <baran@google.com> wrote:
>>>>
>>>> That's good point.
>>>> Vadzim, do you think we can move screen dump generation to getPageSource
>>>> instead?
>>>>
>>>> - Baran
>>>>
>>>> On 17 May 2010 10:34, <eranm@google.com> wrote:
>>>>>
>>>>> getPageSource may be more suitable than getScreenshotAs for returning
>>>>> the DOM dump.
>>>>>
>>>>>
>>>>> http://codereview.appspot.com/1207042/diff/1/4
>>>>> File driver/src/java/org/openqa/selenium/webkit/WebKitDriver.java
>>>>> (right):
>>>>>
>>>>> http://codereview.appspot.com/1207042/diff/1/4#newcode829
>>>>> driver/src/java/org/openqa/selenium/webkit/WebKitDriver.java:829:
>>>>> Looks like getPageSource is more suitable for getting the DOM dump than
>>>>> getScreenshot.
>>>>>
>>>>> http://codereview.appspot.com/1207042/show
>>>>
>>>
>>>
>>>
>>> --
>>> -------
>>> Anatoli
>>
>>
>>
>> --
>> -------
>> Anatoli
>
>
Sign in to reply to this message.

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