Ajocado API 1.0.0.Alpha2

org.jboss.arquillian.ajocado.browser
Class Browser

java.lang.Object
  extended by org.jboss.arquillian.ajocado.browser.Browser

public class Browser
extends Object

Encapsulates execution properties of selected browser.

Consists from browser mode (incl. it's brand type) and associated executable file

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
Browser(BrowserMode browserMode)
          Instantiates a new browser by given browserMode
Browser(BrowserMode browserMode, File executableFile)
          Instantiates a new browser by given browserMode and executableFile.
Browser(String stringRepresentation)
           Instantiates a new browser from string representation defined by Selenium framework
 
Method Summary
 String getAsString()
           Gets a string representation of browser.
 BrowserMode getMode()
          Gets the browser's mode (see Browser).
 BrowserType getType()
           Gets the type of browser.
 String toString()
          Returns a string representation of the object in human-readable format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Browser

public Browser(String stringRepresentation)

Instantiates a new browser from string representation defined by Selenium framework

e.g. "*pifirefox /some/path/firefox-bin"

Parameters:
stringRepresentation - the string representation

Browser

public Browser(BrowserMode browserMode)
Instantiates a new browser by given browserMode

Parameters:
browserMode - the browser mode

Browser

public Browser(BrowserMode browserMode,
               File executableFile)
Instantiates a new browser by given browserMode and executableFile.

Parameters:
browserMode - the browser mode
executableFile - the executable file
Method Detail

getMode

public BrowserMode getMode()
Gets the browser's mode (see Browser).

Returns:
the mode

getType

public BrowserType getType()

Gets the type of browser.

Shortcut for BrowserMode.getBrowserType().

Returns:
the type

getAsString

public String getAsString()

Gets a string representation of browser.

Returns:
the string representation of browser
See Also:
Browser(String)

toString

public String toString()
Returns a string representation of the object in human-readable format.

Overrides:
toString in class Object
Returns:
the human-readable string representation of this object

Ajocado API 1.0.0.Alpha2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.