com.robotium.solo
Class Solo.Config

java.lang.Object
  extended by com.robotium.solo.Solo.Config
Enclosing class:
Solo

public static class Solo.Config
extends Object

Config class used to set the scroll behaviour, default timeouts, screenshot filetype and screenshot save path.

Example of usage:

  public void setUp() throws Exception {
        Config config = new Config();
        config.screenshotFileType = ScreenshotFileType.PNG;
        config.screenshotSavePath = Environment.getExternalStorageDirectory() + "/Robotium/";
        config.shouldScroll = false;
        solo = new Solo(getInstrumentation(), config);
        getActivity();
 }
 

Author:
Renas Reda, renas.reda@robotium.com

Nested Class Summary
static class Solo.Config.ScreenshotFileType
          The screenshot file type, JPEG or PNG.
 
Field Summary
 boolean commandLogging
          Set to true if logging should be enabled.
 String commandLoggingTag
          The command logging tag.
 Solo.Config.ScreenshotFileType screenshotFileType
          The screenshot file type, JPEG or PNG.
 String screenshotSavePath
          The screenshot save path.
 boolean shouldScroll
          Set to true if the get, is, set, enter, type and click methods should scroll.
 int timeout_large
          The timeout length of the waitFor methods.
 int timeout_small
          The timeout length of the get, is, set, assert, enter and click methods.
 boolean trackActivities
          Set to true if Activity tracking should be enabled.
 boolean useJavaScriptToClickWebElements
          Set to true if JavaScript should be used to click WebElements.
 String webFrame
          Set the web frame to be used by Robotium.
 
Constructor Summary
Solo.Config()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeout_small

public int timeout_small
The timeout length of the get, is, set, assert, enter and click methods. Default length is 10 000 milliseconds.


timeout_large

public int timeout_large
The timeout length of the waitFor methods. Default length is 20 000 milliseconds.


screenshotSavePath

public String screenshotSavePath
The screenshot save path. Default save path is /sdcard/Robotium-Screenshots/.


screenshotFileType

public Solo.Config.ScreenshotFileType screenshotFileType
The screenshot file type, JPEG or PNG. Use ScreenshotFileType.JPEG or ScreenshotFileType.PNG. Default file type is JPEG.


shouldScroll

public boolean shouldScroll
Set to true if the get, is, set, enter, type and click methods should scroll. Default value is true.


useJavaScriptToClickWebElements

public boolean useJavaScriptToClickWebElements
Set to true if JavaScript should be used to click WebElements. Default value is false.


trackActivities

public boolean trackActivities
Set to true if Activity tracking should be enabled. Default value is true.


webFrame

public String webFrame
Set the web frame to be used by Robotium. Default value is document.


commandLogging

public boolean commandLogging
Set to true if logging should be enabled. Default value is false.


commandLoggingTag

public String commandLoggingTag
The command logging tag. Default value is "Robotium".

Constructor Detail

Solo.Config

public Solo.Config()


Copyright © 2009–2015. All rights reserved.