Top 10 Selenium Exceptions | How to Handle Selenium Exception with Code | Day 21

Описание к видео Top 10 Selenium Exceptions | How to Handle Selenium Exception with Code | Day 21

✅ Join us - https://sendfox.com/thetestingacademy

In this video, We are going to learn How to Handle Selenium Exceptions and Top 10 Selenium Exceptions.

Exception in Automation code is very common. ‘Exception’ as the word indicates, is a special or uncommon case.
Selenium Exception handling is a very important part of every Selenium Script and for Interview.

🚀 Notes : - https://scrolltest.com/9oPk

🚀 What is an Exception?
- Unwanted event which occurs during the execution of a program or code;
- It disturbs the normal flow of program.
- Example : You are trying 1/0 division.
- Arithmetic Exception
trying to access an element of an array which is more than the size of that array
- ArrayOutOfBound
Exception handling is a very important part of every Selenium Script and for Interview.

🚀Top 10 Selenium Exceptions

- NotFoundException
- NoSuchWindowException
Webdriver is trying to switch to an invalid window, which is unavailable
- NoSuchFrameException:
Webdriver attempts to switch to an invalid frame, which is unavailable
- NoSuchElementException
Webdriver is not able to determine the elements during runtime, i.e., the FindBy method cannot find a particular component
- NoAlertPresentException
Webdriver is trying to switch to an invalid alert, which is unavailable
- TimeoutException
The command did not complete in the specified time. For example, the element didn’t display at the specified time. This is especially encountered when working with waits
- StaleElementReferenceException
The referenced element is no longer present on the DOM page (a reference to a component is now Stale). For example, the item belongs to a different frame than the current one or the user has navigated away to another page
Due to ?
Navigation to another page
DOM has refreshed
A frame or window switch
- InvalidElementState
- ElementNotVisibleException
In spite of the element being present in the DOM, it is not visible (can not be interactive). For example, elements defined in HTML with type =”hidden”
- ElementNotSelectableException
An element is disabled (can not be clicked/selected) in spite of being present in the DOM
Diagram
For ElementNot Interactable
- ExpectedConditions.visibilityOfElementLocated(By.id("Passwd")));
ExpectedConditions.elementToBeClickable
Javascript clicks

- SessionNotFoundException
Webdriver is acting immediately after ‘quitting’ the browser
------------------------------------------------------------

-----------------------------------------------------
👪 Join our Community - http://bit.ly/learntesting2019
✅ Automation Tester Community - https://thetestingacademy.com
🐦Follow us on Twitter -   / itstechmode  
📖 Like us on Facebook -   / scrolltest  
🎤 Listen to our Podcast - https://anchor.fm/thetestingacademy
------------------------------------------------------

#automationtesting #manualtesting #testautomation #thetestingacademy #scrolltest

🚀 What is Automation Testing?
Automation testing is a Software testing technique to test and compare the actual outcome with the expected outcome.

This can be achieved by writing test scripts or using any automation testing tool.

🚀 What is Test automation?
Test automation is used to automate repetitive tasks and other testing tasks which are difficult to perform manually.

🚀Why we do Automation Testing?
- Eliminate the manual efforts
- Ad hoc Test- cases are required to run.
- Rerun the critical or important cases continuously.
- Long manual flows are tidies

🚀What is 30 Days of Automation in Testing Challenge?

This video is part of 30 Days of Automation in Testing Challenge. Where we will learn about the different concepts related to Automation Testing for Beginners and topics like

✅ Automation testing features
✅ Approaches to automation testing
✅ What is Automation testing
✅ Why automation testing
✅ Automation testing frameworks
✅ Automation testing advantages
✅ Automation testing benefits
✅ Automation Testing Tools
✅ Automaton Testing Books.
✅ Why you need automation testing.
✅ What is UI Testing
✅ Top Automation blogs to read.
✅ Automation tutorials included Selenium, Cypress, Katalon Studio and Test automation frameworks and may more concepts.


🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

✅Selenium Training and Certification -
https://scrolltest.com/go/edureka

✅Learn Jenkins for QA -
https://bit.ly/learnjenkins-p1

✅Programming Java -
https://bit.ly/learnjava2020-p1

✅Test Automation -
https://bit.ly/learnautomation2020

✅API Testing -
https://www.learnapitesting.com

✅Cypress Tutorial with LIVE Projects -
https://cypresstutorial.com

Комментарии

Информация по комментариям в разработке