Тёмный
No video :(

What is HTML DOM & StaleElement Exception in Selenium 

Naveen AutomationLabs
Подписаться 387 тыс.
Просмотров 82 тыс.
50% 1

What is HTML DOM - Document Object Model? Why we get StaleElement Exception in Selenium.
• DOM is an API Interface provided by browser
• When a web page is loaded, browser creates a DOM of the page.
=============================================
Learn What are the different Exceptions in Selenium:
a. StaleElement Exception
b. ElementNotFound Exception
c. NoElementReference Exception
=======================================
With the document object model, JavaScript gets all the power it needs to create dynamic HTML:
• JavaScript can change all the HTML elements in the page
• JavaScript can change all the HTML attributes in the page
• JavaScript can change all the CSS styles in the page
• JavaScript can remove existing HTML elements and attributes
• JavaScript can add new HTML elements and attributes
• JavaScript can react to all existing HTML events in the page
• JavaScript can create new HTML events in the page
================================================
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
~-~~-~~~-~~-~
Follow my Site/Blog: www.naveenautom...
========================================================
Please watch: "Selenium & Automation Interview Preparation - By Naveen AutomationLabs"
• Selenium & Automation ...
~-~~-~~~-~~-~ 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/...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautom...
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/nave...
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 46   
@kgip11
@kgip11 3 года назад
No one ever explained DOM so nicely. Thanks Naveen
@nilstoned7593
@nilstoned7593 3 года назад
I love your dedication, dude... It was Sunday, 11 PM and you were recording this video. Kudos!
@omkarpotdar2763
@omkarpotdar2763 2 года назад
Thank a lot Naveen for providing a great idea about what is HTML DOM & StaleElement Exception. Keep it up😊
@thediamondwings6451
@thediamondwings6451 5 лет назад
Mind blowing teaching way.....
@aayushpatel3360
@aayushpatel3360 2 года назад
very useful video and this is new to me in 3.5 years of testing experience. Thanks Naveen
@v2factsandupdates327
@v2factsandupdates327 2 года назад
Awesome
@varmagsr
@varmagsr 6 лет назад
Explanation awesome, very easy to follow and understand. thanks for the video
@saifsultan8206
@saifsultan8206 2 года назад
Great Explanation. Thank You Naveen
@tanmaysharma4830
@tanmaysharma4830 2 года назад
You are true Hero sir...love your dedication..
@mithaleepardeshi
@mithaleepardeshi 4 года назад
Excellent session. But whenever you tell that they ask in interview, I am like Yes have to keep this in mind. Then you tell how you asked the same thing while taking an interview, And trust me the first thought that comes to my mind is "God! If I go for an interview and I get to know that Naveen Khunteta is taking the interview, I'll excuse myself telling, 'I need to use the Washroom' and then i'll run off from there. I don't know why but I am sure, interview with you would be very scary, How much ever prepared I am for it. Hahaha...
@arabindamohanty2190
@arabindamohanty2190 4 года назад
Thanks a lot for a great explanation 😊
@ravindersanjay
@ravindersanjay 6 лет назад
Hi Naveen, Suggestion for you . While making such video please zoom the word document to 190 % so that we can see the words clearly . thanks for your all videos and efforts. भगवान आपका भला करे |
@vijaykumar-pd8zi
@vijaykumar-pd8zi 6 лет назад
Ravinder Sanjay has kada mokk
@vijaykumar-pd8zi
@vijaykumar-pd8zi 6 лет назад
Ravinder Sanjay ninn
@sridhattasharanamnamami934
@sridhattasharanamnamami934 5 лет назад
Ya seriously navven ..please do this
@BalaKrishna-gd7si
@BalaKrishna-gd7si 6 лет назад
Thanks for such a nice video. Useful information and depth of DOM required for automation engineers.
@veera1200
@veera1200 5 лет назад
Nice video . thank you very much to giving clarity on DOM & how it works
@mansasiva7420
@mansasiva7420 2 года назад
Amazing explanation. Thank you.
@sunilreddymallela
@sunilreddymallela 6 лет назад
Your channel is very good great job , can you please post some more videos related sauce lasbs integration with selenium for cross browser testing
@sridharlanka2721
@sridharlanka2721 2 года назад
Brilliant explanation!
@chiranjeevit
@chiranjeevit 6 лет назад
Hi Naveen, Could you please upload a videos on different Web Element Exception Handling with examples? Thanks in advance
@sharatchandra2045
@sharatchandra2045 5 лет назад
Excellent Naveen. Thanks
@nitish915
@nitish915 6 лет назад
If DOM structure is different for different browsers then will the xpath be different?
@vageeshajm990
@vageeshajm990 3 года назад
12:25 90% of the time DOM structure remains same for each browser.
@lopamudrajenamani755
@lopamudrajenamani755 5 лет назад
Nice information. Can you please upload a video on pytest framework with python for API automation?
@geethanandana6738
@geethanandana6738 3 года назад
My amazon cart is empty then navigated to home page added few items to cart. Again I navigated to cart, I can see the added items. Here when user added the items, developer coded in such a way by using CREATE API the cart page will be updated. What understand is, browser is providing a standard DOM format with API's for UI developers to create/update the web pages.
@mudaseer21
@mudaseer21 4 года назад
Best of Asia
@sampujyadhal2643
@sampujyadhal2643 5 лет назад
Nicely explained video!!
@MrRockstar001
@MrRockstar001 6 лет назад
you give awesome explanation naveen.. :)
@user-gq8hy9ws3e
@user-gq8hy9ws3e Год назад
one small query when first page loads the elements would be same when it was loaded first time , what change there could be .not getting that ( on page refresh) any one pls answer TIA
@vivekanandagupta8982
@vivekanandagupta8982 6 лет назад
nice explanation , easy to understand all concepts ...!!!
@saranyajothi9691
@saranyajothi9691 5 лет назад
Hi Naveen, You are doing great job.Thank you so much for ur videos pls upload videos on API
@deepriank
@deepriank 4 года назад
thank you so much naveen you are awesome
@budhimantudutkt6423
@budhimantudutkt6423 6 лет назад
Thanks for the videos naveen.. Very helpful.. My question is will developers create one javascript file each for every browser or only one java script file will interact with every browser DOM API..?
@krishnabhimaneni22
@krishnabhimaneni22 6 лет назад
Naveen thanks for the amazing explanation.Could you please explain how to handle stale elements? You mentioned we have to provide fresh object reference to over come stale element exception ! Can you explain how ?
@r.suganya9036
@r.suganya9036 2 года назад
Store xpath in any string valriable. Then later use it like below. string xpath ="providexpath"; Webelement ele =Driver.FindElement(By.XPath(xpath)); //Perform desire operation like ele.Click(); If again exception occurs use try catch block to handle exception.
@nandiniarumugam9772
@nandiniarumugam9772 6 лет назад
Well explained!!
@sujaybose
@sujaybose 6 лет назад
Hi Naveen, you said javascript uses the API of HTML DOM interface for the webpage, that means selenium has in build javascript libraries(example: findelements etc) that we use while accessing those web elements using selenium?
@shivamsingh-oc2mh
@shivamsingh-oc2mh 6 лет назад
Yes bro selenium internally converts ur codes in js
@sarojjha9243
@sarojjha9243 5 лет назад
you are absolutely right. Because of which it is a good practise to use own dynamic xpath
@ravipratap4862
@ravipratap4862 4 года назад
is this the reason behind each browser have its own browser driver?
@prabakarm5025
@prabakarm5025 6 лет назад
nice videos
@minecode123
@minecode123 4 года назад
Hi Naveen, Did you worked for HCL earlier?
@garaabhilash8439
@garaabhilash8439 4 года назад
Hi Naveen , Please tell me about self healing script in selenium
@ravikumar-fr2ky
@ravikumar-fr2ky 7 лет назад
gr8 stuff...thanku
@dontknowwhattotypelo
@dontknowwhattotypelo 6 лет назад
Oke?