How To Handle No Such Element Exception - Selenium WebDriver Tutorial

  Рет қаралды 47,001

Let's Kode It

Let's Kode It

Күн бұрын

Пікірлер: 92
@anasibrahim6548
@anasibrahim6548 3 жыл бұрын
i was working on a bot for my company and this tutorial savedddd meeee Thank sir continueeeee
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us.
@AliAkbar-pm4ry
@AliAkbar-pm4ry 2 жыл бұрын
Thanks God Finally i got my solution after 4 days of searching ! Thank you!
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us.
@shmidt_rc2338
@shmidt_rc2338 2 жыл бұрын
thank you!!! I lost 4 hours to find out the problem and the only you helped me!) my solution was switchTo()frame
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you found it helpful :) Please like and share the video and help us spread the word.
@venkateshchowdary4331
@venkateshchowdary4331 3 жыл бұрын
your voice modulation and explanation is good sir...
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us.
@muhammadnabeel1375
@muhammadnabeel1375 5 жыл бұрын
hii.. when i use implicit wait line the issue stills occurs so what can i do.....???
@LetsKodeItOfficial
@LetsKodeItOfficial 5 жыл бұрын
There could be other issues as explained in the video. Timing issues is only one of the reason. In timing issue also, it may be possible that you can get the exception. At that time, you will have to use Explicit Wait
@abhishekpal3809
@abhishekpal3809 2 жыл бұрын
Thanks Bhai for this video , 4 hours se laga hua tha smj nahi aa rha tha element kyo nahi mil rha , then I got the answer - my element was in ''
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Hahaha, thanks bhai for such a beautiful comment. Glad you found it helpful :) Please like and share the video and help us spread the word.
@alanlevy1986
@alanlevy1986 3 жыл бұрын
thanks for the video! can you show how to handle a "no such element: Unable to locate element" solution in C#. i have a product page that i need to crawl. but some elements are with empty text and on other products are with value. but when i get to a one without text i get an Exception and the its not continuing to locate the other elements.
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
The concept doesn't change with programming language. It will still be same reasons. You can send me the code at letskodeit@gmail.com and I can take a look. Please convert your code to Java or Python. I don't work with C Sharp.
@saravanansaravanan18
@saravanansaravanan18 2 жыл бұрын
You are best in fixing issues
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you found it helpful, please like and share the video to spread the word :)
@nishakanchan7682
@nishakanchan7682 4 жыл бұрын
Hi.. How do i locate an element (linked text). I get no such elementexception but my linked text is something like this: Sign in On trying to locate by linkedtext "Sign In" i get a Nosuchelementexception. Please help
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
What code you are using? Better try with XPath.
@nishakanchan7682
@nishakanchan7682 4 жыл бұрын
@@LetsKodeItOfficial thank you. I got the issue.. I used sign in to build xpath and that was not right. It was fixed after I used javascript:; to build xpath. Thank you for ur quick response. Your videos r very nice, informative and precise!
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
@@nishakanchan7682 Glad you liked the videos. If you like, you can enroll in our complete course. You will have lifetime access and you will get all the test automation courses in one bundle: courses.letskodeit.com/courses/test-automation-bundle?coupon=KZbinRS29
@coryho9124
@coryho9124 3 жыл бұрын
What if the has no id or name. I only could find the src, but there was no name or id
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
If doesn't have id or name, we can find the with the help of index also.
@divyabharathi2128
@divyabharathi2128 6 жыл бұрын
Superb... Thank you so much.. clear explanations. Understood very well..
@LetsKodeItOfficial
@LetsKodeItOfficial 6 жыл бұрын
Glad you liked it :) Please feel free to share this video with your friends. It really helps us to bring more videos like this.
@sowmyadevamanohar9192
@sowmyadevamanohar9192 5 жыл бұрын
Thanks! I have used explicit wait but even after that I'm getting a timeout exception
@LetsKodeItOfficial
@LetsKodeItOfficial 5 жыл бұрын
It is not feasible to figure out the issue without seeing your code and environment. If you like our content, you can enroll in the complete course also here, and we can help you with the issues you are seeing: courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=KZbinRS899
@kylosimon373
@kylosimon373 3 жыл бұрын
you probably dont give a shit but if you guys are stoned like me during the covid times you can watch pretty much all of the latest series on instaflixxer. Been streaming with my girlfriend lately :)
@codykyle7563
@codykyle7563 3 жыл бұрын
@Kylo Simon Definitely, have been using InstaFlixxer for since december myself :D
@lovesnhugs
@lovesnhugs 2 жыл бұрын
Can you show an example where there is a parent, then a li below the parent, then another sublevel below that that is the 7th of type (7the child of the 2nd level). It is not in an ... No unique name, id or tag.
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
If you can provide an example website/element, I can definitely help you find the element.
@satylearn3383
@satylearn3383 2 жыл бұрын
Excellent solution. Thank you
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us.
@karthikeyanb6897
@karthikeyanb6897 2 жыл бұрын
very clear Explanation..!
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you found it helpful :) Please like and share the video and help us spread the word.
@ramphalke5775
@ramphalke5775 5 жыл бұрын
org.openqa.selenium.ElementNotVisibleException: element not interactable I am still getting error :(
@LetsKodeItOfficial
@LetsKodeItOfficial 5 жыл бұрын
ElementNotInteractable is a different kind of exception, it is not as same as NoSuchElementException. ElementNotVisible is also a different kind of exception. ElementNotInteractable is similar to this kind of exception, but may not be same in every scenario: kzbin.info/www/bejne/n5KsYqmZeqaKoq8
@thennarasuthen9179
@thennarasuthen9179 3 жыл бұрын
very helpful.. saved my day...thank you
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us.
@JhonniMartins
@JhonniMartins 3 жыл бұрын
Thank you, helped a lot about the iFrame
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us. If you like our content, you can enroll in the complete course also here: courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=KZbinRS899
@alexroy9486
@alexroy9486 4 жыл бұрын
Personally my worst timing issue is when selenium thinks he clicked on an element when in reality he didin't. I think It's mainly because I'm telling selenium to click on some text with xpath when the text is present but the button functionality where the text belong to isint active yet skipping that line pretty much and trying to execute the next one. I had no found any solution for this one other than doing time.sleep(1) which I hate doing lol.
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
You should try Explicit Wait and expected condition wait for element to become clickable.
@samruddhashirude8348
@samruddhashirude8348 5 жыл бұрын
NoSuchElement found and notvisibile exception are sane?
@samruddhashirude8348
@samruddhashirude8348 5 жыл бұрын
NoSuchElement found and not visible exception are Same?
@LetsKodeItOfficial
@LetsKodeItOfficial 5 жыл бұрын
They are not same. If element is present but it is not visible on the screen then ElementNotVisible Exception show up
@ЛенаГоловач-ъ2г
@ЛенаГоловач-ъ2г 2 жыл бұрын
Liked and subscribed!
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you found it helpful, please share the video to spread the word :)
@bojanjovic1404
@bojanjovic1404 6 жыл бұрын
Hi, I had a problem with Momondo website. I posted problem on your google group. What I find out for this website is that there are multiple elements (more than one matching nodes) with the same XPATH. So when I selected precisely one element (one matching node) than it didn't work, but when I leave xpath to find for example 2 elements (two matching nodes) and put it into the code than it worked. I really don't know how this works and why it works on this way. This totally confusing me. Can you investigate and find out why it works just on this totally unexpected way and why does not work when you precisely specify XPATH? Here is the link about problem in your google group: groups.google.com/forum/#!topic/letskodeselenium/YsHFJXPkUD0
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
Please ask problems related to the video here. For other topics, please post a question on google group and will reply there.
@narasimha4962
@narasimha4962 6 жыл бұрын
Super Explanation,Thank you
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
Glad you found it helpful :) Please like and share the video and help us spread the word.
@AjayKumar-ky8vo
@AjayKumar-ky8vo 2 жыл бұрын
Thank you my problem got solved 🙌
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad it helped you :) Please help spread the word by liking and sharing the video.
@AC-vt1nq
@AC-vt1nq 3 жыл бұрын
Thanks , it was very informative.
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us. If you like our content, you can enroll in the complete course also here: learn.letskodeit.com/p/selenium-webdriver-with-java/?product_id=342636&coupon_code=KZbinSELJAVA9
@vishveshkhandpur2560
@vishveshkhandpur2560 3 жыл бұрын
@@LetsKodeItOfficial Hello can you please help, I am trying to interact with the buy now button on the amazon page. But, I am getting the error: str object is not callable. I have written the below lines of code. context=driver.find_element(By.XPATH("//button[contains(@class,'_2KpZ6l _2U9uOA _3v1-ww')]")) context.click() Will be very glad if you can please help me out. Thanks!
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
@@vishveshkhandpur2560 Please send your complete code at letskodeit@gmail.com and will be happy to help.
@vishveshkhandpur2560
@vishveshkhandpur2560 3 жыл бұрын
@@LetsKodeItOfficial Thanks a lot, for the response I have mailed it!
@andukurirahulratan2256
@andukurirahulratan2256 3 жыл бұрын
Worked for me thxs a lot
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us. If you like our content, you can enroll in the complete course also here: courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=KZbinRS899
@shanvazshaik9654
@shanvazshaik9654 2 жыл бұрын
thanks a lot 😃
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us.
@alamar11
@alamar11 3 жыл бұрын
Thank you SO much
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
Glad you liked it :) Please feel free to share this video with your friends. It really helps us to bring more videos like this.
@dikanurhasanah3218
@dikanurhasanah3218 5 жыл бұрын
thank you, this is really helpfull!
@LetsKodeItOfficial
@LetsKodeItOfficial 5 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us. If you like our content, you can enroll in the complete course also here: learn.letskodeit.com/p/selenium-webdriver-with-java/?product_id=342636&coupon_code=KZbinSELJAVA9
@yoriedwardville1727
@yoriedwardville1727 4 жыл бұрын
Just do ‘import time’ on the top -> then > ‘time.sleep(3)’ wherever you want the program to pause and wait until elements load
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
This is not a good way because of the uncertainty of the time an element can take to show up.
@Letsnavigatetheunknown
@Letsnavigatetheunknown 4 жыл бұрын
Thanks man its worked
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
Glad it helped you :) Please help spread the word by liking and sharing the video.
@Letsnavigatetheunknown
@Letsnavigatetheunknown 4 жыл бұрын
@@LetsKodeItOfficial please upload complete selenium course because your teaching style is awesome.
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
@@Letsnavigatetheunknown It's available here. Please enroll if you like: courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=KZbinRS899
@poojad6164
@poojad6164 3 жыл бұрын
Thanks for such a informative video.
@LetsKodeItOfficial
@LetsKodeItOfficial 3 жыл бұрын
Glad you found it helpful :) Please like and share the video to spread the word and help us.
@alexroy9486
@alexroy9486 4 жыл бұрын
Usually solved by 1 simple line |driver.implicitly_wait(30)| most no such element will be searched for 30 second before giving the exception, if it still does that this solution works well :)
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
Implicit Wait does not work for all the scenarios, it does work for few scenarios though.
@prakashs636
@prakashs636 4 жыл бұрын
spr ji :)
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
Glad you found it helpful :) Please like and share the video and help us spread the word.
@Arun_Kumar_x86
@Arun_Kumar_x86 4 жыл бұрын
i was using sleep(3) so it wait 3 sec . yes i am a genius :)
@LetsKodeItOfficial
@LetsKodeItOfficial 4 жыл бұрын
You should not use that :) Please start using Implicit Wait and Explicit Wait.
@Arun_Kumar_x86
@Arun_Kumar_x86 4 жыл бұрын
@@LetsKodeItOfficial OK I will do that
@ЛенаГоловач-ъ2г
@ЛенаГоловач-ъ2г 2 жыл бұрын
Liked and subscribed!
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you found it helpful, please share the video to spread the word :)
@xushengchin511
@xushengchin511 2 жыл бұрын
thank you so mcuh
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you liked it :) Please feel free to share this video with your friends.
@numaellimasrodriguez6629
@numaellimasrodriguez6629 2 жыл бұрын
thank you so much
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you found it helpful :) Please like and share the video and help us spread the word.
@ЛенаГоловач-ъ2г
@ЛенаГоловач-ъ2г 2 жыл бұрын
Liked and subscribed!
@LetsKodeItOfficial
@LetsKodeItOfficial 2 жыл бұрын
Glad you found it helpful, please share the video to spread the word :)
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
How to crack Selenium WebDriver Interview without Experience
30:16
Let's Kode It
Рет қаралды 35 М.
How to Handle Stale Element Exception in Selenium with Java
15:36
Mystery of StaleElementReferenceException in Selenium WebDriver
18:10
Naveen AutomationLabs
Рет қаралды 51 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
How to handle hidden webelements in Selenium Webdriver
21:19
Mukesh otwani
Рет қаралды 126 М.
How To Explain Selenium Automation Framework In Interviews
21:25
Let's Kode It
Рет қаралды 41 М.
How to execute failed test cases in Selenium webdriver
17:09
Mukesh otwani
Рет қаралды 97 М.
How to Become Genius in XPath in Selenium  - Session -18
39:48
Naveen AutomationLabs
Рет қаралды 729 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН