@Grapes([ @Grab("org.gebish:geb-core:2.3.1"), @Grab(group='io.github.bonigarcia', module='webdrivermanager', version='3.4.0'), @Grab(group='org.seleniumhq.selenium', module='selenium-chrome-driver', version='3.141.0'), @Grab(group='org.seleniumhq.selenium', module='selenium-support', version='3.141.0')])
import io.github.bonigarcia.wdm.WebDriverManagerimport org.openqa.selenium.chrome.ChromeDriverimport org.openqa.selenium.chrome.ChromeOptionsimport org.openqa.selenium.remote.DesiredCapabilitiesimport geb.Browser
WebDriverManager.chromedriver().setup();
Browser.drive { go "http://gebish.org"
assert title == "Geb - Very Groovy Browser Automation"
$("div.menu a.manuals").click() waitFor { !$("#manuals-menu").hasClass("animating") }
$("#manuals-menu a")[0].click()
assert title.startsWith("The Book Of Geb") }import org.openqa.selenium.chrome.ChromeDriverimport org.openqa.selenium.chrome.ChromeOptionsdriver = { ChromeOptions o = new ChromeOptions() o.addArguments('headless') new ChromeDriver(o)}@Grapes([ @Grab("org.gebish:geb-core:2.3.1"), @Grab(group='io.github.bonigarcia', module='webdrivermanager', version='3.4.0'), @Grab(group='org.seleniumhq.selenium', module='selenium-chrome-driver', version='3.141.0'), @Grab(group='org.seleniumhq.selenium', module='selenium-support', version='3.141.0')])
import io.github.bonigarcia.wdm.WebDriverManagerimport org.openqa.selenium.chrome.ChromeDriverimport org.openqa.selenium.chrome.ChromeOptionsimport org.openqa.selenium.remote.DesiredCapabilitiesimport geb.Browser
WebDriverManager.chromedriver().setup();
driver = { ChromeOptions o = new ChromeOptions() o.addArguments('headless') new ChromeDriver(o)}
Browser.drive { go "http://gebish.org"
assert title == "Geb - Very Groovy Browser Automation"
$("div.menu a.manuals").click() waitFor { !$("#manuals-menu").hasClass("animating") }
$("#manuals-menu a")[0].click()
assert title.startsWith("The Book Of Geb") }--
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 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/26f740de-6432-4606-b56c-fedf4acb06be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@Grapes([ @Grab("org.gebish:geb-core:2.3.1"), @Grab(group='io.github.bonigarcia', module='webdrivermanager', version='3.4.0'), @Grab(group='org.seleniumhq.selenium', module='selenium-chrome-driver', version='3.141.0'), @Grab(group='org.seleniumhq.selenium', module='selenium-support', version='3.141.0')])
import io.github.bonigarcia.wdm.WebDriverManagerimport org.openqa.selenium.chrome.ChromeDriverimport org.openqa.selenium.chrome.ChromeOptionsimport org.openqa.selenium.remote.DesiredCapabilitiesimport geb.Configurationimport geb.Browser
WebDriverManager.chromedriver().setup();
def configuration = new Configuration( driver: { ChromeOptions o = new ChromeOptions() o.addArguments('headless') new ChromeDriver(o) })
Browser.drive(configuration) {To unsubscribe from this group and stop receiving emails from it, send an email to geb-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@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/df908165-2224-4c72-8177-a96cc42b5a82%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/CALYktxOCw-5CEG2evpQgch2kVYon4jMvfZch%3DPYwW8eSzsywOw%40mail.gmail.com.