Selenium WebDriver Tutorial #20 – How to Handle Auto Suggestion Dropdown

In this Selenium Webdriver Tutorial we will learn How to Handle Auto Suggestion Dropdown in Selenium WebDriver. Nowadays many of the travel website implement autosuggestion search feature to display the results based on the initial word typed in the textbox, this can be handled in Selenium WebDriver using the technique shown in this video.

Selenium WebDriver Tutorial #19 – How to Print all Links of a Webpage

In this Selenium Webdriver Tutorial we will learn how to print all links of a webpage in Selenium WebDriver. In many scenarios you would be required to verify the presence of links or common element types on page, this technique will help you to find those webelements which have some common attributes.

Selenium WebDriver Tutorial #18 – How to Handle Dropdown in Selenium – Part 2

In this Selenium Webdriver Tutorial we will learn How to Handle Dropdown in Selenium WebDriver, I will walk through with examples for handling multi-select dropdowns. In this part-2 of handling dropdown tutorial we will learn about following methods in Select class of Selenium WebDriver.

✅ selectByIndex(int index) – Select the option at the given index.

✅ selectByValue(java.lang.String value) – Select all options that have a value matching the argument.

✅ selectByVisibleText(java.lang.String text) – Select all options that display text matching the argument.

✅ deselectAll() – Clear all selected entries.

✅ deselectByIndex(int index) – Deselect the option at the given index.

✅ deselectByValue(java.lang.String value) – Deselect all options that have a value matching the argument.

✅ deselectByVisibleText(java.lang.String text) – Deselect all options that display text matching the argument.

✅ getAllSelectedOptions()

Selenium WebDriver Tutorial #15 – Basic Methods in WebDriver Interface – Part 2

In this Selenium Webdriver Tutorial we will learn about few more basic methods in WebDriver Interface. We will understand the basic methods along with examples and how to use those methods in Selenium Automation. Some of the methods which we will learn are:

✅ getWindowHandle(): Return an opaque handle to this window that uniquely identifies it within this driver instance.

✅ getWindowHandles(): Return a set of window handles which can be used to iterate over all open windows of this WebDriver instance by passing them to switchTo().WebDriver.Options.window()

✅ switchTo(): Send future commands to a different frame or window.

✅ findElement(By by): Find the first WebElement using the given method.

✅ findElements(By by): Find all elements within the current page using the given mechanism.

Selenium WebDriver Tutorial #14 – What are the Basic Methods in WebDriver Interface

In this Selenium Webdriver Tutorial we will learn about “What are the basic methods in WebDriver Interface. We will understand the basic methods along with examples and how to use those methods in Selenium Automation. Some of the basic WebDriver Interface methods are:

✅ get(java.lang.String url): Load a new web page in the current browser window.

✅ manage(): Gets the Option interface.

✅ getCurrentUrl(): Get a string representing the current URL that the browser is looking at.

✅ getTitle(): The title of the current page.

✅ getPageSource(): Get the source of the last loaded page.

✅ navigate(): An abstraction allowing the driver to access the browser’s history and to navigate to a given URL. ✅ quit(): Quits this driver, closing every associated window.

✅ close(): Close the current window, quitting the browser if it’s the last window currently open.

✅ getWindowHandle(): Return an opaque handle to this window that uniquely identifies it within this driver instance.

✅ getWindowHandles(): Return a set of window handles which can be used to iterate over all open windows of this WebDriver instance by passing them to switchTo().WebDriver.Options.window()

✅ switchTo(): Send future commands to a different frame or window.
✅ findElement(By by): Find the first WebElement using the given method.

✅ findElements(By by): Find all elements within the current page using the given mechanism.