How To Handle No Such Element Exception - Selenium WebDriver Tutorial

How To Handle No Such Element Exception - Selenium WebDriver Tutorial

Let's Kode It

6 лет назад

46,120 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Xu Sheng Chin
Xu Sheng Chin - 19.09.2022 14:31

thank you so mcuh

Ответить
shmidt_RC
shmidt_RC - 21.08.2022 02:23

thank you!!! I lost 4 hours to find out the problem and the only you helped me!)
my solution was switchTo()frame

Ответить
Courtney Richmond
Courtney Richmond - 07.08.2022 17:22

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 iframe... No unique name, id or tag.

Ответить
Abhishek Pal
Abhishek Pal - 06.08.2022 12:41

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 'iframe'

Ответить
Numael Limas Rodriguez
Numael Limas Rodriguez - 30.07.2022 02:46

thank you so much

Ответить
saty learn
saty learn - 17.07.2022 23:54

Excellent solution. Thank you

Ответить
Лена Головач
Лена Головач - 22.06.2022 14:40

Liked and subscribed!

Ответить
Лена Головач
Лена Головач - 22.06.2022 14:36

Liked and subscribed!

Ответить
Лена Головач
Лена Головач - 20.06.2022 14:55

Liked and subscribed!

Ответить
saravanan saravanan
saravanan saravanan - 10.06.2022 13:49

You are best in fixing issues

Ответить
shanvaz Shaik
shanvaz Shaik - 18.04.2022 07:11

thanks a lot 😃

Ответить
karthikeyan B
karthikeyan B - 16.04.2022 10:08

very clear Explanation..!

Ответить
Ajay Kumar
Ajay Kumar - 08.03.2022 09:30

Thank you my problem got solved 🙌

Ответить
Ali Akbar
Ali Akbar - 15.02.2022 14:28

Thanks God Finally i got my solution after 4 days of searching ! Thank you!

Ответить
venkatesh chowdary
venkatesh chowdary - 06.12.2021 10:07

your voice modulation and explanation is good sir...

Ответить
Thennarasu then
Thennarasu then - 30.11.2021 15:01

very helpful.. saved my day...thank you

Ответить
Cory Ho
Cory Ho - 09.10.2021 19:15

What if the iframe has no id or name. I only could find the iframe src, but there was no name or id

Ответить
anas ibrahim
anas ibrahim - 01.10.2021 22:04

i was working on a bot for my company and this tutorial savedddd meeee
Thank sir
continueeeee

Ответить
Pooja D
Pooja D - 01.10.2021 09:10

Thanks for such a informative video.

Ответить
Alan Levy
Alan Levy - 25.09.2021 01:23

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.

Ответить
Aaron Andrews
Aaron Andrews - 10.09.2021 07:42

Thank you SO much

Ответить
Andukuri Rahul Ratan
Andukuri Rahul Ratan - 03.09.2021 06:24

Worked for me thxs a lot

Ответить
Jhonni Martins
Jhonni Martins - 26.05.2021 11:35

Thank you, helped a lot about the iFrame

Ответить
AC
AC - 06.02.2021 19:00

Thanks , it was very informative.

Ответить
Let's Navigate the Unknown
Let's Navigate the Unknown - 25.08.2020 18:01

Thanks man its worked

Ответить
Arun Kumar
Arun Kumar - 06.08.2020 16:41

i was using sleep(3) so it wait 3 sec . yes i am a genius :)

Ответить
alex roy
alex roy - 28.07.2020 23:20

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.

Ответить
alex roy
alex roy - 28.07.2020 23:15

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 :)

Ответить
Nisha Kanchan
Nisha Kanchan - 29.05.2020 19:30

Hi.. How do i locate an element (linked text). I get no such elementexception but my linked text is something like this: <a onclick="openLoginRegisterModal(false)" href="javascript:;">Sign in</a>
On trying to locate by linkedtext "Sign In" i get a Nosuchelementexception. Please help

Ответить
Yori Edwardville
Yori Edwardville - 19.02.2020 23:46

Just do ‘import time’ on the top -> then > ‘time.sleep(3)’ wherever you want the program to pause and wait until elements load

Ответить
prakash S
prakash S - 01.02.2020 13:54

spr ji :)

Ответить
sowmya devamanohar
sowmya devamanohar - 22.10.2019 17:13

Thanks! I have used explicit wait but even after that I'm getting a timeout exception

Ответить
muhammad nabeel
muhammad nabeel - 28.05.2019 10:41

hii..
when i use implicit wait line the issue stills occurs so what can i do.....???

Ответить
Dika Nurhasanah
Dika Nurhasanah - 29.03.2019 09:22

thank you, this is really helpfull!

Ответить
Miodrag Zivanovic
Miodrag Zivanovic - 21.03.2019 17:27

You are the savor!
Thank you for the info about "iFrame", I had a headache due to that little s...t
Thank you so much, mate!
All the Best!

Ответить
Ram
Ram - 11.02.2019 18:11

org.openqa.selenium.ElementNotVisibleException: element not interactable


I am still getting error :(

Ответить
Samruddha Shirude
Samruddha Shirude - 26.01.2019 20:26

NoSuchElement found and notvisibile exception are sane?

Ответить
Divya Bharathi
Divya Bharathi - 27.09.2018 20:25

Superb... Thank you so much.. clear explanations. Understood very well..

Ответить
nara simha
nara simha - 14.08.2018 17:44

Super Explanation,Thank you

Ответить