Tag Archives: exceptions in selenium

TestNG annotations

Below is the list of annotations in TestNG. @BeforeTest @AfterTest @BeforeMethod @AfterMethod @BeforeSuite @AfterSuite @BeforeGroups @AfterGroups @BeforeClass @AfterClass @Test @BeforeTest: Executes before any method in a class which is having @Test annotation. @AfterTest: Executes after any method in a class which is having @Test annotation. @BeforeMethod: Executes every time before any test method in a… Read More »

How to handle mouse hover events using Selenium WebDriver

In this article, we will learn about how to handle the mouse hover events using selenium webdriver. Firstly, we have to hover mouse over the menu item. This displays the dropdown list/sub menu items. Next, we have to select the sub elements from the list and have to click on one of the sub element.… Read More »

common exceptions in selenium webdriver

1 ElementNotSelectableException: Occurs when an element is not selectable. 2 ElementNotVisibleException: Element is present in the DOM but it is not visible. So WebDriver is unable to interact with the element. 3 NoAlertPresentException: This exception occurs when there is no Alert is present in the DOM. So WebDriver couldn’t be switched to the Alert. 4. NoSuchElementException: Occurs when element is not… Read More »