Package com.hp.lft.sdk.web
Interface Frame
- All Superinterfaces:
- LocationInfoProvider,- SupportsNativeObject,- TestObject,- TestObjectDescriber,- VisibleProvider,- WaitUntilVisibleProvider,- WebTestObject,- WebTestObjectDescriber
A Web frame object that represents both the frame element in a frame set and an embedded frame that uses the frame element.
 The frame is a separate HTML document that is part of the test object hierarchy.
- 
Method SummaryModifier and TypeMethodDescriptiongetText()Returns the inner text of the body element.getURL()Returns the URL of the frame.runJavaScript(String scriptToRun) Runs the given JavaScript code in the frame's context and returns the result.<TResult> TResultrunJavaScript(String scriptToRun, Class<TResult> returnType) Runs the given JavaScript text in the frame's context and returns the result cast to returnType.voidsync()Waits for the frame's state to be idle.Methods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProviderwaitUntilVisible, waitUntilVisibleMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectgetAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisibleMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriberdescribe, describe
- 
Method Details- 
getURLReturns the URL of the frame.- Returns:
- the URL of the frame.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getTextReturns the inner text of the body element.- Returns:
- the inner text of the body element.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
runJavaScript<TResult> TResult runJavaScript(String scriptToRun, Class<TResult> returnType) throws GeneralLeanFtException Runs the given JavaScript text in the frame's context and returns the result cast to returnType.- Type Parameters:
- TResult- the generic type of return type.
- Parameters:
- scriptToRun- the JavaScript code to run.
- returnType- the type of return value.
- Returns:
- the numeric result of running the JavaScript code.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
runJavaScriptRuns the given JavaScript code in the frame's context and returns the result.- Parameters:
- scriptToRun- the JavaScript code to run.
- Returns:
- the result of running the JavaScript code as a string.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
syncWaits for the frame's state to be idle.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-