Re: [geb-user] Strange behavior for element

2020-12-09 Thread thokari
Right, when I wrote my suggestion, I did not consider the problem you 
have with the debugging process itself.

I mistook MissingPropertyExpression for ElementNotFoundException.

But keep in mind that when debugging, you are changing the timing of the 
browser communication, which might cause the problem not to be 
reproducible that way.


Am 09.12.2020 21:51 schrieb Marcin Erdmann:

If you put the breakpoint at the "at MyPage" line then the page
reference has not yet been switched to an instance of MyPage and
that's probably why you're getting a MissingPropertyExpression when
trying to evaluate "otherInsuranceAmount". I would suggest putting the
breakpoint after that line or trying to evaluate
"at(MyPage).otherInsuranceAmount".

On Tue, Dec 8, 2020 at 3:16 PM Ben Frey 
wrote:


I have an element on a page that's defined like this:

otherInsuranceAmount { $('[id$=otheramount]') }

When I debug my test and put a breakpoint at the "at MyPage" line, I
get a MissingPropertyException when I try to inspect
otherInsuranceAmount via the debugger. However, the expression
$('[id$=otheramount]') resolves just fine. What could cause this to
happen, and how do I fix it?

--
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 geb-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit


https://groups.google.com/d/msgid/geb-user/41b1a9f1-b402-485f-9f97-da5e7463cbfcn%40googlegroups.com

[1].


 --
 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 geb-user+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/CA%2B52dQRO7DK8w%2BsPpo2vpAV9AB6x%3DvRbsPVrm6DK9tKgWDV-fA%40mail.gmail.com
[2].


Links:
--
[1]
https://groups.google.com/d/msgid/geb-user/41b1a9f1-b402-485f-9f97-da5e7463cbfcn%40googlegroups.com?utm_medium=emailutm_source=footer
[2]
https://groups.google.com/d/msgid/geb-user/CA%2B52dQRO7DK8w%2BsPpo2vpAV9AB6x%3DvRbsPVrm6DK9tKgWDV-fA%40mail.gmail.com?utm_medium=email_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 geb-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/24bb157a8a1ec5f1783a4537cd4c1036%40posteo.de.


Re: [geb-user] Take screenshot of entire page

2020-12-09 Thread Ben Frey
Thanks, I'll see if AShot is an option.

On Wednesday, December 9, 2020 at 4:00:08 PM UTC-5 marcin@proxerd.pl 
wrote:

> I believe this is WebDriver implementation specific. I know that Firefox, 
> at least at some point in the past, would take screenshots of the whole 
> page and not just the viewport and that's what would end up in Geb reports 
> when using Firefox as the browser. If you would like a cross browser 
> solution for that then you need to write a custom reporter which would 
> employ something like AShot(https://github.com/pazone/ashot). This 
> section of their docs might be helpful: 
> https://github.com/pazone/ashot#capturing-the-entire-page.
>
> On Wed, Dec 9, 2020 at 2:22 PM Ben Frey  wrote:
>
>> Currently, when using the default reporter, the report command results in 
>> a screenshot of the current viewport. Is there a way to capture the entire 
>> rendered page without manual scrolling?
>>
>> -- 
>> 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 geb-user+u...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/geb-user/a303727c-5c40-448d-b194-579feaf4a436n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 geb-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/3771e646-4eab-42c6-befd-a43410e6acacn%40googlegroups.com.


Re: [geb-user] Take screenshot of entire page

2020-12-09 Thread Marcin Erdmann
I believe this is WebDriver implementation specific. I know that Firefox,
at least at some point in the past, would take screenshots of the whole
page and not just the viewport and that's what would end up in Geb reports
when using Firefox as the browser. If you would like a cross browser
solution for that then you need to write a custom reporter which would
employ something like AShot(https://github.com/pazone/ashot). This section
of their docs might be helpful:
https://github.com/pazone/ashot#capturing-the-entire-page.

On Wed, Dec 9, 2020 at 2:22 PM Ben Frey  wrote:

> Currently, when using the default reporter, the report command results in
> a screenshot of the current viewport. Is there a way to capture the entire
> rendered page without manual scrolling?
>
> --
> 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 geb-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/geb-user/a303727c-5c40-448d-b194-579feaf4a436n%40googlegroups.com
> 
> .
>

-- 
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 geb-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQTNLxpvmNJeQbTdqz%2BdNR6qPYt5fEZTXE1e4a_%2BEaF1rA%40mail.gmail.com.


Re: [geb-user] Strange behavior for element

2020-12-09 Thread Marcin Erdmann
If you put the breakpoint at the "at MyPage" line then the page reference
has not yet been switched to an instance of MyPage and that's probably why
you're getting a MissingPropertyExpression when trying to evaluate
"otherInsuranceAmount". I would suggest putting the breakpoint after that
line or trying to evaluate "at(MyPage).otherInsuranceAmount".

On Tue, Dec 8, 2020 at 3:16 PM Ben Frey  wrote:

> I have an element on a page that's defined like this:
> otherInsuranceAmount { $('[id$=otheramount]') }
>
> When I debug my test and put a breakpoint at the "at MyPage" line, I get a
> MissingPropertyException when I try to inspect otherInsuranceAmount via the
> debugger. However, the expression $('[id$=otheramount]') resolves just
> fine. What could cause this to happen, and how do I fix it?
>
> --
> 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 geb-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/geb-user/41b1a9f1-b402-485f-9f97-da5e7463cbfcn%40googlegroups.com
> 
> .
>

-- 
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 geb-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQRO7DK8w%2BsPpo2vpAV9AB6x%3DvRbsPVrm6DK9tKgWDV-fA%40mail.gmail.com.


[geb-user] Take screenshot of entire page

2020-12-09 Thread Ben Frey
Currently, when using the default reporter, the report command results in a 
screenshot of the current viewport. Is there a way to capture the entire 
rendered page without manual scrolling?

-- 
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 geb-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/a303727c-5c40-448d-b194-579feaf4a436n%40googlegroups.com.