How to refresh or reload a page using GEB?

1,608 views
Skip to first unread message

dw...@groupon.com

unread,
Nov 13, 2017, 9:54:21 AM11/13/17
to Geb User Mailing List
Hello,

I need to refresh the web page under test after 1 minutes of wait. I need to repeat this for 2 to 3 times to see some elements to be appeared on the page. How I can achieve this using Geb?

Thanks,
Dwiparna

Marcin Erdmann

unread,
Nov 13, 2017, 4:14:40 PM11/13/17
to Geb User Mailing List
driver.navigate().refresh()

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/caaa021b-0fca-4aa4-83ae-6feb6638afc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ramesh

unread,
Nov 15, 2017, 2:08:08 PM11/15/17
to Geb User Mailing List
or just use

go()



On Monday, November 13, 2017 at 4:14:40 PM UTC-5, Marcin Erdmann wrote:
driver.navigate().refresh()

On Mon, Nov 13, 2017 at 2:54 PM, dwpal via Geb User Mailing List <geb-...@googlegroups.com> wrote:
Hello,

I need to refresh the web page under test after 1 minutes of wait. I need to repeat this for 2 to 3 times to see some elements to be appeared on the page. How I can achieve this using Geb?

Thanks,
Dwiparna

--
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.

Marcin Erdmann

unread,
Nov 16, 2017, 4:05:29 AM11/16/17
to Geb User Mailing List
On Wed, Nov 15, 2017 at 7:08 PM, Ramesh <ramesh....@gmail.com> wrote:
or just use

go()


Note that using go() will not necessarily refresh the page but navigate to the base url.

besant technologies

unread,
Dec 27, 2017, 12:17:25 AM12/27/17
to Geb User Mailing List
It is really a great work and the way in which you are sharing the knowledge is excellent.

Reply all
Reply to author
Forward
0 new messages