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,020 points
259 views

1 answer 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,650 points

Related Questions In Selenium

0 votes
1 answer
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 in Selenium by Anvi
• 12,860 points
57 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 in Selenium by Anvi
• 12,860 points
86 views
0 votes
1 answer
+13 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,380 points
150 views
0 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,650 points
3,014 views
0 votes
2 answers