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
Window Handling
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