Debomita Bhattacharjee has Published 863 Articles

How test runner prioritize test classes for execution in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:26:24

712 Views

We can prioritize tests in TestNG during execution. It must be noted that priority can only be set for test methods with @Test annotation. Lower the priority number set for a test method, higher the priority it gets during execution.Only integer value (positive, zero or negative) can be set as ... Read More

TestNG error:- Cannot find class in classpath using Selenium

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:24:27

11K+ Views

We may encounter Cannot find class in classpath exception while executing tests in Selenium with TestNG framework. This can be caused because of the following reasons −In the TestNG XML, the class tag having the name attribute should not have the .java extension.In the TestNG XML, the class file is ... Read More

How to run multiple test cases using TestNG Test Suite in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:23:19

4K+ Views

We can run multiple test cases using TestNG test suite in Selenium webdriver. To execute test cases simultaneously, we have to enable parallel execution in TestNG.A TestNG execution is driven by the TestNG xml file. To trigger parallel execution we have to use the attributes – parallel and thread-count. The ... Read More

What is Cucumber dry run in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:22:01

11K+ Views

Cucumber dry run is used for compilation of the Step Definition and Feature files and to verify the compilation errors. The value of dry run can be either true or false. The default value of dry run is false and it is a part of the Test Runner Class file.In ... Read More

How do I resolve the ElementNotInteractableException in Selenium WebDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:18:35

4K+ Views

We get the ElementNotInteractableException in Selenium if an element is available in DOM but not in a condition to be interacted. Some of the reasons for this exception are −There may be a covering of another element on the element with which we want to interact with. This overspread of ... Read More

Unable to locate an element using xpath error in selenium-java

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:18:08

9K+ Views

We may encounter the error - unable to locate element while working with Selenium webdriver. This leads to NoSuchElementException. This type of exception is thrown when there is no element on the page which matches with the locator value.If error is encountered, we can fix it by the following ways ... Read More

Equivalent of waitForVisible/waitForElementPresent in Selenium WebDriver tests using Java?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:14:36

721 Views

There are equivalent methods for waitForVisible/waitForElementPresent in Selenium webdriver. They are a part of the synchronization concept in Selenium.The implicit and explicit waits are the two types of waits in synchronization.The implicit wait is the wait applied to the webdriver for a specified amount of time for all elements. Once ... Read More

How to create a Javascript executor for making an element visible in Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:13:35

2K+ Views

We can create a JavaScript Executor for making an element visible in Selenium webdriver. A hidden element has a style attribute whose value set to display: none.For making an element visible on the page we have set the value of style attribute to block/ inline/ flex/ inline-block. Let us see ... Read More

Differences Between Selenium and Cucumber

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:13:10

787 Views

There are differences between Selenium and Cucumber are listed below −Sr. No.SeleniumCucumber1It is a test automation framework.It is not a test automation framework.2Primarily used for automation testing of front end applications.Primarily used as a tool for behavior driven development.3Can be written in any programming language like Java, Python, Ruby, C#, ... Read More

What's the difference between RSpec and Cucumber in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 07-Apr-2021 09:06:11

358 Views

The differences between RSpec and Cucumber are listed below −Sr. No.RSpecCucumber1A testing framework which gives the option to build and execute tests.A tool which is used to create test cases in plain English text.2Mainly used for integration and unit testing.Mainly used for user acceptance testing.3Utilized for Test Driven Development by ... Read More

Advertisements