Handle Hidden Drop Down Values / Auto Suggestions using DOM Trick | EventListener
Вставка
- Опубліковано 6 вер 2024
- In this video, I have explained a DOM trick to Handle Hidden Drop Down Values / Auto Suggestions using DOM Trick with EventListener
Schedule a meeting in case of any queries/guidance/counselling:
calendly.com/n...
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Naveen AutomationLabs Paid Courses:
GIT Hub Course:
naveenautomati...
Java & Selenium:
naveenautomati...
Java & API +POSTMAN + RestAssured + HttpClient:
naveenautomati...
For those who cannot find ‘blur’ event, alternatively you can remove ones in ‘focusout’
Thanks Bek, most useful comment. I was confused as I don't have blur in my Event Listerners. I removed it from 'focusout'
Thanks....😊
You really saved me, dear! I've tried so many options, but they didn't work in my case.
Thanks a lot, saved my day
Thanks bek, very useful for me as well
This is very very useful for angular or react applications. I faced this issue lot of times, I used to do it with f8 key but now this is the coolest way you taught us. Thanks a lot man!
Great!! But did not work for my application. Still I am not able to inspect
You are a great boss... Whenever I face issue I feel you knew in advance and you made on exactly same topic... Respect 🤜🤛
I was actually facing this issue and that too yesterday and today ur solution made my day....thank you so much sir
Alternative if blur is not present: focusout - same trick, remove all, worked on a react dropdown I was looking into.
thank you
Thanks a lot Naveen for sharing this.
These are components which goes off when focus is lost. so when we switch to developer tools , the focus is lost and the component goes off.
In developer tools , inspect tab
click cmd+shift+p(short cut will be different in windows OS)
Run command focused
Select emulate a focused page option
now you will see the dropdown and can inspect the elements
This helps ..removing blur is not working for me.
@@swapnilpatil2189 can you pls eloborate the use case
@@nayanagopinath669 there is dropdown in my application to select country and titles which get disappears while trying to get xpath, so as per the video i tried removing blur property from event listener but still i was not able to inspect. I tried your approach and it worked. Thanks!
Ok understood..glad that this tip helped and worked for you.
Thanks for the trick it worked
You have made solution for every automation issue Thanks @naveen
One of my interview question. Thanks for the useful video .Thanks a ton from USA
Thank you ! very useful. As a self-study, I really appreciate
Your brain is like an alien Naveen. This will help a lot
You are really god gift for all the QA people who is already in industry and people who are looking for job, I donot think we need to apply our brains while desgining framework or designing the scripts :) , simply coming to your channel and refer the videos and getting knowledge.
My Request , can you please do a video on Common/reusable methods in selenium webdriver which can be accessed across the frame work, I found Common methods for Webdriverwait, type, click . Can you please do a common methods for Calender , Bootstrap dropdowns, webtables, Search functionalitys , Auto Suggestions, Take screenshots ...I hope you can do it for your students :) because it is cakewalk for you :)
Thanks a lot Naveen for sharing this.
We can use the below script from browser dev tool console as an alternative for the same concept
setTimeout(function(){debugger;}, 5000)
Can you elaborate on it bro? Like how to use this?
Please open your browser dev console paste the script and hit enter. After 5 seconds the ui will freeze so that with the help of the inspector tool you can start inspecting the desired elements
this code is a savior! even blur sometime doesn't work in salesforce , like setup dropdown.. this code works. thanks very much.
@@rakeshkumarpanda1693 Can you please tell me after opening dev tool where I have to paste this script.
@@adityaphadnis1551 please follow below steps
1. Open your browser dev tool
2. Select the console tab
3. Paste the above code and hit enter to execute. The browser will freeze after the mentioned time period
This is not working for lightning or Salesforce application.
Same issue
How did you resolve it then
You can try removing focusout option in Event listener only. That will work.
Thank you Naveen for this Quick video for this issue most of us face while automation 👍😊
It may be small thing and this willl very useful tips to automation community..thanks naveen
It will really helpful if you share videos on all or major expected conditions(Webdriverwait) like staleness etc. in selenium when to use
Thanks a lot, Naveen I have been facing this issue for a long time and you gave me a solution. Hats off to you👒👒.
Thank you so much for sharing this helpful knowledge with us. Continue the same ❤
it's like magic to know this trick👏👏👏 really helpful... thank you Naveen😊
Thanks Naveen. I was able to use this in my project with Angular JS drop downlist. Thank you again.
we can use "Paused in debugger " In Console Run cmd : setTimeout(()=>{debugger},5000) and handle the hidden values.
It's false it will not work out
Thank you. After struggling with this issue, your solution worked.
Hello sir, your videos are really very helpful thank you for posting such an useful content. And I really want you create one video on, when user Zoom on image at that time cursor symbol gets change and capture the element.
is that possible to do???
Thank you so much it is very clear and easy process
Thank you so much Naveen sir your trick is working wonders for me forever grateful to you...
Always welcome
Thanks Naveen sir it’s worked for me
1st collapse all the elements inside the body block and keep the body tag expanded
2nd click on you element where the disappearing elements is enabling
3rd while 2nd step note which is the parent tag of your web element
4th after that, right click on parent tag and click on Break on > subtree modification
5th again try to access element that opens the disappearing value. And access the elements
Thank you very much sir!
This is very useful and informative tip.
Thank You Naveen....It is quite difficult to go with DOM BreakPoints...Now It is easy with this trick...😊
Thank yo so much ..i was so stuck bcz of this issue... completely helpful!
In my case, I had to also remove the focusout property along with blur in order to inspect the suggestive list.
did u get answer?
Thanks Naveen … these simple automation tricks makes life easier… previously i used to open debugger for it…now this will help a lot!
You are the best in explaining testing topics. Very helpful
Thank you so much Naveen for this trick. I was struggling for such drop down since last 1 week. I will try like this and will let you know.
Thank you this has been extremely helpful!
Hi Naveen, thanks for sharing this. But it is not working in my case, I deleted the blur property as well but the moment I tried to inspect the element, the same has been selected. Please let me know if you know some other way
Thanks for creating video on this.. It’s very useful and will make the life easier.. Great Job 👏👏
What I regularly do is in console ... setTimeout(()=>{debugger},8000) and quickly click the dropdown and wait 8 seconds
Awesome!!
Thanks a lot Naveen, we appreciate you buddy.
very good. congratulations.
Hey Naveen, Hope you are doing good☺️. After watching your videos I am greatly interested towards testing now a days. Actually I am working in SAP ABAP area. I want a small suggestion from you, if I want to take a swap to automation can you recommend me which one I can start learning with... which have good scope and offer a good package... because I am greatly confused as I am not having any experience towards this area...
Your videos are really interesting☺️ Thank you for all your efforts for sharing your knowledge with us without cost which is greatly appreciable🤩 new subscriber🤙🥳
Looking forward for your suggestion. Thank you in advance🙂
Amazing! Thanks for sharing 🙏
Hi Naveen,
Thank you so much for the awesome help.
Can you please suggest something to Automate Mobile App Drop Down?
Awesome trick ...hats off
This is very useful video. Thank you so much for such amazing videos.
very useful explanation
Glad you think so!
Hi sir ,how to select option(e.g.Ahmedabad) from a list without using select method? Thanks.
Hi Naveen, Hope you are doing good, This trike is very useful and I tried to use it but it's not working in my application can you please share any workaround it
Thankyou So much sir it was very helpful to me..
Thank you so much ❤
You solved my problem. Thank you very much.
Thank you for amazing information.
You are Awesome ....Thanks for all Gyan
You're the best, thanks a lot, man!
Thank you so much
Thank you!
This video is very helpful...
Thanks!
That's why you are awesome naveen!..
Thanks for videro make more such type of video.
Thank you Naveen this was very helpful...
Thank you for info
Sir pls tell, how to inspect "camera & accerlaries " under Electrons dropdown??????????
🎉🎉 Tnk u so much buddy 😎
Thanks a lot sir, it is very easy, have one more way, will share i.e. something we can do through console
Thankyou Very Much
Thank you Naveen for this video
Hi Naveen, thanks your videos are really helpful!
I have a query, in which when I am clicking on a button it is giving me one id, then have to wait overnight, and then next day login on the other URL where this id will have few account numbers and other data which I have to verfiy. but waiting overnight is must for data to generate , How this can be managed using Selenium ?
Hi this is not a right candidate for test automation
Nice trick thanks
Hi I am also facing the same issue of hidden value i cant identify the element .Like you said in the video delete 3 items from blur if it is not then focusout that too is not present can you suggest something else
Can someone explain how he captured that xpath - Contains?
@Naveen AutomationLabs Another trick is when the list appeared, press tab key manually to reach inspect button and hit enter key. You will find element source code without disabling blur property for those objects....
This won't work if you have many elements on the page like Flipkart or Amazon. In fact if you try the same on Flipkart and moving manually to inspect icon and press enter. List is getting disappeared.
@@naveenautomationlabsTrue, for multiple elements it becomes difficult..
Awesome tip, thanks for sharing 👏
Thank you a lot Naveen.
Great
Thank you.. very helpful!!
Helpful THanks a lot
Thank You Naveen.
quick and crisp 👍🏻
Thank you. It worked
Perfect Naveen..
Can you make videos on Linux . I believe Linux becoming more powerful to automate in USA . I believe you should start making videos on LINUX which will help many people .
I thought Ctrl+shift+C shortcut will work here but it didn't. Thank for the video sir.
Hi Naveen what if no blur is not available?
He, I'm trying this on my test site but it's not working. Is there any other ways to do this?
Thanks Naveen. I use to do driver.pagesource() or debugger() in browser's console to perform the same
Too good. 😇
Nice
Hi Naveen, Selenium is not able to automate the pages having intermediate redirection pages.
Page 1> Page2> Page 3
Selenium is able to go up to page 2 URL only.
What to do, please help.
Hi Naveen can you help to select from that more dropdown in flipkart I am giving the xpath right but elements list is not getting any entry size is still 0.
I need same question for Appium. I need to get data from drop-down of 10 values. I used Select class. But, it get the text of only visible text, it is not getting last 2 values because of hidden by scrolling. Please give me solution for Appium
thanks you
Excellent man
In my case, i could not able to find BLUR property itself in the Event Listener and its not at all visible. Please suggest alternative solution for this.
You can use ‘focusout’ in that case
It is also another event in eventlistener
thank you Naveen
Excellent
Thank you nvin..
Hi navin..i have only one property in blur.I have removed that still it is not working pls help
It is not working with under electronics dropdown list, can u pls tell me how to handle those
how to send json data for json editor text box using webdriverio, I have tried with many methods , not working anything... In ui there is json editor text box, save button so i need to send some json data in editor text box