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

  Рет қаралды 63,271

Software Testing Mentor

Software Testing Mentor

4 жыл бұрын

Get all my courses for USD 5.99/Month - bit.ly/all-courses-subscription
⭐️ FREE Training's at training.rcvacademy.com ⭐️
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.
Help me in spreading the knowledge, please hit LIKE, SHARE and SUBSCRIBE for latest tutorials.
More tutorial playlists below:
❖JIRA BEGINNER TUTORIAL❖ bit.ly/jira-beginner-tutorial
❖JIRA WORKFLOW TUTORIAL❖ bit.ly/2EzKOEB
❖JIRA ADMINISTRATION TUTORIAL❖ bit.ly/36MPPFR
❖JIRA TUTORIAL INTERMEDIATE❖ bit.ly/Atlassian-JIRA-tutorial... TUTORIALS❖ bit.ly/jira-tutorials
❖ZEPHYR TUTORIAL❖ bit.ly/zephyr-for-jira-tutorials
❖ SOAPUI TUTORIAL❖ bit.ly/Sopui-tutorial
❖ JSONPath TUTORIAL❖ bit.ly/2sIZIFG
❖ POSTMAN TUTORIAL❖ bit.ly/2PBbhI7
❖ ISTQB AGILE TESTER CERTIFICATION TUTORIAL❖ bit.ly/istqb-agile-tester-cert...
❖ ISTQB FOUNDATION LEVEL CERTIFICATION TUTORIAL ❖bit.ly/istqb-foundation-level-...
❖CUCUMBER SELENIUM TUTORIAL❖ bit.ly/cucumber-selenium-tutorial
❖TESTRAIL TUTORIAL❖ bit.ly/testrail-tutorial
❖AGILE TUTORIALS❖ bit.ly/agile-tutorials
❖PYTHON TUTORIALS❖ bit.ly/python-programming-tuto...
❖PYTHON BEHAVE TUTORIALS❖ bit.ly/python-behave-tutorial
❖PRACTITEST TUTORIAL❖ bit.ly/practitest-tutorial
❖JAVA TUTORIAL❖ bit.ly/2F1iL1B
❖ZEPHYR TUTORIAL❖ bit.ly/zephyr-for-jira-tutorials
❖ TRAININGS ON RCV ACADEMY PORTAL ❖
bit.ly/learn-practitest
bit.ly/learn-jira-in-4-hours
bit.ly/jira-beginner-training
bit.ly/learn-confluence
bit.ly/ISTQB-foundation-certif...
❖ FOLLOW US ON TWITTER ❖
/ rcvacademy
/ swtmentor
/ mrmverma
❖ LIKE US ON FACEBOOK ❖
/ softwaretestingmentor
/ rcvacademy47
❖ OUR TUTORIAL WEBSITES ❖
www.softwaretestingmentor.com
www.rcvacademy.com
❖ GET MY TRAININGS ON UDEMY ❖
www.udemy.com/user/manish68/
#SeleniumTutorial #SeleniumTraining #TestAutomation #SeleniumWebDriverTutorial #SeleniumWebDriver #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

Пікірлер: 72
@LivingUnscripted
@LivingUnscripted 2 жыл бұрын
I am taking classes to become a QA , and my teacher didn’t show this one yet. He showed us a way where we have to create a list for the dropdown suggestions.. and I just wasn’t able to do it that way. This one helped me a lot, simple and easier. Thanks a lot!
@anilbiradar3802
@anilbiradar3802 2 жыл бұрын
List variable created but I feel that is good compare to this, and even we use for loop condition also with list to find the correct value Here trainer entered 5 char n selecting 1 suggestion, just think if you enter only 3 char n your results are more than 10 and you need to select 9th value then what will you do?? So it's better to use for loop condition with making list variable
@SurbhiAgarwalD
@SurbhiAgarwalD 2 жыл бұрын
Thank you, i was stuck on auto suggestion searchbox and with help of this video i was able to get that. that you so much for this video.
@Deathlean66
@Deathlean66 2 жыл бұрын
Thank you so much , it helped me a lot!
@eightcandies
@eightcandies 3 жыл бұрын
This is Excellent, this is called real time explanation.. I was looking to handle dynamic dropdowns for a while now, i didn't know that those keys exist, i'm not sure how i landed to your video.. but thank you so much.. i need to try this in python, not sure if that works but this video made me to realize, i need to change the way i THINK! Thanks again!!!
@softwaretestingmentor
@softwaretestingmentor 3 жыл бұрын
Hi Prathyusha, Thank you very much! I am glad they are helpful! Please share your python experience and let everyone know how you made it work in Python using same techniques. Regards,Manish
@eightcandies
@eightcandies 3 жыл бұрын
@@softwaretestingmentor You got no idea, how seemlessly I'm working, This video made my day, I worked on 3 different but kind of similar filters.. and what I did there is this small piece of code: # Search-Match and Select driver.find_element_by_xpath("//*[@id='AAAAAA']").click() driver.find_element_by_xpath("//*[@id='BBBBBB']").send_keys("EEE") Degrees= driver.find_elements_by_xpath("//*[@id='XXXXXX']/div[1]") for degree in Degrees: if degree.text == "EEE": degree.click() break
@vivekzambre6476
@vivekzambre6476 3 жыл бұрын
Really helpful 👍
@sushantsurwase
@sushantsurwase 3 жыл бұрын
Thanx it worked for me..!
@somayehrezayi3478
@somayehrezayi3478 2 жыл бұрын
it worked! tnx a million
@user-vv4wt3nl8w
@user-vv4wt3nl8w Жыл бұрын
Great Informative Session! Thank You Sir!
@softwaretestingmentor
@softwaretestingmentor Жыл бұрын
Glad it was helpful! Keep watching for more videos and tutorials.
@annaburshtyko5714
@annaburshtyko5714 3 жыл бұрын
Thanks for the tutorial!
@softwaretestingmentor
@softwaretestingmentor 3 жыл бұрын
Thank you Anna! Regards, Manish
@vrushankdoshi7813
@vrushankdoshi7813 2 жыл бұрын
you are a savior. I tried multiple things and didn't work.. Thank you
@firozshaikh2489
@firozshaikh2489 2 жыл бұрын
Thank you sir !!!
@umeshpatil2908
@umeshpatil2908 2 жыл бұрын
Thanks, it helps a lot.....
@shibapiano6946
@shibapiano6946 Жыл бұрын
Thanks a lot
@prabur3296
@prabur3296 2 жыл бұрын
Sir, I'm getting this exception Exception in thread "main" org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element ... is not clickable at point (329, 225). Other element would receive the click: (Session info: chrome=96.0.4664.45) after clicking that tag
@shrudinsharma6493
@shrudinsharma6493 Жыл бұрын
Very nice sir.... Tnk u... U solve my problm. 😊😊
@ravirajug1137
@ravirajug1137 Жыл бұрын
good explanation
@ashamb8194
@ashamb8194 8 ай бұрын
Thank you so much sir, my issue resolved
@softwaretestingmentor
@softwaretestingmentor 8 ай бұрын
You are most welcome! Keep watching and sharing.
@sudiptomukherjee8404
@sudiptomukherjee8404 4 жыл бұрын
Nice explanation
@softwaretestingmentor
@softwaretestingmentor 3 жыл бұрын
Thanks for liking!
@rohitmisra9008
@rohitmisra9008 3 жыл бұрын
This tutorial is nice
@softwaretestingmentor
@softwaretestingmentor 3 жыл бұрын
Thanks a lot.
@Shubham-fk4is
@Shubham-fk4is 2 жыл бұрын
You need to zoom the screen so we can see clearly.
@abhishekrathod7273
@abhishekrathod7273 3 ай бұрын
thank u sir
@softwaretestingmentor
@softwaretestingmentor 3 ай бұрын
Welcome keep watching and sharing.
@colasp4376
@colasp4376 3 жыл бұрын
Hi sir I did same thing which you have done only navigate to makemytrip says that no such elementfound unable to select the drop down value
@yuvarajamech
@yuvarajamech 3 жыл бұрын
If I want print all of the suggestions from that from text field,when source code doesn't visible for auto suggestion element but it's showing the source code only when we move the cursor on the suggestion element ... How to inpect and print those suggestions??
@aayushmaheshwari9647
@aayushmaheshwari9647 2 ай бұрын
Hi, How to handle Angular mat-select dropdown those values are dynamic also.
@p.saibabusai902
@p.saibabusai902 11 сағат бұрын
Can you do it for AbhiBus website search please
@armenuhikocharyan9650
@armenuhikocharyan9650 Жыл бұрын
Thank you for lessons. Please could you have videos also about PAGE OBJECT MODEL. Or leave please the link if you have such kind of lesson already. Thanks in advance.
@sweetthirty2
@sweetthirty2 2 жыл бұрын
Sir out of 100 edit boxes on a page how do we know which one is mandatory attribute??? or which field is mandatory??
@meghanarao7593
@meghanarao7593 Жыл бұрын
hello sir, i am using Page object Factories Framework and i wanted to do auto selective dropdown for expedia website, i tried the same way as you have explained, but in the dropdown it is not showing the suggestives when automated. can you guide me please.
@prabhakaransivasubramanian5420
@prabhakaransivasubramanian5420 3 жыл бұрын
I have a doubt in webdriver wait could you give me some explicit wait condition
@KrzysztofChrzan
@KrzysztofChrzan 3 ай бұрын
Hello, Can you say how to handle Auto Suggestion if the results would be presented in random position? For example "Sydney, Australia" could once display on a first place just under the input field but next time could be presented on a second place.
@rohitmisra9008
@rohitmisra9008 3 жыл бұрын
Hello.sir Is it possible in selenium In Source i want select only up city And In destination mp city I want to match up city with mp city in flight
@wisherz
@wisherz 2 жыл бұрын
thank you so much but when i run the code it doesnt work it has a pop up website to log in
@harshrana2605
@harshrana2605 Жыл бұрын
Sir, how we can read otp if it comes on mobile number, how to automate that case. For ex- we have to login into website with mobile number and otp
@kishoripatil2302
@kishoripatil2302 2 жыл бұрын
I am getting error while doing the same it will go upto finding the input box after that it will stop execution
@kumarpalrecha3069
@kumarpalrecha3069 10 ай бұрын
What if I type a wrong text and auto suggestion won't display..then the text will fail which should not happen and text should go forward
@rohitmisra9008
@rohitmisra9008 3 жыл бұрын
How to run dynamicly sir
@rohitmisra9008
@rohitmisra9008 3 жыл бұрын
How to count the city in the suggestion list
@anilkashyap5953
@anilkashyap5953 4 жыл бұрын
sir while i was automating makemytrip website i was facing this problem why it is appearing plz help sir : org.openqa.selenium.InvalidElementStateException
@preethajegatheesan9874
@preethajegatheesan9874 2 жыл бұрын
can you teach me the same thing how to automate in WebDriverIO
@nidhimankotia4840
@nidhimankotia4840 2 жыл бұрын
sorry sir but this code is not working
@mhsfa
@mhsfa 2 жыл бұрын
When to use chromedriver and when to use webdriver... got confused now. Please reply
@nidhimankotia4840
@nidhimankotia4840 2 жыл бұрын
please suggest some other method
@prasantapaul3844
@prasantapaul3844 3 жыл бұрын
Sir, how to select a 5th/6th suggested value from the list instead of the very first element?
@yuvarajamech
@yuvarajamech 3 жыл бұрын
Try to add those auto suggestions in arraylist and then according to your need,by using if condition, like if this element contains "required element" Then click on it...i think it will help you.. Just try it
@prasantapaul3844
@prasantapaul3844 3 жыл бұрын
Alright, thanks..
@ffggkik
@ffggkik 3 жыл бұрын
Sir , I try this method, but still I'm not able to execute .. I'm getting element click intercepted
@somdipruidas4546
@somdipruidas4546 2 жыл бұрын
Same problem bro😭
@maheshpawar6834
@maheshpawar6834 2 жыл бұрын
I am getting error that span element is not clickable at this point... what is solution for this??
@prashanthyesupogu8039
@prashanthyesupogu8039 2 жыл бұрын
same have you got the correction for it bro?
@priyankapatil3951
@priyankapatil3951 2 жыл бұрын
Hello sir, i m trying to run same code on eclipse and intellij also but getting exception as ElementClickInterceptedException... What could be the reason??
@nikitakorade
@nikitakorade Жыл бұрын
Same problem here
@rohitmisra9008
@rohitmisra9008 3 жыл бұрын
This video is nice but Same technique I apply for Destination But sendkeys is not working I write a code on for source and destination on eclipse But sendkeys is not working I run parallel
@TuhinaBanerjee16
@TuhinaBanerjee16 Жыл бұрын
sendKeys isn't working for me as well. I tried multiple times but the same piece of code isn't working for me
@TuhinaBanerjee16
@TuhinaBanerjee16 Жыл бұрын
This code is not working. I feel it will be better if instead of Thread.sleep, actual wait mechanism can be used in the code as in real time we will not use Thread.sleep nor while practicing.
@beinghuman63393
@beinghuman63393 2 жыл бұрын
sir,Its not working in my ECLIPSE Getting element click intercepted exception
@akashthakare2425
@akashthakare2425 2 жыл бұрын
Hi I am getting a same exception.plz ans
@akshaypawar4345
@akshaypawar4345 2 жыл бұрын
Getting same exception need help
@PradeepKumar-tn6cf
@PradeepKumar-tn6cf 2 жыл бұрын
Thanks for tutorial.This tutorial is not helpful for dynamic selection of dropdown value after autosuggestion. Please let me know if I want to select mumbai value from the dropdown and i don't know the order of place of that value in autosuggestion.
@nidhimankotia4840
@nidhimankotia4840 2 жыл бұрын
sir sorry but this code is not working
@anilbiradar3802
@anilbiradar3802 2 жыл бұрын
Hi, I have autosuggestiive drop down and even entering 4 to 5 char in feld I got around 25 results and I suppose to click on 18th value then how sendkeys(keys.ARROW_DOWN); will work for 18th value. Do we need to write 18 times the same code of line?????? Or can we use the for loop condition?
@piyushchoudhary7803
@piyushchoudhary7803 Жыл бұрын
yes we can use loop
@harshgangwal
@harshgangwal 3 жыл бұрын
Do you have a python version ?
@softwaretestingmentor
@softwaretestingmentor 3 жыл бұрын
@Harsh, please find the playlist below: kzfaq.info/get/bejne/nK5kdLqhns7eioE.html
Selenium WebDriver Tutorial #21 - How to Handle Checkbox in Selenium
12:52
Software Testing Mentor
Рет қаралды 48 М.
Handle Hidden Drop Down Values / Auto Suggestions using DOM Trick | EventListener
7:55
Каха заблудился в горах
00:57
К-Media
Рет қаралды 9 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 69 МЛН
Selenium WebDriver Tutorial #19 - How to Print all Links of a Webpage
15:39
Software Testing Mentor
Рет қаралды 42 М.
Handle Dynamic Google Search Using Dynamic XPath - WebDriver Session - 15
21:51
Naveen AutomationLabs
Рет қаралды 164 М.
How To Handle Auto Suggestion In Selenium WebDriver Using Java
24:36
Automation Testing
Рет қаралды 2,6 М.
Selenium WebDriver Tutorial #36 - How to Handle Web Table in Selenium
26:09
Software Testing Mentor
Рет қаралды 56 М.
How to Handle Frames in Selenium WebDriver
21:20
H Y R Tutorials
Рет қаралды 57 М.
Каха заблудился в горах
00:57
К-Media
Рет қаралды 9 МЛН