What is HTML DOM & StaleElement Exception in Selenium

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

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:
kzfaq.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:
kzfaq.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
@nilstoned7593
@nilstoned7593 2 жыл бұрын
I love your dedication, dude... It was Sunday, 11 PM and you were recording this video. Kudos!
@omkarpotdar2763
@omkarpotdar2763 Жыл бұрын
Thank a lot Naveen for providing a great idea about what is HTML DOM & StaleElement Exception. Keep it up😊
@BalaKrishna-gd7si
@BalaKrishna-gd7si 6 жыл бұрын
Thanks for such a nice video. Useful information and depth of DOM required for automation engineers.
@varmagsr
@varmagsr 5 жыл бұрын
Explanation awesome, very easy to follow and understand. thanks for the video
@thediamondwings6451
@thediamondwings6451 5 жыл бұрын
Mind blowing teaching way.....
@veera1200
@veera1200 5 жыл бұрын
Nice video . thank you very much to giving clarity on DOM & how it works
@aayushpatel3360
@aayushpatel3360 2 жыл бұрын
very useful video and this is new to me in 3.5 years of testing experience. Thanks Naveen
@MrRockstar001
@MrRockstar001 6 жыл бұрын
you give awesome explanation naveen.. :)
@vivekanandagupta8982
@vivekanandagupta8982 6 жыл бұрын
nice explanation , easy to understand all concepts ...!!!
@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..?
@sharatchandra2045
@sharatchandra2045 5 жыл бұрын
Excellent Naveen. Thanks
@saranyajothi9691
@saranyajothi9691 5 жыл бұрын
Hi Naveen, You are doing great job.Thank you so much for ur videos pls upload videos on API
@tanmaysharma4830
@tanmaysharma4830 2 жыл бұрын
You are true Hero sir...love your dedication..
@nandiniarumugam9772
@nandiniarumugam9772 6 жыл бұрын
Well explained!!
@arabindamohanty2190
@arabindamohanty2190 3 жыл бұрын
Thanks a lot for a great explanation 😊
@sampujyadhal2643
@sampujyadhal2643 5 жыл бұрын
Nicely explained video!!
@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
@saifsultan8206
@saifsultan8206 2 жыл бұрын
Great Explanation. Thank You Naveen
@chiranjeevit
@chiranjeevit 6 жыл бұрын
Hi Naveen, Could you please upload a videos on different Web Element Exception Handling with examples? Thanks in advance
@sridharlanka2721
@sridharlanka2721 2 жыл бұрын
Brilliant explanation!
@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...
@ravikumar-fr2ky
@ravikumar-fr2ky 6 жыл бұрын
gr8 stuff...thanku
@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?
@minecode123
@minecode123 4 жыл бұрын
Hi Naveen, Did you worked for HCL earlier?
@prabakarm5025
@prabakarm5025 6 жыл бұрын
nice videos
@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
@v2factsandupdates327
@v2factsandupdates327 Жыл бұрын
Awesome
@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.
@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.
@ravipratap4862
@ravipratap4862 4 жыл бұрын
is this the reason behind each browser have its own browser driver?
@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
@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.
@garaabhilash8439
@garaabhilash8439 4 жыл бұрын
Hi Naveen , Please tell me about self healing script in selenium
@user-gq8hy9ws3e
@user-gq8hy9ws3e 10 ай бұрын
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
@mudaseer21
@mudaseer21 4 жыл бұрын
Best of Asia
@dontknowwhattotypelo
@dontknowwhattotypelo 6 жыл бұрын
Oke?
How to Read Selenium WebDriver Java Doc
20:20
Naveen AutomationLabs
Рет қаралды 26 М.
How to find broken links & Images using Selenium Webdriver
45:35
Naveen AutomationLabs
Рет қаралды 97 М.
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 11 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 23 МЛН
What is DOM | Document Object Model | Beginner Tutorial
6:58
Automation Step by Step
Рет қаралды 485 М.
What is Selenium WebDriver Architecture?
50:38
Naveen AutomationLabs
Рет қаралды 148 М.
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2 МЛН
Blue Mobile 📲 Best For Long Audio Call 📞 💙
0:41
Tech Official
Рет қаралды 1 МЛН
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 6 МЛН
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 4,9 МЛН
Мой инст: denkiselef. Как забрать телефон через экран.
0:54