How is Maven used with Selenium? Does it also do the testing?

0 votes
I am relatively new to Software QA, and I'm learning Selenium WebDriver on java for testing. Most tutorials have no mention of the use of Maven, despite Selenium's documentation itself calling it the easiest way for testing. So, do I use it or not?
Apr 13, 2018 in Selenium by kappa3010
• 2,090 points
370 views

2 answers to this question.

0 votes

You need to understand the basic processes like build tools and test tools. Selenium, TestNG, etc. are test tools. However Maven, Ant, Gradle, etc. are build tools. 

The primary task of a build tool is to download all the dependencies, libraries, packages mentioned in the code, for running any software/application. The packages here will all be downloaded at runtime and the code will be executed simultaneously. 

Note: It supports Selenium and TestNG for testing purpose only. It is not a test tool by itself.
An example of how Selenium JARS can be built for packaging is this Maven code below:

<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>3.4.0</version>
</dependency> 
answered Apr 13, 2018 by king_kenny
• 3,710 points
0 votes
Hi ,

Maven is a build tool .

Why maven .....?

if u want to do selenium automation , selenium related classes required like (driver.findelement).

In order  to get  these classes and method we  have to add related jar files.

if u want add manually u have to download and add all. instead of this use maven project .

there any one dependency .

name of the jar file and version etc. then maven automatically add those jars to ur projects.
answered Sep 2 by Sri
• 2,970 points

Related Questions In Selenium

0 votes
2 answers
0 votes
1 answer

Is it possible to do Database testing by using Selenium Webdriver?

Hey Kanika, Selenium Webdriver is limited to Testing Browser ...READ MORE

answered May 15, 2019 in Selenium by Anvi
• 14,110 points
142 views
0 votes
1 answer

What is Firebug and how it is useful in Selenium Automation testing?

Hello Amit, FireBug is a plugin which comes ...READ MORE

answered May 28, 2019 in Selenium by Anvi
• 14,110 points
228 views
0 votes
1 answer

What is IWebElement and how it is used in Selenium C#?

Hello Paul, IWebElement is an Interface in ...READ MORE

answered Jun 10, 2019 in Selenium by Esha
3,479 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
681 views
+2 votes
1 answer
0 votes
1 answer

How do i click on <input type=file> on any browser if i'm testing with Selenium Webdriver?

Does not matter which OS or which ...READ MORE

answered Apr 29, 2018 in Selenium by king_kenny
• 3,710 points
6,621 views
+1 vote
2 answers