public class BrowserTestObject extends TopLevelTestObject implements IBrowserObject
TestObject
class.ignoreTheObjectState, ref
INPUTCHARS_METHOD, INPUTKEYS_METHOD
Constructor and Description |
---|
BrowserTestObject(SpyMappedTestObject mappedObject)
For internal use.
|
BrowserTestObject(SpyMappedTestObject mappedObject,
TestObject anchor)
For internal use.
|
BrowserTestObject(SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags)
For internal use.
|
BrowserTestObject(TestObjectReference ref)
For internal use.
|
Modifier and Type | Method and Description |
---|---|
boolean |
back()
Navigates the browser back to the previous page
|
void |
deleteCookies()
Deletes all of the browser's cookies.
|
void |
deleteCookies(java.lang.String cookie,
boolean recursive)
Deletes browser cookies specified by the path in
cookie |
boolean |
forward()
Navigates the browser forward to the next page
|
boolean |
home()
Navigates the browser to the default home page.
|
void |
inputChars(java.lang.String keys)
Sends the supplied characters to the associated window.
|
void |
inputKeys(java.lang.String keys)
Sends the supplied characters to the associated window.
|
boolean |
loadUrl(java.lang.String url)
Loads the given URL into the browser.
|
boolean |
loadUrl(java.lang.String url,
java.lang.String target)
Loads the given URL into the browser.
|
activate, clickDisabled, close, isIconified, maximize, minimize, move, resize, restore
contextHelp
canTakeVP, click, click, click, click, clickRadio, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getChildAtPoint, getClippedScreenRectangle, getImage, getImage, getIWindow, getRole, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, getVisibleArea, hasFocus, hover, hover, hover, hover, invokeProxyWithGuiDelay, invokeProxyWithGuiDelay, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint
exists, exists, exists, find, find, findAndInvoke, findAndInvokeProxy, getProperty, getTestDataTypes, invoke, invokeProxy, unregister, waitForExistence
compare, compare, compareAndLog, compareAndLog, equals, find, findAndInvoke, getActualData, getChildren, getDescribedObject, getDescribedObjects, getDescriptiveName, getDomain, getField, getIndexer, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMapProperties, getMethods, getNameInScript, getNonValueProperties, getObjectClassName, getObjectCustomClassName, getObjectReference, getOwnedObjects, getOwner, getParent, getProcess, getProperties, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTopMappableParent, getTopParent, hashCode, invoke, invoke, invoke, invokeProxy, invokeProxy, isLoggedDuringUnregister, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, performTest, setIndexer, setIndexer, setLoggedDuringUnregister, setMapProperties, setProperty, toString, updateTestData, waitForExistence
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contextHelp
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getChildAtPoint, getClippedScreenRectangle, getScreenPoint, getScreenPoint, getScreenRectangle, hasFocus, hover, hover, hover, hover, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint
public BrowserTestObject(SpyMappedTestObject mappedObject)
public BrowserTestObject(SpyMappedTestObject mappedObject, TestObject anchor)
public BrowserTestObject(SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
public BrowserTestObject(TestObjectReference ref)
public boolean back()
IBrowserObject
back
in interface IBrowserObject
true
when the navigation starts;
false
when there is no previous page.public boolean forward()
IBrowserObject
forward
in interface IBrowserObject
true
when the navigation starts;
false
when there is no forward page.public boolean home()
IBrowserObject
home
in interface IBrowserObject
true
when the navigation starts;
false
when there is no home page defined for this browser.public boolean loadUrl(java.lang.String url, java.lang.String target)
IBrowserObject
loadUrl
in interface IBrowserObject
url
- string path of the page to load into browsertarget
- string name of the HTML frame where page is to be loadedtrue
when the page load starts;
false
if the page does not load.public boolean loadUrl(java.lang.String url)
IBrowserObject
loadUrl
in interface IBrowserObject
url
- string path of the page to load into browsertrue
when the page load starts;
false
if the page does not load.public void deleteCookies()
IBrowserObject
deleteCookies
in interface IBrowserObject
public void deleteCookies(java.lang.String cookie, boolean recursive)
IBrowserObject
cookie
deleteCookies
in interface IBrowserObject
cookie
- The full path of the cookie. This is usually the domain followed by the directory
path in which the intended document resides, for example, http://a.com.recursive
- If set, all cookies that are children of the path specified in cookie
are deleted, for example, a.com/b/.public void inputChars(java.lang.String keys)
TopLevelTestObject
inputChars
in interface ITopWindow
inputChars
in class TopLevelTestObject
keys
- The characters to be processed by this windowpublic void inputKeys(java.lang.String keys)
TopLevelTestObject
ITopWindow.inputKeys
.inputKeys
in interface ITopWindow
inputKeys
in class TopLevelTestObject
keys
- the characters to be processed by this window