I would like to dynamically execute a groovy statement from my database.
I'm currently using geb (www.gebish.org) to automate my browser and i would like the use "css selectors" from my database.
For example:
Browser.drive {
go "www.test.com"
$("form", name: "password").value("Test")
}
In this example i would like to move "$("form", name: "password").value("Test")" completely to the database and just call it dynamically in my code. In such a thing possible?
I'm new to Groovy and Java and maybe i have a error in reasoning and there is a simpler solution for such a problem...please help me :)