
In this tutorial we are going to see the introduction of Geb and this tutorial contain
In this tutorial you are going to see a comparative study of Selenium WebDriver and Geb and here you would be able to see the advantages of Geb over Selenium WebDriver
This tutorial covers a step by step demonstration of java installation in windows machine.Starting from downloading right version of JDK to installation.
Setting Java Classpath has been covered in this tutorial and this has included step by step path to set class path in windows machine.
This tutorial is the first step toward the installation of eclipse one de facto IDE which have features like anything
This tutorial is going to have the knowledge to install groovy in eclipse ide and this is the first step to the learning of groovy programming language.
In this tutorial we are going to see
Learn groovy comment syntax in automation with Geb and Spock, including single line //, multi-line /* ... */, and the shebang #! /usr/bin/env groovy, while a script prints hello world.
Create a groovy class and a groovy script in eclipse, run them to print 'Hello World', and learn the differences between groovy class and script.
Explores how Groovy scripts run without a class or main method, then shows how the script is compiled into bytecode and transformed into a groovy.lang.Script subclass with a run method.
This tutorial is going to cover the identifier used in Groovy programming language and have some good example of good and bad identifier definition in groovy.
Variables are the real life line of any programming language and in this tutorial we have talked much about variables in groovy
This tutorial have the real concept of object and its creation, In this tutorial we have talked about
explore looping in groovy using for loops and each loops, practice iterating over lists, and print numbers from 1 to 5 to reinforce syntax.
Explore arrays in groovy by creating arrays, adding elements, and accessing values by 0-based indices; learn how size reflects element count and how min and max values are retrieved.
Explore Groovy lists as a flexible data structure, learn to create, add, access by index, insert at positions, and remove elements, while checking size and counts.
Create and locate a text file, then read its full content using Groovy's file text property and print the result to the console.
Learn how to read a text file word by word in groovy by reading lines, tokenizing on whitespace, iterating each word, and printing results.
This is the first step in learning of Geb framework because here we are going to see basic installation process of Geb using maven.
In this tutorial we are going to learn
This tutorial is going to help you to import eclipse project in you eclipse.
Learn how to launch chrome browser in Geb by downloading and extracting the ChromeDriver, configuring an Eclipse project, and setting the system property for the driver path.
Learn to interact with content using a navigator and a page filter. Install a creative plugin to drive basic Ciccarelli selector and use the dollar function in G20.
Master advanced css selectors in Geb for Spock by using attribute-based matching, pattern matching (starts with, contains), id and class handling, and parent-child navigation to identify inputs and text boxes.
Identify and interact with page elements using a Firefox automation script in Geb and Spock, inspect selectors, and verify elements like the first name input are present.
Learn to automate text box input with Geb and Spock by entering first name and last name, using navigators to identify elements and modify values.
Explore how to identify and select a radio button in Geb using a copied CSS selector and navigator, and execute the selection within a Spock-based automation flow.
Learn how to handle a checkbox using Geb by locating the element by its id, selecting the checkbox, and validating the interaction, with notes on related radio button usage.
Learn how to select options from a drop-down in geb by navigating the browser, locating option elements, and assigning values like Europe and Australia.
Explore configuring Geb with GebConfig.groovy to control drivers, browsers, and environment settings, learn about config slots and properties, and apply default configurations.
Explore how the driver() method controls the browser in Geb and Spock, interact with radio buttons and checkboxes, and manage live element handling in automated tests.
Learn to configure spock in eclipse by downloading groovy and maven dependencies, converting a project to maven, and adding spock core to the pom.xml dependencies.
Learn how to align Spock with the Groovy compiler by updating the groovy-all dependency in Maven, selecting Groovy version 2.4.3 to match the compiler.
In this section we are going to learn about blocks like when, then, given, expect and setup and where in detail with generic examples.
Learn how Spock fixture methods automate setup and cleanup, introducing setup, cleanup, setup is back, and cleanup is back, with a live example showing execution order around features.
Explore a generic template for page classes, using a fixed pattern of static blocks, inheritance from a base class, and content blocks with identifiers to define navigators.
Geb:
Geb is a testing framework for automation of browser which is written on top of Selenium WebDriver library so it can works on all browsers that is supported by Selenium. We have two added benefit in one way we are working with Geb that provides an extra layer of convenience and productivity but we have freedom to switch back to Selenium to perform all the automation in Selenium Ways.
Geb uses the dynamic language features of Groovy to provide a powerful content definition DSL (for modelling content for reuse) and key concepts from jQuery to provide a powerful content inspection and traveral API (for finding and interacting with content). So in another word we could say
GEB = Selenium WebDriver + Java +Groovy +Jquery
Spock:
In this course we would be learning one more testing framework Spock that is again a very sophisticated testing and specification based framework for Java and Groovy. Spock Testing framework uses a very expressive and to the point specification language.
Please watch this course at 1.25X or 1.5X speed to avoid long wait in speech.
This course is going to give you confidence in web application automation with Geb and Spock.
So wish you all a happy learning and hope for the birth of one more Automation Engineer.
Note: I would be happy to help you through answering your GEB and SPOCK related query in Q&A section. So don't hesitate to ask your query in Q&A section of this course