public class SeleniumBrowser extends Browser
Constructor and Description |
---|
SeleniumBrowser() |
SeleniumBrowser(java.lang.String browserName) |
SeleniumBrowser(java.lang.String browserName,
java.lang.String host,
int port) |
SeleniumBrowser(java.lang.String browserPath,
java.lang.String browserProcessName,
java.lang.String browserOption,
java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
Browser |
baseWindow() |
java.lang.String |
execute(java.lang.String step)
execute allows calling batch files, shell scripts or regular commands from Sahi script.
|
java.lang.String |
fetch(ElementStub el)
Fetches the string value of an element stub by performing an eval on the browser
|
java.lang.String |
fetch(java.lang.String expression)
Fetches the value of any DOM property
|
java.lang.String |
getPopupName() |
Browser |
popup(java.lang.String popupName)
Represents a popup window.
|
applet, checked, collect, collectAttributes, createApplet, focusWindow, getElementPositionLeft, getElementPositionTop, getUserAgent, isFirefox, openWindow, resizeWindow, setSessionId, spandiv, takePageScreenShot, takePageScreenShot, takeScreenShot, takeScreenShot, takeSnapShot, text, value, verifyLayout
abbr, accessor, activateApplication, activateApplication, activateSiriWithVoiceRecognitionText, activeElement, addHttpHeader, addMock, addMock, addResponseSubstitutionRule, addToSession, alert, any, area, areEqual, areEqual, areHorizontallyAligned, areHorizontallyAligned, areHorizontallyAligned, areHorizontallyAligned, areHorizontallyAligned, areHorizontallyAligned, areHorizontallyAligned, areHorizontallyAligned, areNotEqual, areNotEqual, areVerticallyAligned, areVerticallyAligned, areVerticallyAligned, areVerticallyAligned, areVerticallyAligned, areVerticallyAligned, areVerticallyAligned, areVerticallyAligned, article, aside, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreHorizontallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertAreVerticallyAligned, assertCentered, assertCentered, assertCentered, assertCentered, assertCentered, assertChecked, assertChecked, assertContainsText, assertContainsText, assertExists, assertExists, assertFitsHeight, assertFitsHeight, assertFitsHeight, assertFitsHeight, assertFitsHeight, assertFitsHeight, assertFitsHeight, assertFitsHeight, assertFitsHeight, assertFitsHeight, assertFitsHeight, assertFitsWidth, assertFitsWidth, assertFitsWidth, assertFitsWidth, assertFitsWidth, assertFitsWidth, assertFitsWidth, assertFitsWidth, assertFitsWidth, assertFitsWidth, assertFitsWidth, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreHorizontallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotAreVerticallyAligned, assertNotCentered, assertNotCentered, assertNotCentered, assertNotCentered, assertNotCentered, assertNotChecked, assertNotChecked, assertNotContainsText, assertNotContainsText, assertNotExists, assertNotExists, assertNotFitsHeight, assertNotFitsHeight, assertNotFitsHeight, assertNotFitsHeight, assertNotFitsHeight, assertNotFitsHeight, assertNotFitsHeight, assertNotFitsHeight, assertNotFitsHeight, assertNotFitsHeight, assertNotFitsHeight, assertNotFitsWidth, assertNotFitsWidth, assertNotFitsWidth, assertNotFitsWidth, assertNotFitsWidth, assertNotFitsWidth, assertNotFitsWidth, assertNotFitsWidth, assertNotFitsWidth, assertNotFitsWidth, assertNotFitsWidth, assertNotOptions, assertNotOptions, assertNotPosition, assertNotPosition, assertNotSelectedText, assertNotSelectedText, assertNotSelectionText, assertNotSelectionText, assertNotText, assertNotText, assertNotValue, assertNotValue, assertNotVisible, assertNotVisible, assertNotVisible, assertNotVisible, assertNotVisiblyInside, assertNotVisiblyInside, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOn, assertNotVisiblyOutside, assertNotVisiblyOutside, assertOptions, assertOptions, assertPosition, assertPosition, assertSelectedText, assertSelectedText, assertSelectionText, assertSelectionText, assertText, assertText, assertValue, assertValue, assertVisible, assertVisible, assertVisible, assertVisible, assertVisiblyInside, assertVisiblyInside, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOn, assertVisiblyOutside, assertVisiblyOutside, blockquote, blur, bold, button, byClassName, byId, byPassWaitMechanism, bySeleniumLocator, byText, byXPath, canvas, cell, check, checkbox, choose, choose, choose, choose, choose, choose, choose, choose, clearLastAlert, clearLastConfirm, clearLastDownloadedFileName, clearLastPrompt, clearLastSystemDialog, clearPrintCalled, click, click, clickNative, clickNative, clickNative, clickNative, clickNativeXY, clickNativeXY, clickNativeXY, clickNativeXY, closeBrowser, closeSAPConnection, closeWindow, closeWindow, code, collapse, collapse, collectAttributes, collectAttributes, compareImages, compareImages, connectDevice, connectDevice, contains, containsHTML, containsText, continueOnError, cookie, cookie, coreAllayKeys, coreAnimation, coreAnimationGroup, coreAnimationKeyframe, coreAnimationProp, coreCollapse, coreDragDrop, coreDrawerPanel, coreDropdown, coreDropdownBase, coreDropdownMenu, coreField, coreHeaderPanel, coreIcon, coreIconButton, coreIconSet, coreIconSetSvg, coreImage, coreItem, coreLabel, coreList, coreLocalstorage, coreMenu, coreMenuButton, coreOverlay, corePages, coreRange, coreScaffold, coreScrollHeaderPanel, coreScrollThreshold, coreSelection, coreSelector, coreSplitter, coreStyle, coreSubmenu, coreTooltip, coreTransitionPages, count, count, crawlWebsite, createCookie, createNewSAPSession, datebox, datetimebox, datetimelocalbox, dDesc, deleteCookie, details, disableKeepAlive, disableScroll, div, dList, doubleClick, doubleClick, doubleClickNative, doubleClickNative, drag, dragDrop, dragDrop, dragDropNative, dragDropNativeXY, dragDropXY, dragDropXY, dragNative, drop, dropFile, dropNative, dTerm, emailbox, embed, emphasis, enableHorizontalScroll, enableHorizontalScroll, enableHorizontalScroll, enableKeepAlive, enableVerticalScroll, enableVerticalScroll, enableVerticalScroll, encrypt, execute, execute, exists, expand, expand, expectAlert, expectAlert, expectConfirm, expectConfirm, expectPrint, expectPrint, expectPrompt, expectPrompt, expectSystemDialog, expectSystemDialog, expectSystemDialog, expectSystemDialog, fieldset, figcaption, figure, file, fitsHeight, fitsHeight, fitsHeight, fitsHeight, fitsHeight, fitsHeight, fitsHeight, fitsWidth, fitsWidth, fitsWidth, fitsWidth, fitsWidth, fitsWidth, fitsWidth, focus, font, footer, frame, getApplicationState, getAttribute, getCellIndex, getIconPath, getLayout, getLayout, getLayout, getOptions, getOptions, getOrientation, getRecentWindow, getScreenSize, getSelectedText, getSelectionText, getSelectionText, getSessionId, getSessionId, getStatusInformation, getTableContents, getTableContents, getTableContents, getTableContents, getTableContents, getTableContents, getTableContents, getTableContents, getText, getValue, getWindows, getWindows, header, heading1, heading2, heading3, heading4, heading5, heading6, hidden, highlight, hr, htmlFormSubmit, iframe, image, imageSubmitButton, interactWithApp, isCentered, isCentered, isCentered, isChecked, isChrome, isDevice, isEdge, isEdgeNew, isEnabled, isFalse, isFalse, isFF, isFF3, isFF4, isHorizontalScrollEnabled, isHTMLUnit, isIE, isIE10, isIE9, isOpera, isPhantomJS, isSafari, isScreenOn, isScrollEnabled, isSelected, isTrue, isTrue, isVerticalScrollEnabled, isVisible, isVisible, isVisible, isVisiblyInside, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOn, isVisiblyOutside, italic, keyDown, keyDown, keyDown, keyDown, keyDown, keyDown, keyPress, keyPress, keyPress, keyPress, keyPress, keyPress, keyUp, keyUp, keyUp, keyUp, keyUp, keyUp, label, lastAlert, lastAlerts, lastConfirm, lastConfirms, lastDownloadedFileName, lastPrompt, lastPrompts, lastSystemDialog, lastSystemDialogs, launchJavaApplication, launchJavaWSApplication, launchNewBrowser, launchNewBrowser, launchNewBrowser, launchNewMobileBrowser, launchNewMobileBrowser, launchNewMobileBrowser2, launchNewMobileBrowser2, launchNewMobileBrowser2, launchSAPGUI, link, list, listItem, lock, lock, lockWindow, lockWindow, longClick, longClick, main, map, mapDomainToIP, mapDomainToIP, mark, maximizeWindow, maximizeWindow, minimizeWindow, minimizeWindow, mockImage, mockImage, monthbox, mouseDown, mouseDown, mouseDown, mouseOver, mouseOver, mouseOverNative, mouseOverNative, mouseUp, mouseUp, mouseUp, nav, navigateTo, navigateTo, numberbox, object, openSAPConnection, openWindow, openWindow, openWindow, openWindow, option, oSVersion, paperActionDialog, paperAutogrowTextarea, paperButton, paperCharCounter, paperCheckbox, paperDialog, paperDialogBase, paperDropdown, paperDropdownMenu, paperFab, paperIconButton, paperInput, paperInputDecorator, paperItem, paperMenuButton, paperProgress, paperRadioButton, paperRadioGroup, paperRipple, paperShadow, paperSlider, paperSpinner, paperTab, paperTabs, paperToast, paperToggleButton, paragraph, parentCell, parentNode, parentRow, parentTable, password, pinchClose, pinchClose, pinchOpen, pinchOpen, position, position, positionInImage, positionInImage, positionInImage, positionNative, preformatted, pressBack, pressDelete, pressEnter, pressHome, pressMenu, pressRecentApps, pressSearch, pressVolumeDown, pressVolumeUp, printCalled, radio, rangebox, readExcelFile, readExcelFile, readExcelFile, readURL, removeFocus, removeHttpHeader, removeMock, removeResponseSubstitutionRule, reset, resetHttpHeader, resizeWindow, restoreWindow, restoreWindow, rightClick, rightClick, rightClickNative, rightClickNative, rotate, row, rte, rteHTML, rteText, rteWrite, saveDownloadedAs, scrollBottomMost, scrollBottomMost, scrollDown, scrollDown, scrollDown, scrollLeft, scrollLeft, scrollLeft, scrollLeftMost, scrollLeftMost, scrollRight, scrollRight, scrollRight, scrollRightMost, scrollRightMost, scrollTopMost, scrollTopMost, scrollUp, scrollUp, scrollUp, searchbox, section, select, selectBrowser, selectBrowser, selectColumns, selectDevice, selectDevice, selectDomain, selectDomain, selectInput, selectInputItem, selectRange, selectRows, selectTextRange, selectTextRange, sendHTMLResponseAfterFileDownload, setAccessorIgnoreCase, setAutoDismissKeyboard, setCell, setFile, setFile, setFile, setFile, setFile2, setFile2, setFile2, setFile2, setFile2, setFile2, setFile2, setFile2, setFile3, setFile3, setFile3, setFile3, setFlexReadyCondition, setHttpHeader, setLanguage, setLanguage, setOrientation, setPassword, setPingDelayAfterStep, setSpeed, setStrictVisibilityCheck, setStrictVisibilityCheck, setStrictVisibilityCheck, setSwipeDeadzonePercentage, setValue, setValue, setWaitTimes, setXHRReadyStatesToWaitFor, setXHRReadyStatesToWaitFor, span, startLookInside, startWebContext, stopLookInside, stopOnError, stopWebContext, strong, style, submit, summary, svg_circle, svg_ellipse, svg_line, svg_path, svg_polygon, svg_polyline, svg_rect, svg_text, svg_tspan, swipe, swipeDown, swipeDown, swipeDown, swipeDown, swipeLeft, swipeLeft, swipeLeft, swipeLeft, swipeRight, swipeRight, swipeRight, swipeRight, swipeUp, swipeUp, swipeUp, swipeUp, table, tableHeader, takePageScreenShot, takePageScreenShot, takePageScreenShot, takePageScreenShot, takePageScreenShot, takeScreenShot, takeScreenShot, takeScreenShot, takeScreenShots, takeScreenShots, takeScreenShots, tap, tap, tapWithNumberOfTapsNumberOfTouches, telephonebox, textarea, textbox, time, timebox, title, touch, touch, touchCancel, touchEnd, touchMove, touchMove, touchStart, twoFingerTap, type, typeCell, typeKeyCodeNative, typeNative, uncheck, unlock, unlockWindow, urlbox, userAgent, userDataDir, userDataDir, userDataPath, userDataPath, video, wakeUp, weekbox, windowAction, windowAction, windowAction, windowExists, windowExists, xy
close, createElementStub, domain, execCommand, execCommandBytes, executeSahi, executeStep, executeStep, executeStep2, getApplicationType, getCommonDomain, getProxyURL, getRecordedSteps, getSteps, getTimeBetweenSteps, isPopup, kill, libEval, open, openBrowser, restartPlayback, selectWindow, sessionId, setApplicationType, setBrowserJS, setCommonDomain, setIsConditionForWait, setTranslationMode, startRecording, stopRecording, throwExceptionOnAssertionFailure, waitFor, waitFor, waitFor
public SeleniumBrowser()
public SeleniumBrowser(java.lang.String browserName)
public SeleniumBrowser(java.lang.String browserName, java.lang.String host, int port)
public SeleniumBrowser(java.lang.String browserPath, java.lang.String browserProcessName, java.lang.String browserOption, java.lang.String host, int port)
public java.lang.String execute(java.lang.String step) throws ExecutionException
BrowserAutoGen
execute
in class BrowserAutoGen
step
- Command to be executed. Normally this will be a command that can be run on the system's commandlineExecutionException
public java.lang.String fetch(java.lang.String expression) throws ExecutionException
BrowserBase
fetch
in class BrowserBase
ExecutionException
public java.lang.String fetch(ElementStub el) throws ExecutionException
BrowserBase
fetch
in class BrowserBase
ExecutionException
public Browser popup(java.lang.String popupName)
BrowserBase
popup
in class BrowserBase
public Browser baseWindow()
baseWindow
in class BrowserBase
public java.lang.String getPopupName()
getPopupName
in class BrowserBase