org.aludratest.service.gui.web
Interface WebGUIInteraction

All Superinterfaces:
Action, GUIInteraction, Interaction
All Known Implementing Classes:
Selenium1Interaction, Selenium2Interaction

public interface WebGUIInteraction
extends GUIInteraction

Specialization of the GUIInteraction interface which adds features specific for Web GUIs.

Author:
Volker Bergmann

Method Summary
 void addCustomHttpHeaderCommand(String key, String value)
          Tells the Selenium server to add the specified key and value as a custom outgoing request header.
 NodeList evalXPath(String xpath)
          Evaluates arbitrary XPath and outputs its result as NodeList object.
 NodeList evalXPath(XPathLocator locator)
          Does the same like evalXPath(String) does.
 String evalXPathAsString(String xpath)
          Evaluates arbitrary XPath and outputs its result as String.
 void open()
          Opens the main URL of the Application Unter Test (configuration property: url.of.aut) in a new browser window and waits until the page is fully loaded.
 void refresh()
          Refreshes the page of the currently selected window and waits until the page is fully loaded.
 void switchToIFrame(GUIElementLocator iframeLocator)
          Switches to the given iframe element of the current web page in the current window, or switches back to default content.
 void windowFocus()
          Gives focus to the currently selected window.
 void windowMaximize()
          Maximizes the currently selected window.
 
Methods inherited from interface org.aludratest.service.gui.GUIInteraction
assignFileResource, changeCheckbox, click, closeOtherWindows, closeWindows, deselectCheckbox, doubleClick, focus, functionalError, getInputFieldSelectedLabel, getInputFieldValue, getText, getText, keyPress, selectCheckbox, selectDropDownEntry, selectRadiobutton, selectWindow, type, waitForWindowToBeClosed, wrongPageFlow
 
Methods inherited from interface org.aludratest.service.Action
createAttachments, createDebugAttachments, setSystemConnector
 

Method Detail

open

void open()
Opens the main URL of the Application Unter Test (configuration property: url.of.aut) in a new browser window and waits until the page is fully loaded. This method has to be called before most methods of the check(), perform() and verify() objects can be used.


refresh

void refresh()
Refreshes the page of the currently selected window and waits until the page is fully loaded.


windowMaximize

void windowMaximize()
Maximizes the currently selected window.


windowFocus

void windowFocus()
Gives focus to the currently selected window.


addCustomHttpHeaderCommand

void addCustomHttpHeaderCommand(String key,
                                String value)
Tells the Selenium server to add the specified key and value as a custom outgoing request header. This only works if the browser is configured to use the built in Selenium proxy.

Parameters:
key - the header name
value - the header value

switchToIFrame

void switchToIFrame(GUIElementLocator iframeLocator)
Switches to the given iframe element of the current web page in the current window, or switches back to default content.

Parameters:
iframeLocator - Locator which uniquely identifies the inner frame to switch to. Use null to switch back to default content.

evalXPath

NodeList evalXPath(XPathLocator locator)
Does the same like evalXPath(String) does.

Parameters:
locator - whose XPath expression will be taken and evaluated
Returns:
NodeList object containing XPath evaluation result

evalXPath

NodeList evalXPath(String xpath)
Evaluates arbitrary XPath and outputs its result as NodeList object.

Parameters:
xpath - XPath expression to be executed
Returns:
NodeList object containing XPath evaluation result

evalXPathAsString

String evalXPathAsString(String xpath)
Evaluates arbitrary XPath and outputs its result as String.

Parameters:
xpath - XPath expression to be executed
Returns:
String containing XPath evaluation result


Copyright © 2015 aludratest.org. All rights reserved.