Selenium WebDriver for Java是否需要某种IDE(例如Eclipse)才能运行? [英] Does Selenium WebDriver for Java require some sort of IDE like Eclipse in order to run?

查看:94
本文介绍了Selenium WebDriver for Java是否需要某种IDE(例如Eclipse)才能运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在WebDriver安装选项卡上的Guru99上的Selenium教程中( http://www. guru99.com/installing-selenium-webdriver.html ),其中一个安装步骤是说要安装Eclipse IDE.我想知道是否可以解决这个问题,而无需使用任何IDE即可运行Selenium WebDriver for Java.

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. 设计Selenium脚本:最初,在开发Selenium脚本时,IDE将为您简化设置工作(例如将Selenium服务器jar添加到其中).您的参考资料库等).

  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.)

执行脚本:完成脚本的设计后.由于您使用的是 Java ,因此您可以将项目导出到Jar(或可执行的jar)中,并像其他任何Jar文件一样直接运行它.导出到Jar中时,请不要忘记选择将所有必需的库导出到Jar中"的选项.

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'.

在这种情况下,Selenium允许我们使用Java这样的编程语言,它使我们能够玩弄并完成人们使用Core编程语言所做的几乎所有事情.

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.

希望它会有所帮助:)

这篇关于Selenium WebDriver for Java是否需要某种IDE(例如Eclipse)才能运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆