Package net.sourceforge.marathon.action

Examples of net.sourceforge.marathon.action.ScreenCaptureAction$SameTitle


        MComponent component = finder.getMComponentById(id);
        return component.getPropertyObject(property);
    }

    public void screenCapture(String imageName) {
        play(new ScreenCaptureAction(imageName, scriptModel, windowMonitor));
    }
View Full Code Here


    public void screenCapture(String imageName) {
        play(new ScreenCaptureAction(imageName, scriptModel, windowMonitor));
    }

    public void screenCapture(String imageName, String windowName) {
        play(new ScreenCaptureAction(imageName, windowName, scriptModel, windowMonitor));
    }
View Full Code Here

        play(new ScreenCaptureAction(imageName, windowName, scriptModel, windowMonitor));
    }

    public void screenCapture(String imageName, String windowName, ComponentId id) {
        MComponent component = finder.getMComponentById(id);
        play(new ScreenCaptureAction(imageName, windowName, component, scriptModel, windowMonitor));
    }
View Full Code Here

    public File getScreenCapture() {
        try {
            String imgDir = System.getProperty(Constants.PROP_REPORT_DIR);
            if (imgDir != null) {
                File tempFile = File.createTempFile("screencap", ".png", new File(imgDir));
                new ScreenCaptureAction(tempFile.getAbsolutePath(), getTopWindowId().getTitle(), scriptModel, windowMonitor)
                        .play(finder);
                return tempFile;
            } else
                System.err.println("getScreenCapture(): Image directory is not set");
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.action.ScreenCaptureAction$SameTitle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.