How can I update the webdriver in Before/After Cucumber hooks?

15 views
Skip to first unread message

Meriya Thomas

unread,
Jan 11, 2018, 1:46:29 PM1/11/18
to Geb User Mailing List
Hi,

I have a requirement to set a new driver before every test scenario. I tried to change the driver in the Before hook of Cucumber. But it's still using the driver that was defined in GebConfig.groovy,
Is there a way update the driver before every test scenario?

Thanks!

Marcin Erdmann

unread,
Jan 13, 2018, 5:19:36 AM1/13/18
to Geb User Mailing List
Can you please elaborate why you need to set a new driver before each test scenario? Also, what do you mean by "a new driver" - a new instance of the same driver type or completely different driver?

--
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/61c0dbea-18d6-463b-a410-7145baf134ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages