|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.selenium.DefaultSelenium com.oracle.qa.selenium.ExtendedSelenium oracle.apps.fnd.applcore.test.selenium.ApplcoreSelenium
public class ApplcoreSelenium
Field Summary | |
---|---|
static long |
INTERVAL
|
protected static long |
TIMEOUT
|
Fields inherited from class com.thoughtworks.selenium.DefaultSelenium |
---|
commandProcessor |
Fields inherited from interface com.oracle.qa.selenium.Selenium |
---|
DEFAULT_TIMEOUT, PAGE_LOAD_TIMEOUT |
Constructor Summary | |
---|---|
ApplcoreSelenium(java.lang.String seleniumServerHost,
int seleniumServerPort,
java.lang.String browser,
java.lang.String baseUrl)
Constructor defers construction to parent. |
Method Summary | |
---|---|
void |
captureScreenshot(java.lang.String filename)
Capture a screen shot to the specified file. |
void |
clickAndWait(java.lang.String locator)
Click on a link, button, checkbox, or radio button, and then wait for the page refresh. |
void |
clickAndWaitFor(java.lang.String clickLocator,
java.lang.String waitLocator)
This method is deprecated. |
void |
clickAndWaitForDisappear(java.lang.String clickLocator,
java.lang.String waitLocator)
Click on a link, button, checkbox, or radio button, and then wait for the page element disappears. |
void |
clickAndWaitForHide(java.lang.String clickLocator,
java.lang.String waitLocator)
Click on a link, button, checkbox, or radio button, and then wait for the page element hides. |
void |
clickAndWaitForPresent(java.lang.String clickLocator,
java.lang.String waitLocator)
Click on a link, button, checkbox, or radio button, and then wait for another page element present. |
void |
clickAndWaitForText(java.lang.String clickLocator,
java.lang.String waitText)
Click on a link, button, checkbox, or radio button, and then wait for another text to be present present. |
void |
clickAndWaitForVisible(java.lang.String clickLocator,
java.lang.String waitLocator)
Click on a link, button, checkbox, or radio button, and then wait for the page element become visible. |
void |
clickLink(java.lang.String lnk)
Click on a link element which contains text matching the specified pattern. |
void |
clickLinkAndWait(java.lang.String lnk)
Click on a link element and wait for the page refresh. |
void |
clickLinkAndWaitFor(java.lang.String lnk,
java.lang.String waitLocator)
Click on a link element and wait for another page element present. |
void |
clickLinkAndWaitForText(java.lang.String lnk,
java.lang.String waitText)
Click on a link element and wait for another text to be present. |
void |
clickTableCell(java.lang.String cellLocator,
java.lang.String txt)
Click on a table cell with the specified text. |
void |
collapseTreeTable(java.lang.String node)
Collapse a parent node in a tree table. |
void |
expandTreeTable(java.lang.String node)
Expand a parent node in a tree table. |
java.lang.String |
findTableCellAddrByTxt(java.lang.String cellLocator,
java.lang.String txt)
Find a table cell locator according to its text in a table. |
int |
findTableRowByTexts(java.lang.String cellLocator,
java.lang.String[] rowTxts)
Find the first row in the table, containing texts in the rowTxt array. |
java.lang.String |
getScreenshotDir()
For cases where directory for screenshot need to be changed |
int |
getTableColCount(java.lang.String tblLocator)
Get the column number of a non-rowHeader table. |
java.lang.String |
getTableLocatorByCell(java.lang.String cellLocator)
Get a table locator according to its cell locator, which can be recorded using selenium-IDE or firebug. |
int |
getTableRowCount(java.lang.String tblLocator)
Get the row number of a non-rowHeader table. |
boolean |
isElementRequired(java.lang.String locator)
Check whether a ui element is required. |
boolean |
isElementRequiredWithLabel(java.lang.String labelTxt)
Check whether a ui element with label, labelTxt, is required. |
boolean |
isElementVisible(java.lang.String locator)
Check whether a UI element is visible. |
boolean |
isTableCellPresent(java.lang.String cellLocator,
java.lang.String txt)
Verify whether a cell with the specified text exists in a table. |
boolean |
isTableRowPresent(java.lang.String cellLocator,
java.lang.String[] rowTxts)
Check whether a row exists in the table, containing texts in the rowTxt array. |
void |
loadMenu(java.lang.String menuName)
Click the lazy-loaded menu and have its menu items fetched. |
void |
selectAndWait(java.lang.String locator,
java.lang.String option)
select some drop down value and wait for the page refresh. |
void |
setApplcoreTimeOut(long period)
Change the default timeout. |
void |
setScreenshotPath(java.lang.String dir)
Set the directory used to save captured screen shots. |
void |
typeAndWait(java.lang.String locator,
java.lang.String val)
Type some value in input field and wait for the page refresh. |
void |
waitForElementDisappear(java.lang.String elocator)
Wait until a specified element disappears or timeout. |
void |
waitForElementHide(java.lang.String locator)
Wait until a specified element hides or timeout. |
void |
waitForElementVisible(java.lang.String locator)
Wait until a specified element is visible or timeout. |
void |
waitForServer()
Wait until server and client complete data exchange or timeout. |
void |
waitForTextDisappear(java.lang.String txt)
Wait until a specified text disappears in the page or timeout. |
void |
waitForTextPresent(java.lang.String txt)
Wait until a specified text shown in the page or timeout. |
void |
waitForWindowDisappear(java.lang.String title)
Wait until the window with the specified title disappear or timeout. |
void |
waitForWindowPresent(java.lang.String title)
Wait until a secondary window with the specified title to apppear or timeout. |
Methods inherited from class com.oracle.qa.selenium.ExtendedSelenium |
---|
callRichComponentFunction, callRichComponentFunctionChain, ctrlClick, dragAndDropUsingAWTRobot, getAllRichDialogIds, getCurrentUrl, getElementCenter, getElementCenterBiDi, getElementCode, getElementCoordinate, getElementPositionAndSize, getHTMLCode, getRichComponentProperty, getScrolledTo, getSeleniumBrowserLog, getWindowCoord, isBrowserMaximized, maxWindow, mouseClick, mouseClick, mouseOver, rightClick, selectAdfDialog, selectRichDialog, shiftClick, waitForElementPresent, waitForPageToLoad, waitForRichDialog, waitForRichDialogLaunch, waitForRichDialogReturn, waitForRichPageToLoad, waitForRichPopupHidden, waitForRichPopupVisible, waitForServer |
Methods inherited from class com.thoughtworks.selenium.DefaultSelenium |
---|
addCustomRequestHeader, addLocationStrategy, addScript, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, captureEntirePageScreenshot, captureEntirePageScreenshotToString, captureNetworkTraffic, captureScreenshotToString, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, deleteAllVisibleCookies, deleteCookie, deselectPopUp, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, dragdrop, fireEvent, focus, getAlert, getAllButtons, getAllFields, getAllLinks, getAllWindowIds, getAllWindowNames, getAllWindowTitles, getAttribute, getAttributeFromAllWindows, getBodyText, getConfirmation, getCookie, getCookieByName, getCursorPosition, getElementHeight, getElementIndex, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getExpression, getHtmlSource, getLocation, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getTable, getText, getTitle, getValue, getWhetherThisFrameMatchFrameExpression, getWhetherThisWindowMatchWindowExpression, getXpathCount, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDownNative, keyPress, keyPressNative, keyUp, keyUpNative, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseDownRight, mouseDownRightAt, mouseMove, mouseMoveAt, mouseOut, mouseUp, mouseUpAt, mouseUpRight, mouseUpRightAt, open, openWindow, refresh, removeAllSelections, removeScript, removeSelection, retrieveLastRemoteControlLogs, rollup, runScript, select, selectFrame, selectPopUp, selectWindow, setBrowserLogLevel, setContext, setCursorPosition, setExtensionJs, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, showContextualBanner, showContextualBanner, shutDownSeleniumServer, start, start, start, stop, submit, type, typeKeys, uncheck, useXpathLibrary, waitForCondition, waitForFrameToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.thoughtworks.selenium.Selenium |
---|
addCustomRequestHeader, addLocationStrategy, addScript, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, captureEntirePageScreenshot, captureEntirePageScreenshotToString, captureNetworkTraffic, captureScreenshotToString, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, deleteAllVisibleCookies, deleteCookie, deselectPopUp, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, dragdrop, fireEvent, focus, getAlert, getAllButtons, getAllFields, getAllLinks, getAllWindowIds, getAllWindowNames, getAllWindowTitles, getAttribute, getAttributeFromAllWindows, getBodyText, getConfirmation, getCookie, getCookieByName, getCursorPosition, getElementHeight, getElementIndex, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getExpression, getHtmlSource, getLocation, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getTable, getText, getTitle, getValue, getWhetherThisFrameMatchFrameExpression, getWhetherThisWindowMatchWindowExpression, getXpathCount, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDownNative, keyPress, keyPressNative, keyUp, keyUpNative, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseDownRight, mouseDownRightAt, mouseMove, mouseMoveAt, mouseOut, mouseUp, mouseUpAt, mouseUpRight, mouseUpRightAt, open, openWindow, refresh, removeAllSelections, removeScript, removeSelection, retrieveLastRemoteControlLogs, rollup, runScript, select, selectFrame, selectPopUp, selectWindow, setBrowserLogLevel, setContext, setCursorPosition, setExtensionJs, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, showContextualBanner, showContextualBanner, shutDownSeleniumServer, start, start, start, stop, submit, type, typeKeys, uncheck, useXpathLibrary, waitForCondition, waitForFrameToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximize |
Field Detail |
---|
protected static long TIMEOUT
public static final long INTERVAL
Constructor Detail |
---|
public ApplcoreSelenium(java.lang.String seleniumServerHost, int seleniumServerPort, java.lang.String browser, java.lang.String baseUrl)
seleniumServerHost
- the host name on which the Selenium Server residesseleniumServerPort
- the port on which the Selenium Server is listeningbrowser
- the command string used to launch the browser, e.g. "*firefox",
"*iexplore" or "c:\\program files\\internet explorer\\iexplore.exe"baseUrl
- the starting URL including just a domain name. We'll start the browser
pointing at the Selenium resources on this URL, e.g.
"http://www.google.com" would send the browser to
"http://www.google.com/selenium-server/SeleneseRunner.html"Method Detail |
---|
public void setApplcoreTimeOut(long period)
period
- the new timeout for wait functionspublic void waitForServer()
public void clickAndWait(java.lang.String locator)
locator
- an element locatorpublic void typeAndWait(java.lang.String locator, java.lang.String val)
locator
- an element locatorval
- as Valuepublic void selectAndWait(java.lang.String locator, java.lang.String option)
locator
- an element locatoroption
- as Value for optionpublic void clickAndWaitFor(java.lang.String clickLocator, java.lang.String waitLocator)
clickLocator
- a clickable page element locator, such as link, button, checkbox, or radio button.waitLocator
- a page element locator.public void clickAndWaitForText(java.lang.String clickLocator, java.lang.String waitText)
clickLocator
- a clickable page element locator, such as link, button, checkbox, or radio button.waitText
- a page text to be verified.public void clickLink(java.lang.String lnk)
lnk
- the link text pattern.public void clickLinkAndWait(java.lang.String lnk)
lnk
- the link text pattern.public void clickLinkAndWaitFor(java.lang.String lnk, java.lang.String waitLocator)
lnk
- the link text pattern.waitLocator
- a page element locator.public void clickLinkAndWaitForText(java.lang.String lnk, java.lang.String waitText)
lnk
- the link text pattern.waitText
- a page text to be waited forpublic int getTableRowCount(java.lang.String tblLocator)
tblLocator
- a table locator.
public int getTableColCount(java.lang.String tblLocator)
tblLocator
- a table locator.
public java.lang.String getTableLocatorByCell(java.lang.String cellLocator)
cellLocator
- a table cell locator.
public java.lang.String findTableCellAddrByTxt(java.lang.String cellLocator, java.lang.String txt)
cellLocator
- a table cell locator.txt
- text of the wanted table cell.public boolean isTableCellPresent(java.lang.String cellLocator, java.lang.String txt)
cellLocator
- a table cell locator.txt
- text of the wanted table cell.public void clickTableCell(java.lang.String cellLocator, java.lang.String txt)
cellLocator
- a table cell locatortxt
- text of the wanted table cellpublic int findTableRowByTexts(java.lang.String cellLocator, java.lang.String[] rowTxts)
cellLocator
- the locator of a cell in the tablerowTxts
- array of texts contained in the row cells, which can identify
a row in the table
public boolean isTableRowPresent(java.lang.String cellLocator, java.lang.String[] rowTxts)
cellLocator
- the locator of a cell in the tablerowTxts
- array of texts contained in the row cells, which can identify
a row in the table
public void expandTreeTable(java.lang.String node)
node
- the text appears in the node table cell.public void collapseTreeTable(java.lang.String node)
node
- the text appears in the node table cell.public void waitForElementDisappear(java.lang.String elocator)
elocator
- an element locatorpublic void waitForElementVisible(java.lang.String locator)
locator
- an element locator.public void waitForElementHide(java.lang.String locator)
locator
- an element locator.public void waitForTextPresent(java.lang.String txt)
txt
- the specified text.public void waitForTextDisappear(java.lang.String txt)
txt
- the specified text.public void waitForWindowPresent(java.lang.String title)
title
- the specified title for a secondary window.public void waitForWindowDisappear(java.lang.String title)
title
- the specified title for a window.public void setScreenshotPath(java.lang.String dir)
dir
- a directorypublic void captureScreenshot(java.lang.String filename)
captureScreenshot
in interface com.thoughtworks.selenium.Selenium
captureScreenshot
in class com.thoughtworks.selenium.DefaultSelenium
filename
- the absolute path to the file to be written, e.g. "c:\blah\screenshot.png"public void loadMenu(java.lang.String menuName)
menuName
- the locator of the menu element, usually a linkpublic boolean isElementRequired(java.lang.String locator)
locator
- a ui element locator.public boolean isElementRequiredWithLabel(java.lang.String labelTxt)
labelTxt
- the label of a ui element locator.public void clickAndWaitForPresent(java.lang.String clickLocator, java.lang.String waitLocator)
clickLocator
- a clickable page element locator, such as link, button, checkbox, or radio button.waitLocator
- a page element locator.public void clickAndWaitForDisappear(java.lang.String clickLocator, java.lang.String waitLocator)
clickLocator
- a clickable page element locator, such as link, button, checkbox, or radio button.waitLocator
- a page element locator.public void clickAndWaitForVisible(java.lang.String clickLocator, java.lang.String waitLocator)
clickLocator
- a clickable page element locator, such as link, button, checkbox, or radio button.waitLocator
- a page element locator.public void clickAndWaitForHide(java.lang.String clickLocator, java.lang.String waitLocator)
clickLocator
- a clickable page element locator, such as link, button, checkbox, or radio button.waitLocator
- a page element locator.public boolean isElementVisible(java.lang.String locator)
public java.lang.String getScreenshotDir()
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |