All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.webdevice.scenario.spring.app.BrowserAutomation Maven / Gradle / Ivy

There is a newer version: 0.0.15
Show newest version
package io.webdevice.scenario.spring.app;

import io.webdevice.device.WebDevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BrowserAutomation
        implements CommandLineRunner {
    private final WebDevice browser;

    @Autowired
    public BrowserAutomation(WebDevice browser) {
        this.browser = browser;
    }

    @Override
    public void run(String... args) {
        browser.home();
        browser.navigateTo("/tasks");
    }

    public static void main(String[] args) {
        SpringApplication.run(BrowserAutomation.class, args);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy