Marcin - we found a way .. - pretty much thru Navigator:children / .text 
&.value ... with a recursive strategy ... maybe we could add that to the 
Navigator (e.g. printContentRecursively(....))


On Thursday, November 12, 2020 at 10:19:21 AM UTC+1 [email protected] 
wrote:

> (e.g. because the page is based on a dom modifying framework, e.g. react) 
> ... the key is to get the "thing" (in a human readable fashion) that is the 
> basis of the assertion .. 
>
> On Thu, Nov 12, 2020 at 10:11 AM clemens utschig <[email protected]> 
> wrote:
>
>> Hey Marcin- Thanks much. Will this also contain any modified dom elements?
>>
>> Marcin Erdmann <[email protected]> schrieb am Do., 12. Nov. 2020, 
>> 10:09:
>>
>>> I was by no means arguing the why, I just needed some clarification on 
>>> what exactly you are after.
>>>
>>> If it's the html of the whole page then you can use 
>>> WebDriver.getPageSource() (
>>> https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/WebDriver.html#getPageSource--).
>>>  
>>> You can obtain an instance of WebDriver from Browser.getDriver() (
>>> https://gebish.org/manual/current/api/geb/Browser.html#getDriver()).
>>>
>>> Marcin
>>>
>>> On Tue, Nov 10, 2020 at 7:14 PM clemens utschig <[email protected]> 
>>> wrote:
>>>
>>>> The current (fully rendered?) page that is used in my test..
>>>>
>>>> So if i have an assertion, e.g. $some.path == 1, i can find that 
>>>> *some.path* in the dump (that will serve as evidence to an auditor that 
>>>> the 
>>>> assertion part and value truly existed at the point of test)
>>>>
>>>> Please lets not argue about the why here. Its a hard requirement
>>>>
>>>>
>>>>
>>>> Marcin Erdmann <[email protected]> schrieb am Di., 10. Nov. 2020, 
>>>> 12:41:
>>>>
>>>>> Can you please define what you mean by "current dom tree"? Do you mean 
>>>>> page source? Or do you mean inner html of some of the elements you 
>>>>> inspect 
>>>>> in your test?
>>>>>
>>>>> Marcin
>>>>>
>>>>> On Tue, Nov 10, 2020 at 11:33 AM [email protected] <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Dear all,
>>>>>> we have a requirement (for official documentation) - to dump the 
>>>>>> current dom tree that is the basis of various test assertions into 
>>>>>> system 
>>>>>> out. 
>>>>>>
>>>>>> Anyone an idea on how to do this ... (preferrably in a formatted 
>>>>>> ("with intends") way ..
>>>>>>
>>>>>> thanks much
>>>>>>
>>>>>> -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "Geb User Mailing List" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to [email protected].
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/geb-user/2d687da9-5386-4052-9581-69136bee3776n%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/geb-user/2d687da9-5386-4052-9581-69136bee3776n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "Geb User Mailing List" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/geb-user/CA%2B52dQRXRbggbStLx1yi_ZbZB2jYcdKts3-fwkyLDBO3pGb08g%40mail.gmail.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/geb-user/CA%2B52dQRXRbggbStLx1yi_ZbZB2jYcdKts3-fwkyLDBO3pGb08g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Geb User Mailing List" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/geb-user/CAHBV8mLDXTjK1smdHO9n-kG3N4p%3Dj7AtowydbZNgJrqnCy%2BP-w%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/geb-user/CAHBV8mLDXTjK1smdHO9n-kG3N4p%3Dj7AtowydbZNgJrqnCy%2BP-w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Geb User Mailing List" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/geb-user/JQpKgvzxIb8/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/geb-user/CA%2B52dQQByx5F7KvEZQ%2Bva9rQTo6vdkttYOzHs2S4Mb_wRnK%3Daw%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/geb-user/CA%2B52dQQByx5F7KvEZQ%2Bva9rQTo6vdkttYOzHs2S4Mb_wRnK%3Daw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/55b157f0-7e0b-41bd-a057-88e992addf77n%40googlegroups.com.

Reply via email to