This is an small and simple example of Key Driven Framework to execute test cases using excel sheet in Selenium(JAVA). Key Driven framework is based on keywords which are used to control the execution of the script without modifying the actual code. A tester has to just set the keywords whichRead More
Month: July 2018
Properties File | Accessing properties file for user input or test data.
According to name, a Properties file is used to define properties of keys which would have been used in our Selenium project. A Property file contains data in Key=Value format. It helps external users to communicate with the code and generate output on the basis of inputs. Features of a Property File: Can be usedRead More
Selenium Grid | Configuration and implementation with Example.
As the name sounds ‘Grid’ which is a combination of parallel lines. Hence, technically it stands for parallel execution of test cases using Selenium on multiple browsers and platforms. Architecture of Grid Selenium Grid works on the hub-node concept similar to the server-client. Hub: The hub is the center point or we can say actsRead More
getWindowHandle() and getWindowHandles() methods.
getWindowHandle() stores the reference of the currently active window. On the other hand, getWindowHandles() returns a list of all the opened windows associated with a particular driver instance. getWindowHandle() It basically returns an id(handle) pointing to the currently active window. The return type of this method is a String type. We can use this referenceRead More
iFrame || iFrame Handling within a web page.
iframe is an HTML tag which is used to embed another document or webpage into the current HTML page. We cannot access web elements inside an iframe directly using selenium. We have to first move into the iframe, then only, we can access the elements. This process is called iframe handlingRead More
iFrame || Multiple ways to handle iFrame html tag using selenium.
In our, last post we had learned how to handle iframes on a web page as we can’t access web element present inside an iframe directly. There are multiple ways to handle iframe using selenium. We have to first switch the focus inside the iframe using the switchTo statement onlyRead More
Windows Handling | Multiple windows handling using JavascriptExecutor.
Traversing through multiple windows using ‘JavascriptExecutor’ and selecting user-defined tab window with ‘Title Partial Text’. This process is called multiple windows handling. Some times we have to open multiple windows (tabs) as per the requirement and need to switch the control through various tabs to select user definedRead More