Faisal Khatri
Faisal Khatri
  • 108
  • 88 109
How to handle dropdown in Selenium WebDriver using Java | Selenium WebDriver Tutorial
In this Selenium WebDriver tutorial we will learn How to Handle Dropdown in Selenium WebDriver.
Selenium WebDriver provides Select class which has the following methods that can be used to handle single and multiple dropdown options:
✅ selectByIndex(int index) - Select the option at the given index.
✅ selectByValue(String value) - Select all options that have a value matching the argument.
✅ selectByVisibleText(String text) - Select all options that display text matching the argument.
✅ isMultiple() - Checks if the dropdown allows multiple selection
✅ getOptions() - Returns all the options displayed in the dropdown field.
✅ getAllSelectedOptions() - Returns all the selected options from the dropdown list.
✅ getFirstSelectedOption() - It will return the first selected option from the dropdown list.
✅ deselectAll() - It will deselect/clear all the selected entries from the list.
✅ deselectByValue(String value) - Deselects all the options that have values matching the argument.
✅ deselectByIndex(int index) - Deselects the option at the given index.
✅ deselectByVisibleText(String text) -Deselects the option matching the given text in the parameter.
Topics Covered in this video:
00:00 Introduction
00:24 What is a dropdown field?
00:36 Types of dropdown fields
02:52 Select class in Selenium WebDriver
03:38 How to handle Single select dropdown using Selenium WebDriver
19:15 How to handle Multi select dropdown using Selenium WebDriver
GitHub Repo Link with Code Examples: github.com/mfaisalkhatri/selenium-demo
Blog Links:
How to Handle Dynamic Dropdowns in Selenium WebDriver With Java
www.lambdatest.com/blog/handling-dropdowns-in-selenium-webdriver-java/
Different Types of Locators in Selenium WebDriver
www.lambdatest.com/blog/locators-in-selenium-webdriver-with-examples/
Handling “Element is Not Clickable at Point” Exception in Selenium
www.lambdatest.com/blog/element-is-not-clickable-at-point-exception/
Selenium 4 WebDriver Hierarchy: A Detailed Explanation
www.lambdatest.com/blog/selenium-4-webdriver-hierarchy/
Understanding CSS Selectors in Selenium
medium.com/@iamfaisalkhatri/understanding-css-selectors-in-selenium-pcloudy-blog-3e4b09672264
End to End Testing using Selenium WebDriver and Java
medium.com/@iamfaisalkhatri/end-to-end-testing-using-selenium-webdriver-and-java-4ff8667716ca
Selenium WebDriver Tutorial videos playlist
czcams.com/play/PLMer2TvhZIw8WP1C9Pp5hbd7Yd-l66dPT.html&si=Zo9V3vukxAK3dCMq
Affiliate link:
Sign up to LambdaTest Cloud Platform - www.lambdatest.com?fp_ref=faisal58
Join my Software Testing Learning Group on the following social media platforms -
WhatsApp: chat.whatsapp.com/BUKajWkUjbm1VNHWhlqaNR
Telegram: t.me/continuoustesting
Discord: discord.gg/Ue5fNpef
Connect with me @Linktree - linktr.ee/faisalkhatri
#SeleniumTutorial #SeleniumTraining #TestAutomation #SeleniumWebDriverTutorial #SeleniumWebDriver #SoftwareTesting #automationtesting #qa #Automation #tutorial #dropdown #webautomation #webtesting #learning #freecourse
zhlédnutí: 115

Video

How to automate Login page using Selenium WebDriver with Java? | Selenium WebDriver Tutorial
zhlédnutí 957Před 2 měsíci
In this tutorial video, we will learn how to automate login page using Selenium WebDriver with Java. The following topics are covered as a part of this video: 1. Negative and Positive test cases to automate the login page 2. Locating and interacting with the login page WebElements 3. Using DataProvider annotation of TestNG for passing the test data of login credentials 4. Performing assertion c...
Selenium Locators | ID, Name, Tag Name, Class, Link Text, Partial Link Text, CSS Selector, XPath
zhlédnutí 411Před 3 měsíci
Selenium Locators | ID, Name, Tag Name, Class Name, Link Text, Partial Link Text, CSS Selector, XPath Topics covered in this video: 00:00 - Introduction 00:54 - What are Locators in Selenium? 01:33 - Locator Strategies in Selenium WebDriver 02:00 - How to Locate Web Elements in the DOM using browser? 07:54- ID Locator Strategy 12:22 - Name Locator Strategy 14:10 - TagName Locator Strategy 19:42...
Cross Browser Testing in Selenium using TestNG | Parallel Testing | Testing on cloud platforms
zhlédnutí 514Před 5 měsíci
In this video, I talk about Cross Browser Testing using Selenium WebDriver and TestNG on Local as well as Cloud Platforms such as LambdaTest. I have also covered the topics related to performing Parallel testing using Selenium WebDriver on Local as well Cloud Platforms. Learn how to perform Cross browser testing on the following browsers: 1. Google Chrome 2. Mozilla Firefox 3. Microsoft Edge 4....
Mumbai tourist places - Marine Drive. #youtube #mumbai #evening #sunset #shortvideo #weekend
zhlédnutí 52Před 5 měsíci
Mumbai tourist places - Marine Drive Checkout the newly installed road divider.
Mumbai Airshow 2024 | Marine Drive #airshow #helicopter #mumbai #vlog #youtube #video #airforce
zhlédnutí 612Před 7 měsíci
Mumbai Airshow 2024 | Marine Drive #airshow #helicopter #mumbai #vlog #youtube #video #airforce
Selenium Manager in Selenium WebDriver 4.12.0 | Automated Browser and Driver Management
zhlédnutí 2KPřed 11 měsíci
Selenium Manager in Selenium WebDriver 4.12.0 | Automated Browser and Driver Management
How to prepare for software testing job interviews? Tips for Interview Preparation
zhlédnutí 804Před rokem
How to prepare for software testing job interviews? Tips for Interview Preparation
Awesome learning resources for becoming a successful QA Automation Engineer | GitHub | Free Learning
zhlédnutí 1,9KPřed rokem
Awesome learning resources for becoming a successful QA Automation Engineer | GitHub | Free Learning
How to create a Maven Project in IntelliJ? | Test Automation | pom.xml | Maven Commands in IntelliJ
zhlédnutí 2KPřed rokem
How to create a Maven Project in IntelliJ? | Test Automation | pom.xml | Maven Commands in IntelliJ
How to install Android Studio on Windows 10? | Appium testing Tutorial | Android Emulator
zhlédnutí 703Před rokem
How to install Android Studio on Windows 10? | Appium testing Tutorial | Android Emulator
How to perform Android mobile automation using WebdriverIO Appium with TypeScript | Test Automation
zhlédnutí 4,5KPřed rokem
How to perform Android mobile automation using WebdriverIO Appium with TypeScript | Test Automation
What is a Test Automation Framework? | Best Practices | Insightful Talk
zhlédnutí 1,8KPřed rokem
What is a Test Automation Framework? | Best Practices | Insightful Talk
How to prepare for Software Testing Interview?
zhlédnutí 1,6KPřed rokem
How to prepare for Software Testing Interview?
How to perform Test Automation Code Reviews? Guest Talk by @WasiqBhamla
zhlédnutí 1,5KPřed rokem
How to perform Test Automation Code Reviews? Guest Talk by @WasiqBhamla
How to validate Shadow DOM web element locator in chrome browser? Web Automation | Locators
zhlédnutí 1KPřed rokem
How to validate Shadow DOM web element locator in chrome browser? Web Automation | Locators
A well said Quote by @WasiqBhamla
zhlédnutí 96Před rokem
A well said Quote by @WasiqBhamla
Mumbai CST railway station is lit in tricolor today. #video #mumbai #tricolor #trending #vlog
zhlédnutí 275Před 2 lety
Mumbai CST railway station is lit in tricolor today. #video #mumbai #tricolor #trending #vlog
How to install browser drivers using WebDriverManager for running Selenium Tests | Web Automation
zhlédnutí 349Před 2 lety
How to install browser drivers using WebDriverManager for running Selenium Tests | Web Automation
How to work with Relative Locators in Selenium Webdriver 4
zhlédnutí 298Před 2 lety
How to work with Relative Locators in Selenium Webdriver 4
Chat with Wasiq Bhamla discussing coteafs-appium framework.
zhlédnutí 308Před 2 lety
Chat with Wasiq Bhamla discussing coteafs-appium framework.
View of Marine Drive - Mumbai, before the coastal road project #vlog #mumbai #youtube #like
zhlédnutí 92Před 4 lety
View of Marine Drive - Mumbai, before the coastal road project #vlog #mumbai #youtube #like

Komentáře

  • @aijajfaniband16
    @aijajfaniband16 Před dnem

    Nice explanation bro...

  • @shahinakhter-y6t
    @shahinakhter-y6t Před 21 dnem

  • @JitendraYadav-ts9ch
    @JitendraYadav-ts9ch Před 2 měsíci

    Great one 🕜

  • @MohammedAdnan-km2xd
    @MohammedAdnan-km2xd Před 2 měsíci

    Thank you very much for this video. I couldn't find anything related to this on internet, but you're a life saver. Could you please make a video in which browserstack would be used with this setup. Thanks

  • @faisalkhatriqa
    @faisalkhatriqa Před 2 měsíci

    Checkout my latest blog - A Common guide to Web Testing medium.com/@iamfaisalkhatri/a-complete-guide-web-testing-748b34a91e6e

  • @rajivgift123
    @rajivgift123 Před 2 měsíci

    An error stating" PDFBox IOException: End of File, expected line" is displayed while automating PDF reports

  • @douglasfugazi
    @douglasfugazi Před 2 měsíci

    Good video 🎉 thanks for sharing.

  • @kartikdixit4669
    @kartikdixit4669 Před 3 měsíci

    Incredible content! Could you please reduce the background music? It's a bit too overpowering and makes it difficult to hear clearly.

    • @faisalkhatriqa
      @faisalkhatriqa Před 3 měsíci

      Sure, will take this suggestion for next content

  • @raghunathsawant9433
    @raghunathsawant9433 Před 3 měsíci

    session was very informative and good. one request , plz see if you can improve the recording quality

  • @sangramnayak4219
    @sangramnayak4219 Před 3 měsíci

    informative video.helpful. can you create a playlist how to create a framework from scratch. what to focus on creating this, what to avoid, how to select which components, how to have different folder structures and sync between files, different design patterns of framework, where to keep which files(such as in main or in test folder..etc)...etc please make a exclusive videos on different mistakes the u or ur friends did in whole career. plz mention how to avoid them or how to fix them. no hurry. just a request. please consider.

  • @sangramnayak4219
    @sangramnayak4219 Před 3 měsíci

    hi sir, please provide time stamp with different inputs of these kind of long videos. plz put time stamp in all the long videos. please sir.

  • @noormohammed3542
    @noormohammed3542 Před 3 měsíci

    Good One

  • @zarinakhatri9538
    @zarinakhatri9538 Před 3 měsíci

    Subhanallah ❤❤

  • @zarinakhatri9538
    @zarinakhatri9538 Před 3 měsíci

    Aye kaash m ban jaun madine ka muafir, Aameen

  • @shivjirwankar1993
    @shivjirwankar1993 Před 4 měsíci

    Awesome. Thanks for sharing.

  • @sangramnayak4219
    @sangramnayak4219 Před 4 měsíci

    voice is clear. thanks you sir for posting these. what are the difficculties u faced while learning or working on these tools. how u fixed those issue. please take care ur health. god bless you. keep posting like these. any testing job will be effected die to AI means ur opinion on these AI...etc. please post all these one by one.

  • @youssefkorbi-mt7nv
    @youssefkorbi-mt7nv Před 5 měsíci

    Thanks for Sharing

  • @faisalkhatriqa
    @faisalkhatriqa Před 5 měsíci

    GitHub repo link is available in description of the video. Sharing in comments again for reference: github.com/mfaisalkhatri/selenium-demo

  • @AbhishekKumar-cj8ne
    @AbhishekKumar-cj8ne Před 5 měsíci

    Plz share git code repo

    • @faisalkhatriqa
      @faisalkhatriqa Před 5 měsíci

      Hi, GitHub URL is shared in the description

  • @saeeddelawala5301
    @saeeddelawala5301 Před 5 měsíci

    Hi Faisal, this is such a great video. please provide git url for this project so i can clone and update my project. i am more interested in cross browser. Thanks in advance.

    • @faisalkhatriqa
      @faisalkhatriqa Před 5 měsíci

      Hi, GitHub URL is shared in the description

  • @CasioArtist
    @CasioArtist Před 6 měsíci

    Good Demo. Thanks for Sharing this

  • @priyapalani3955
    @priyapalani3955 Před 6 měsíci

    Could you please upload a complete end-to-end video that covers the setup and installation process for mobile automation? As a complete beginner, I have faced many challenges such as the lack of SDK tools and being unable to connect to the Appium server through Appium Inspector. The video would be beneficial for others who are just starting out in mobile automation. Thank you.

    • @WasiqBhamla
      @WasiqBhamla Před 6 měsíci

      You can check out my playlist about Mobile automation with Appium: czcams.com/play/PLdZJM6yxhZyQmoVR4EdO7Rztvfl4rkKyH.html Hope it will help.

  • @chirag5800
    @chirag5800 Před 6 měsíci

    Hey, I am getting empty pom.xml. I am trying to create a new project for appium test case but pom.xml is empty. Any solution for that ?

    • @faisalkhatriqa
      @faisalkhatriqa Před 6 měsíci

      Did you choose the correct archetype while creating the project? Choose the quickstart archetype

    • @chirag5800
      @chirag5800 Před 6 měsíci

      I have resolved it now, its because of JDk version only.

    • @chirag5800
      @chirag5800 Před 6 měsíci

      Used version 17

    • @Racist112
      @Racist112 Před 5 hodinami

      ​@@chirag5800I'm having the same problem. My pom.xml file is empty and I'm using jdk 22, should I go back to version 17?

  • @shabanakhatri4328
    @shabanakhatri4328 Před 7 měsíci

    🎉🎉🎉 wow

  • @shabanakhatri4328
    @shabanakhatri4328 Před 7 měsíci

    MashaAllah

  • @shabanakhatri4328
    @shabanakhatri4328 Před 7 měsíci

    Mumbai🎉

  • @shakirshaban8518
    @shakirshaban8518 Před 7 měsíci

    Good work sir 👏👏

  • @aishwaryasarin4132
    @aishwaryasarin4132 Před 8 měsíci

    Such a meaningful and insightful session

    • @faisalkhatriqa
      @faisalkhatriqa Před 8 měsíci

      Thank you, Glad to know that you liked it :)

  • @user-di6eq3eb7h
    @user-di6eq3eb7h Před 8 měsíci

    The session was so very interesting and relatable !!

  • @hastishah6813
    @hastishah6813 Před 8 měsíci

    This was such a fruitful session👍🏻😍

  • @hastishah6813
    @hastishah6813 Před 8 měsíci

    This was such a fruitful session👍🏻😍

  • @faisalkhatriqa
    @faisalkhatriqa Před 8 měsíci

    Kejal Shah can be contacted for Counselling of Psychological ailments at the following clinic: Sunrise venetia, girgaum gaiwadi, jss road, charni road, mumbai-400004

  • @jjunm2650
    @jjunm2650 Před 8 měsíci

    HI I would like to know how to set the version in Chrome or Edge browser using Python SeleniumManagern.

  • @shabnamz1821
    @shabnamz1821 Před 8 měsíci

    Subhan allah

  • @ADabtU
    @ADabtU Před 8 měsíci

    timely and useful

  • @sean.d
    @sean.d Před 8 měsíci

    Could you do a video for touch actions e.g. swipe left or right on an element or ? Thanks in advance!

  • @Bala786A
    @Bala786A Před 9 měsíci

    Thank u bro...

  • @rakeshiyer293
    @rakeshiyer293 Před 10 měsíci

    Sir when is your next live session on Api

    • @faisalkhatriqa
      @faisalkhatriqa Před 10 měsíci

      Let me know what would you like to learn in next session?

  • @ADabtU
    @ADabtU Před 10 měsíci

    useful and timely

  • @maroofahmedkhan2895
    @maroofahmedkhan2895 Před 10 měsíci

    very good session

  • @mohamedharedy2914
    @mohamedharedy2914 Před 10 měsíci

    Great job , keep going please brother 🤝

    • @faisalkhatriqa
      @faisalkhatriqa Před 10 měsíci

      Thank you, sure will be doing such more sessions.. keep watching and sharing.

  • @numanhanduran6462
    @numanhanduran6462 Před 10 měsíci

    Thank you so much

  • @faisalkhatriqa
    @faisalkhatriqa Před 10 měsíci

    Links to the GitHub repo, blogs and CZcams videos has been updated in the description. Do check out for more details!!

  • @jaimahakaal1205
    @jaimahakaal1205 Před 10 měsíci

    I'm not able to see the code clearly, anyone else?

  • @hasmukhrpatel
    @hasmukhrpatel Před 10 měsíci

    Very good Session. Keep up community educated. Wasiqbhai & you are doing gr8 job.

  • @faisalkhatriqa
    @faisalkhatriqa Před 10 měsíci

    czcams.com/users/livexLKpdQE0oKY?feature=share