In Geb, I have a page www.something.com/ and a page that has an exact layout, except content is different. (For ex. www.something.com/?pg=2) I have a Page class declared.
class SearchPage extends Page
{
static url = "www.something.com"
static content =
{
//my content declarations
}
def mySpecialFunction(){..}
}
I can call mySpecialFunction on this searchpage(www.something.com/) by using page.mySpecialFucntion(), but I'm just unsure how to call myspecialFunction() on www.something.com/?pg=2, then www.something.com/?pg=3, and so on. Thank you