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 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!
@@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=UA-camRS29
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
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.
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.
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.
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=UA-camRS899
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 :)
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=UA-camRS899
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: ua-cam.com/video/iaI1vcEAWlM/v-deo.html
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.
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
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=UA-camRS899
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=UA-camSELJAVA9
@@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!
@@Letsnavigatetheunknown It's available here. Please enroll if you like: courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=UA-camRS899
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=UA-camSELJAVA9
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 :)
i was working on a bot for my company and this tutorial savedddd meeee
Thank sir
continueeeee
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
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 ''
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.
thank you!!! I lost 4 hours to find out the problem and the only you helped me!)
my solution was switchTo()frame
Glad you found it helpful :)
Please like and share the video and help us spread the word.
your voice modulation and explanation is good sir...
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
Thanks God Finally i got my solution after 4 days of searching ! Thank you!
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
You are best in fixing issues
Glad you found it helpful, please like and share the video to spread the word :)
What if the has no id or name. I only could find the src, but there was no name or id
If doesn't have id or name, we can find the with the help of index also.
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
What code you are using?
Better try with XPath.
@@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!
@@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=UA-camRS29
hii..
when i use implicit wait line the issue stills occurs so what can i do.....???
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
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.
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.
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.
If you can provide an example website/element, I can definitely help you find the element.
very clear Explanation..!
Glad you found it helpful :)
Please like and share the video and help us spread the word.
Excellent solution. Thank you
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
Superb... Thank you so much.. clear explanations. Understood very well..
Glad you liked it :) Please feel free to share this video with your friends. It really helps us to bring more videos like this.
Thanks! I have used explicit wait but even after that I'm getting a timeout exception
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=UA-camRS899
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 :)
@Kylo Simon Definitely, have been using InstaFlixxer for since december myself :D
Liked and subscribed!
Glad you found it helpful, please share the video to spread the word :)
very helpful.. saved my day...thank you
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
Thank you, helped a lot about the iFrame
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=UA-camRS899
org.openqa.selenium.ElementNotVisibleException: element not interactable
I am still getting error :(
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:
ua-cam.com/video/iaI1vcEAWlM/v-deo.html
thanks a lot 😃
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
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.
You should try Explicit Wait and expected condition wait for element to become clickable.
Thank you my problem got solved 🙌
Glad it helped you :)
Please help spread the word by liking and sharing the video.
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
Please ask problems related to the video here.
For other topics, please post a question on google group and will reply there.
Worked for me thxs a lot
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=UA-camRS899
Thank you SO much
Glad you liked it :)
Please feel free to share this video with your friends. It really helps us to bring more videos like this.
Super Explanation,Thank you
Glad you found it helpful :)
Please like and share the video and help us spread the word.
Thanks , it was very informative.
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=UA-camSELJAVA9
@@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!
@@vishveshkhandpur2560 Please send your complete code at letskodeit@gmail.com and will be happy to help.
@@LetsKodeItOfficial Thanks a lot, for the response I have mailed it!
NoSuchElement found and notvisibile exception are sane?
NoSuchElement found and not visible exception are Same?
They are not same. If element is present but it is not visible on the screen then ElementNotVisible Exception show up
Thanks man its worked
Glad it helped you :)
Please help spread the word by liking and sharing the video.
@@LetsKodeItOfficial please upload complete selenium course because your teaching style is awesome.
@@Letsnavigatetheunknown It's available here. Please enroll if you like:
courses.letskodeit.com/courses/selenium-webdriver-with-java?coupon=UA-camRS899
thank you, this is really helpfull!
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=UA-camSELJAVA9
Thanks for such a informative video.
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
Just do ‘import time’ on the top -> then > ‘time.sleep(3)’ wherever you want the program to pause and wait until elements load
This is not a good way because of the uncertainty of the time an element can take to show up.
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 :)
Implicit Wait does not work for all the scenarios, it does work for few scenarios though.
i was using sleep(3) so it wait 3 sec . yes i am a genius :)
You should not use that :)
Please start using Implicit Wait and Explicit Wait.
@@LetsKodeItOfficial OK I will do that
spr ji :)
Glad you found it helpful :)
Please like and share the video and help us spread the word.
Liked and subscribed!
Glad you found it helpful, please share the video to spread the word :)
thank you so mcuh
Glad you liked it :)
Please feel free to share this video with your friends.
thank you so much
Glad you found it helpful :)
Please like and share the video and help us spread the word.
Liked and subscribed!
Glad you found it helpful, please share the video to spread the word :)