Handling of HTML Dropdown Using Selenium WebDriver
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=WRLZASByeiE
In this video, I have shown the handling of HTML Dropdown Using Selenium WebDriver • Selenium WebDriver is an open-source tool for automated testing of web apps across many browsers. • Every HTML element needs to be handled in a way it is designed for. • In this video, I have explained how we can handle dropdowns using Selenium WebDriver. • For handling dropdowns selenium is providing one class called Select which is available under package org.openqa.selenium.support.ui . • The select class is providing multiple methods to work with dropdowns, Those are as follows: • selectByIndex: Select the option at the given index. • selectByValue: Select all options that have a value matching the argument. • selectByVisibleText: Select all options that display text matching the argument. • deselectAll: Clear all selected entries. • deselectByIndex: Deselect the option at the given index. • deselectByValue: Deselect all options that have a value matching the argument. • deselectByVisibleText: Deselect all options that display text matching the argument. • getAllSelectedOptions: Returns all selected options belonging to this select tag • getFirstSelectedOption: Returns the first selected option in this select tag (or the currently selected option in a normal select) • getOptions: Returns all options belonging to this select tag • isMultiple: verifies whether this select element support selecting multiple options at the same time? This is done by checking the value of the multiple attribute. • Using these above methods we can select the option in the dropdown or deselect the option in the dropdown or get the options from the dropdown. • ============================================== • ************* Checkout my other playlists ************* • ============================================== • Java Programming videos playlist:π • π https://bit.ly/3keRJGa • Selenium WebDriver with Java videos playlist:π • π https://bit.ly/2FyKvxj • Selenium interview questions videos playlist:π • π https://bit.ly/3matUB3 • Windows automation with FlaUI videos playlist:π • π https://bit.ly/33CG4dB • CSS Selectors videos playlist:π • π https://bit.ly/2Rn0IbD • XPath videos playlist:π • π https://bit.ly/2RlLdkw • Javascript Executor videos playlist:π • π https://bit.ly/2FhNXwS • Apache POI videos playlist:π • π https://bit.ly/2RrngrH • Maven videos playlist:π • π https://bit.ly/2DYfYZE • How to fix Eclipse errors:π • π https://bit.ly/3ipvNYf • ============================================== • ============================================== • Connect us @ • π Website - www.hyrtutorials.com • π Facebook - www.facebook.com/HYRTutorials • π LinkedIn - www.linkedin.com/company/hyrtutorials • π Twitter - www.twitter.com/Hyrtutorials • ============================================== • ============================================== • π Please Subscribeπ to start learning for FREE now, Also help your friends in learning the best by suggesting this channel. • #selenium #select #dropdown #hyrtutorials #webAutomation
#############################
