I want Selenium without tests

I've spent a lot of time writing Selenium scripts, and more recently, I've been using Selenium to automate repetitive processes I use a web browser to accomplish at work.

I really wish I could write Selenium scripts without the need for a @Test annotation, or even better, any testing framework. I have done my fair share of research into the question, but they always point back to the same "Getting started writing tests with Selenium!" pages.

So what do I use to automate web processes?


No need for @Test, just write your usual Selenium code in your standalone application. For example:

public static void main(String[] args) {
    WebDriver driver = new FirefoxDriver();
    driver.get("https://www.google.com/");
    driver.quit();
}

Run as an executable jar, run in a Groovy script, the possibilities are endless!

链接地址: http://www.djcxy.com/p/65340.html

上一篇: 硒测试与码头或不带

下一篇: 我想要没有测试的硒