Does Selenium WebDriver for Java require some sort of IDE like Eclipse in order to run?

点点圈 提交于 2019-12-24 01:26:32

问题


In the Selenium Tutorial on Guru99 in the WebDriver installation tab (http://www.guru99.com/installing-selenium-webdriver.html), one of the installation steps says to install the Eclipse IDE. I was wondering if I could get around that and just run Selenium WebDriver for Java without using any sort of IDE.


回答1:


You don't require any IDE to run your selenium scripts..

however using IDE like eclipse will make your work easier and faster




回答2:


There are two things:

  1. Designing the Selenium scripts: Initially when you are developing your selenium script, the IDE will make job easier for you when you want to setup things, (like adding the Selenium server jar to your Reference libraries etc.)

  2. Executing the Scripts: Once you are done with the designing of the script. Since you are using Java, You can export your project into a Jar (or an Executable jar) and run it directly like any other Jar file. While exporting into Jar, don't forget to choose the option of 'Export all required libraries into Jar'.

Allowing us to use a programming language, Java in this case, Selenium allows us to play around and do almost all the stuffs one can do with the Core programming language.

Hope it helps :)




回答3:


However not a requirement for Selenium, it integrates nicely with testng and with testng plugin for Eclipse, it becomes much easier to run tests. Also, if you are using Java as the language for implementing the tests, Eclipse is great tool.



来源:https://stackoverflow.com/questions/35375085/does-selenium-webdriver-for-java-require-some-sort-of-ide-like-eclipse-in-order

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!