How to perform Headless Testing using HtmlUnitDriver in Selenium? Answer: Basically, headless testing is, running a script in the background without any visual of the browser. In simple words, this process doesn’t need any browser. This method can be used on the machines which don’t have any browser installed on them.
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
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
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() 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 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
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