selenium webdriver - How to set a browser cookie when writing tests with Geb and Spock -


i have quick question. newcomer geb , spock. i'm excited have chance learn more both of them.

the initial problem i'm faced how can add cookie (or other means) in order dismiss walk-through first appears when application under test first runs using geb+spock?

any ideas might have on great. in order use when , blocks, etc... first have dismiss walk-through. much.

geb build on top of selenium webdriver, applies well: how send cookies selenium webdriver?

import geb.spock.gebspec  class gebcookiespec extends gebspec {      def setup() {         cookie ck = new cookie("name", "value");         browser.driver.manage().addcookie(ck);     } } 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -