From today I am going to give basic concept on automated functional testing using Geb and Selenium.Today I am going to explain Selenium concept and in next session I will explain Geb and how to use Selenium in Geb. First-of-all be clear that Selenium and Geb are used for automated functional testing.
To use Selenium just put the plug-in in BuildConfig.groovy:

Now just make a functional testing class as defined below:

Here I have used java code you could use any programing language which are supported by Selenium and Geb.

Here is the resultant screen when we run the SampleTestSpec.In next session I will explain you how to use Selenium via Geb.