Selenium Tutorials

Failed to launch chrome browser using selenium 4.8.2

Currently there are few issues users are facing when executing Selenium tests on chrome browser.

If have upgraded your chrome browser recently, you will see below issue -

1. Starting ChromeDriver 111.0.5563.64 (c710e93d5b63b7095afe8c2c17df34408078439d-refs/branch-heads/5563@{#995}) on port 13894
Only local connections are allowed.
Please see for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.

Selenium 4 headless execution through arguments

Selenium's headless mode allows running browser tests without a visible browser window by configuring the browser driver with the headless option. This approach enables faster and more efficient test execution as rendering the browser window is unnecessary.

Earlier to execute your Selenium tests in headless mode, you had to utilize the ChromeOptions as shown below.

ChromeOptions options = new ChromeOptions();

By using setHeadless() method, you will accomplish the same result.

Top 10 Codeless Testing Tools in 2020 You’d Better Know

It is projected that in 2020 and forward, challenges in automation testing are growing by leaps. Some of these challenges include picking an appropriate tool, skilled testers, upfront expenses, and time constraints. According to Kumar and Mishra (2016), 30% of QA teams’ effort is utilized in manually writing test cases many times to seek significant returns in the long run. Here it’s very well said that those challenges yield the latest innovative idea - codeless automation testing tools.

Allure Report using Annotations

Allure Reporting framework works fine with any test framework like TestNG, JUnit etc. Below example covers the implementation of Allure Reports in Selenium using TestNG, Java and Maven.

Let us first try to understand allure annotations before using them in our selenium example.

@Description("In this cool test we will check cool thing")

These annotations are used in the same way like we use TestNG annotations or JUnit annotations.

Extent Reports using TestNG Listeners in POM

As we know all know that ExtentReport is an HTML reporting library (open source) which can be integrated with Selenium WebDriver.

In this article, we will teach you how to develop advanced extent reports / integrate Extent Reports with your existing test automation framework.

We assume you have a working knowledge on Selenium,TestNG and Maven.

Let us start now !!!!

Importance of Reporting in a Test Automation Framework :-