Selenium WebDriver Tutorial #20 - How to Handle Auto Suggestion Dropdown
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
Пікірлер: 71
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
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
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.
Thank you so much , it helped me a lot!
Really helpful 👍
Thanx it worked for me..!
Thanks for the tutorial!
@softwaretestingmentor
3 жыл бұрын
Thank you Anna! Regards, Manish
it worked! tnx a million
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
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
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
you are a savior. I tried multiple things and didn't work.. Thank you
Thank you sir !!!
Thanks a lot
Thanks, it helps a lot.....
Great Informative Session! Thank You Sir!
@softwaretestingmentor
Жыл бұрын
Glad it was helpful! Keep watching for more videos and tutorials.
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
good explanation
Very nice sir.... Tnk u... U solve my problm. 😊😊
Thank you so much sir, my issue resolved
@softwaretestingmentor
8 ай бұрын
You are most welcome! Keep watching and sharing.
This tutorial is nice
@softwaretestingmentor
3 жыл бұрын
Thanks a lot.
Nice explanation
@softwaretestingmentor
3 жыл бұрын
Thanks for liking!
Hi, How to handle Angular mat-select dropdown those values are dynamic also.
thank u sir
@softwaretestingmentor
3 ай бұрын
Welcome keep watching and sharing.
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.
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
You need to zoom the screen so we can see clearly.
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??
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.
Sir out of 100 edit boxes on a page how do we know which one is mandatory attribute??? or which field is mandatory??
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.
I have a doubt in webdriver wait could you give me some explicit wait condition
thank you so much but when i run the code it doesnt work it has a pop up website to log in
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
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
I am getting error while doing the same it will go upto finding the input box after that it will stop execution
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
sir while i was automating makemytrip website i was facing this problem why it is appearing plz help sir : org.openqa.selenium.InvalidElementStateException
How to count the city in the suggestion list
can you teach me the same thing how to automate in WebDriverIO
Sir, how to select a 5th/6th suggested value from the list instead of the very first element?
@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
3 жыл бұрын
Alright, thanks..
I am getting error that span element is not clickable at this point... what is solution for this??
@prashanthyesupogu8039
2 жыл бұрын
same have you got the correction for it bro?
How to run dynamicly sir
When to use chromedriver and when to use webdriver... got confused now. Please reply
Sir , I try this method, but still I'm not able to execute .. I'm getting element click intercepted
@somdipruidas4546
2 жыл бұрын
Same problem bro😭
sorry sir but this code is not working
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
Жыл бұрын
Same problem here
please suggest some other method
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
Жыл бұрын
sendKeys isn't working for me as well. I tried multiple times but the same piece of code isn't working for me
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.
sir,Its not working in my ECLIPSE Getting element click intercepted exception
@akashthakare2425
2 жыл бұрын
Hi I am getting a same exception.plz ans
@akshaypawar4345
2 жыл бұрын
Getting same exception need help
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
Жыл бұрын
yes we can use loop
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.
sir sorry but this code is not working
Do you have a python version ?
@softwaretestingmentor
3 жыл бұрын
@Harsh, please find the playlist below: kzread.info/dash/bejne/mHxoo7mpacvgirA.html