Hi,
Recently, I moved to Geb. In the project, there is a groovy class named as 'GenConfig.groovy'. In this class, we set our driver and browser configuration. I have few observations.
1.How does 'build.gradle' use this class?
2.In my project, we are not calling this from any of the classes as per my knowledge then how does driver open the URL that is mention in this class. As I know in Geb we mention our baseUrl that is being called by the browser.
3. Or from somewhere internally Geb is calling this on driver instance.
This question came out when I have created a new project for my practice. That project is the combination of "Geb+Spock+Gradle". In that, I have created "GebConfig.groovy" class and provided all the required configurations of driver and baseUrl. Then I simply wrote a groovy class to open a browser and perform some activity. But when I ran the program nothing happened. It didn't open the browser. So how do I use that GebConfig.groovy in our project to make it work. Do I need to make any changes in my 'build.gradle'?
Thanks,
Aditya