Created
April 10, 2015 15:37
-
-
Save musketyr/4a37538360a2f9d891be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group='commons-codec', module='commons-codec', version='1.10') | |
@Grab(group='org.gebish', module='geb-core', version='0.10.0') | |
@Grab(group='org.seleniumhq.selenium', module='selenium-firefox-driver', version='2.45.0') | |
import geb.* | |
import org.openqa.selenium.firefox.FirefoxDriver | |
new Browser(driver: new FirefoxDriver()).drive("https://invitados.upm.es/dana-na/auth/url_7/welcome.cgi") { | |
$('input', name: 'username').value("aplicaciones.groovy@invitadosupm") | |
$('input', name: 'password').value("groovy2015") | |
$('input', name: 'btnSubmit').click() | |
System.in.readln("Press ENTER to continue (but you may loose your session ;-))") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try with:
@grab(group='commons-codec', module='commons-codec', version='1.10')
@grab(group='org.gebish', module='geb-core', version='0.10.0')
@grab(group='org.seleniumhq.selenium', module='selenium-firefox-driver', version='2.45.0')
import geb.*
import org.openqa.selenium.firefox.FirefoxDriver
new Browser(driver: new FirefoxDriver()).drive() {
go "https://invitados.upm.es/dana-na/auth/url_7/welcome.cgi"
$('input', name: 'username').value("aplicaciones.groovy@invitadosupm")
$('input', name: 'password').value("groovy2015")
$('input', name: 'btnSubmit').click()
System.in.readln("Press ENTER to continue (but you may loose your session ;-))")
}