What is HTML DOM & StaleElement Exception in Selenium

  Рет қаралды 81,459

Naveen AutomationLabs

Naveen AutomationLabs

6 жыл бұрын

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:
kzbin.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
~-~~-~~~-~~-~
Follow my Site/Blog: www.naveenautomationlabs.com
========================================================
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:
kzbin.info%20Au...
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/COJqZUPB02r5sB7...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautomationlabs.com
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/naveenkhunteta
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة

Пікірлер: 46
@kgip11
@kgip11 3 жыл бұрын
No one ever explained DOM so nicely. Thanks Naveen
@BalaKrishna-gd7si
@BalaKrishna-gd7si 6 жыл бұрын
Thanks for such a nice video. Useful information and depth of DOM required for automation engineers.
@nilstoned7593
@nilstoned7593 2 жыл бұрын
I love your dedication, dude... It was Sunday, 11 PM and you were recording this video. Kudos!
@varmagsr
@varmagsr 6 жыл бұрын
Explanation awesome, very easy to follow and understand. thanks for the video
@veera1200
@veera1200 5 жыл бұрын
Nice video . thank you very much to giving clarity on DOM & how it works
@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.....
@sharatchandra2045
@sharatchandra2045 5 жыл бұрын
Excellent Naveen. Thanks
@nandiniarumugam9772
@nandiniarumugam9772 6 жыл бұрын
Well explained!!
@vivekanandagupta8982
@vivekanandagupta8982 6 жыл бұрын
nice explanation , easy to understand all concepts ...!!!
@MrRockstar001
@MrRockstar001 6 жыл бұрын
you give awesome explanation naveen.. :)
@sampujyadhal2643
@sampujyadhal2643 5 жыл бұрын
Nicely explained video!!
@aayushpatel3360
@aayushpatel3360 2 жыл бұрын
very useful video and this is new to me in 3.5 years of testing experience. Thanks Naveen
@saranyajothi9691
@saranyajothi9691 5 жыл бұрын
Hi Naveen, You are doing great job.Thank you so much for ur videos pls upload videos on API
@arabindamohanty2190
@arabindamohanty2190 3 жыл бұрын
Thanks a lot for a great explanation 😊
@tanmaysharma4830
@tanmaysharma4830 2 жыл бұрын
You are true Hero sir...love your dedication..
@ravikumar-fr2ky
@ravikumar-fr2ky 6 жыл бұрын
gr8 stuff...thanku
@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
@mansasiva7420
@mansasiva7420 2 жыл бұрын
Amazing explanation. Thank you.
@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
@saifsultan8206
@saifsultan8206 2 жыл бұрын
Great Explanation. Thank You Naveen
@deepriank
@deepriank 4 жыл бұрын
thank you so much naveen you are awesome
@lopamudrajenamani755
@lopamudrajenamani755 5 жыл бұрын
Nice information. Can you please upload a video on pytest framework with python for API automation?
@mithaleepardeshi4893
@mithaleepardeshi4893 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...
@user-gq8hy9ws3e
@user-gq8hy9ws3e 11 ай бұрын
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
@v2factsandupdates327
@v2factsandupdates327 2 жыл бұрын
Awesome
@prabakarm5025
@prabakarm5025 6 жыл бұрын
nice videos
@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..?
@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 5 жыл бұрын
Ravinder Sanjay has kada mokk
@vijaykumar-pd8zi
@vijaykumar-pd8zi 5 жыл бұрын
Ravinder Sanjay ninn
@sridhattasharanamnamami934
@sridhattasharanamnamami934 5 жыл бұрын
Ya seriously navven ..please do this
@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
@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.
@nitish915
@nitish915 5 жыл бұрын
If DOM structure is different for different browsers then will the xpath be different?
@vageeshajm990
@vageeshajm990 2 жыл бұрын
12:25 90% of the time DOM structure remains same for each browser.
@ravipratap4862
@ravipratap4862 4 жыл бұрын
is this the reason behind each browser have its own browser driver?
@minecode123
@minecode123 4 жыл бұрын
Hi Naveen, Did you worked for HCL earlier?
@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 5 жыл бұрын
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
@garaabhilash8439
@garaabhilash8439 4 жыл бұрын
Hi Naveen , Please tell me about self healing script in selenium
@dontknowwhattotypelo
@dontknowwhattotypelo 6 жыл бұрын
Oke?
How to Read Selenium WebDriver Java Doc
20:20
Naveen AutomationLabs
Рет қаралды 26 М.
Mystery of StaleElementReferenceException in Selenium WebDriver
18:10
Naveen AutomationLabs
Рет қаралды 50 М.
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 7 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 67 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 85 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 9 МЛН
What is DOM | Document Object Model | Beginner Tutorial
6:58
Automation Step by Step
Рет қаралды 492 М.
SDET | QA Automation Mock Interview - 5+ Years of Experience
1:55:33
Naveen AutomationLabs
Рет қаралды 215 М.
What is Selenium WebDriver Architecture?
50:38
Naveen AutomationLabs
Рет қаралды 149 М.
What is Encapsulation in Java - OOP Concept
19:44
Naveen AutomationLabs
Рет қаралды 71 М.
How to find broken links & Images using Selenium Webdriver
45:35
Naveen AutomationLabs
Рет қаралды 98 М.
Selenium Webdriver Hierarchy In Interview | Automation Interview
17:26
Desired Capabilities and Chrome Options in Selenium WebDriver
13:01
H Y R Tutorials
Рет қаралды 41 М.
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН
İĞNE İLE TELEFON TEMİZLEMEK!🤯
0:17
Safak Novruz
Рет қаралды 1 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 475 М.
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,2 МЛН
НЕ БЕРУ APPLE VISION PRO!
0:37
ТЕСЛЕР
Рет қаралды 374 М.