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,010 points
198 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,590 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 5 days ago in Selenium by Anvi
• 5,680 points
14 views
+2 votes
2 answers

How can I press ENTER key with the execute_script in selenium python?

The below code containing Keys.ENTER might just ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,030 points
3,908 views
0 votes
1 answer

How do we use Gecko driver.exe with Selenium?

Recently Selenium launched v3 and if you ...READ MORE

answered Apr 7, 2018 in Selenium by nsv999
• 5,030 points
37 views
+13 votes
2 answers
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,590 points
2,025 views
0 votes
2 answers

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.