PSEK-Fitnesse-Fixtures  2.3.x (JDK11)
nl.psek.fitnesse.fixtures.selenium.SlimWebDriver Class Reference

Deprecated: This class uses Selenium 3 to automate webpages, relies on properties files for selenium settings. More...

Classes

class  WebdriverCommand
 The type Webdriver command. More...
 

Public Member Functions

 SlimWebDriver (String configuration)
 Instantiates a new Slim web driver. More...
 
void browserBack ()
 Presses the browser back button. More...
 
void browserForward ()
 Presses the browser back button. More...
 
boolean checkIfCookieExists (String name)
 Checks if a cookie exists with the specified name. More...
 
boolean checkTimesElementPresent (String locator, int timesPresent)
 Checks that a specific element is x times present on the page. More...
 
boolean checkWebsiteTitle (String title)
 Checks if the title of the website matches the title supplied. More...
 
void circumventSelenium3Limitations ()
 
void click (String locator)
 Clicks on an element in the page. More...
 
void clickAndWait (String locator)
 Clicks on an element in the page to trigger a page load. More...
 
void clickIfOtherElementNotPresent (String elementToClick, String elementThatShoudBeAbsent)
 Click if other element not present. More...
 
void clickIfOtherElementPresent (String elementToClick, String elementToWaitFor)
 Click if other element present. More...
 
void clickUntilElementPresent (String elementToClick, String elementToWaitFor, long commandTimeout, int maxAttempts)
 Mag nog mooier. More...
 
void clickUpToTimes (String locator, String numberOfTimesToExecute)
 Clicks on an element in the page for a certain number of times. More...
 
void clickUsingAction (String locator)
 Click using action. More...
 
void clickUsingJavascript (String locator)
 Clicks on an element in the page that is not visible i.e. More...
 
void closeWebsite ()
 Quit the browser. More...
 
void closeWindow ()
 Close the current window. More...
 
void contextClick (String locator)
 Richt click / context click action. More...
 
int countTimesElementPresent (String locator)
 Counts the number of times an element is present on the page. More...
 
void defaultCommandTimeout (int seconds)
 Register the default timeout that will apply to all commands. More...
 
void defaultPageLoadTimeout (int seconds)
 Register the default timeout that will apply to page loading actions. More...
 
void deleteAllCookies ()
 Deletes all cookies. More...
 
void deleteCookieByName (String name)
 Delete the cookie with the specified name. More...
 
void deselect (String locator, String value)
 Deselects an option in a select box using the specified value. More...
 
boolean deselectAllOptions (String locator)
 Deselects all options in a select box. More...
 
void deselectUsingLabel (String locator, String label)
 Deselects an option in a select box using the specified label. More...
 
void disableTextbox (String locator)
 Disable textbox. More...
 
void doubleClick (String locator)
 Doubleclicks on an element in the page. More...
 
String downloadFile (String locator, String filename) throws Exception
 Download a file from a locator using the selenium session (cookies, login state, etc..) and save it in the java TEMP folder using the specified name. More...
 
String downloadImage (String locator, String filename) throws Exception
 Download an image from a locator using the selenium session (cookies, login state, etc..) and save it in the java TEMP folder using the specified name. More...
 
String downloadUrl (String url, String filename)
 Download a file from a URL using the selenium session (cookies, login state, etc..) and save it in the java TEMP folder using the specified name. More...
 
void enableTextbox (String locator)
 Enable textbox. More...
 
void executeJavaScript (String script)
 Executes the specified javascript in the browser. More...
 
String executeJavaScriptWithReturnValue (String script)
 Execute java script with return value string. More...
 
WebElement findElement (String locator)
 Find element web element. More...
 
List< WebElement > findElements (String locator)
 Find elements list. More...
 
WebElement findOptionInSelectByLabel (Select select, String label)
 Find option in select by label web element. More...
 
WebElement findOptionInSelectByValue (Select select, String value)
 Find option in select by value web element. More...
 
Select findSelect (String locator)
 Find select select. More...
 
String getAllCookies ()
 Gets all cookies for the current website and returns them as a string. More...
 
String getAttribute (String locator, String attribute)
 Returns the value of an attribute at a specific locator. More...
 
String getCssValue (String locator, String style)
 Returns the CSS value at a specific locator. More...
 
String getCurrentUrl ()
 Gets current url. More...
 
String getOptionSelected (String locator)
 Returns the selected label of the select box. More...
 
String getPageDebugInformation ()
 Gets page debug information. More...
 
String getSupportedXPathVersion ()
 Gets supported x path version. More...
 
String getTitle ()
 Gets title. More...
 
String getWindowHandle ()
 Returns the current windowhandle. More...
 
String getWorkingDir ()
 Gets working dir. More...
 
WebDriver giveWebDriver ()
 Returns the currect webdriver for use in other fixture. More...
 
boolean isElementEnabled (String locator)
 Is element enabled boolean. More...
 
boolean isElementVisible (String locator)
 Checks if the element is visible. More...
 
Properties loadPropertiesFromFiles (String configuration)
 Loads the specified properties into memory, supports multiple properties files if they are comma-separated. More...
 
void logPageSource ()
 Log page source. More...
 
void logProperties (Properties properties)
 Log properties. More...
 
void logThis (String input)
 Log this. More...
 
void makeChecked (String locator)
 Checks a checkbox (or radiobutton), if it was checked then nothing will be done. More...
 
void makeNotChecked (String locator)
 Unchecks a checkbox (or radiobutton), if it was checked then nothing will be done. More...
 
void maximizeWindow ()
 Maximizes the window. More...
 
void moveWindow (int horizontal, int vertical)
 Moves the window. More...
 
void openWebsite (String url)
 Open a new window with the given url More...
 
void pause (String milliseconds)
 Pause is not allowed anymore. More...
 
void refreshWebsite ()
 Refreshes the current web site. More...
 
void resetLoopCommands ()
 Reset loop commands. More...
 
void resizeWindow (int pixelsWidth, int pixelsHeight)
 Resizes the window to the specified dimensions. More...
 
void restoreSelenium3Limitations ()
 
void runLoop (int numberOfTimes, int timeBetweenLoopsInMillis)
 Run loop. More...
 
void runLoopCommandIfElementIsPresent (String locator)
 Run loop command if element is present. More...
 
boolean runLoopUntilElementPresent (String locator, int maxTimesToLoop, int timeBetweenLoopsInMillis)
 Run loop until element present boolean. More...
 
boolean runLoopUntilJavascriptReturnValue (String javascript, String expectedExpressionReturnValue, int maxTimesToLoop, int timeBetweenLoopsInMillis)
 Run loop until javascript return value boolean. More...
 
void scrollDownTo (String locator)
 Scrolls down to the element using the locator. More...
 
void scrollTo (String locator)
 Scroll to. More...
 
void scrollUpTo (String locator)
 Scrolls up to the element using the locator. More...
 
boolean select (String locator, String value)
 Selects an option in a select box using the specified value. More...
 
void selectAllOptions (String locator)
 Selects all options in a select. More...
 
void selectAndWait (String locator, String value)
 Selects an option in a select box using the specified value to trigger a page load. More...
 
boolean selectUsingLabel (String locator, String label)
 Selects an option in a select box using the specified label. More...
 
void selectUsingLabel (String locator, String label, String keywordAllow)
 Select using label. More...
 
void selectUsingLabelIfElementPresent (String locator, String label)
 Selects the specified value if the element is present. More...
 
void setCookieForThisDomain (String name, String value)
 Sets a cookie for the curent domain and path with specified name and value. More...
 
void setDownloadPath (String path)
 Sets download path. More...
 
void setDownloadProxy (String proxyHost, int proxyport)
 Sets download proxy. More...
 
void setDownloadProxyBasicCredentials (String username, String password)
 Sets download proxy basic credentials. More...
 
void setDownloadProxyNtlmCredentials (String username, String password, String workstation, String domain)
 Sets download proxy ntlm credentials. More...
 
void setLoopCommand (String command)
 Sets loop command. More...
 
void setLoopCommand (String command, String target)
 Sets loop command. More...
 
void setLoopCommand (String command, String target, String value)
 Sets loop command. More...
 
void setLoopCommand (String command, String target, String value, String param)
 Sets loop command. More...
 
void setWindowPosition (int x, int y)
 Sets the window position. More...
 
void sleep (long millis)
 Performs a pause action using the Actions class. More...
 
void switchToFrameUsingIndex (int index)
 Switch to frame using index. More...
 
void switchToFrameUsingLocator (String locator)
 Pushes a new frame as the current driver. More...
 
void switchToStart ()
 Go back to the initial state. More...
 
void switchToUnfocussedWindow ()
 Switches to the opened window that is not the curent window for webdriver. More...
 
void switchToWindow (String nameOrHandle)
 Pushes a new window as the current driver. More...
 
void switchToWindowByTitle (String pattern)
 Pushes a new window as the current driver using the window title or a regexp as input Will retrieve all window handles and switch between them. More...
 
void tab (String locator)
 Tab out of the element found using the locator. More...
 
String takeScreenshot () throws IOException
 Takes a screenshot using Selenium.TakesScreenshot. More...
 
void type (String locator, String value)
 Writes the specified value to the element found using the locator. More...
 
void typeIfElementPresent (String locator, String value)
 Types the specified value if the element is present. More...
 
void typeKeyCodeUsingActions (Keys keycode)
 Type key code using actions. More...
 
void typeKeyCodeWithoutClear (String locator, Keys keycode)
 Type key code without clear. More...
 
void typeUsingJavascript (String locator, String value)
 Types a value in an element on the page using Javascript. More...
 
void typeWithClear (String locator, String value)
 Writes the specified value to the element found using the locator. More...
 
void typeWithoutClear (String locator, String value)
 Type without clear. More...
 
void uploadFile (final String locator, final String fileName)
 Method to send inut to a INPUT element with TYPE="FILE". More...
 
void uploadFile (final String locator, String fileLocation, String fileName)
 Upload file. More...
 
boolean verifyAllOptionsNotSelected (String locator)
 Verifies if all the options in a select box are not selected. More...
 
boolean verifyAllOptionsSelected (String locator)
 Verifies if all the options in a select box are selected. More...
 
Boolean verifyAttributePresent (String locator, String attribute)
 Verify attribute present boolean. More...
 
Boolean verifyAttributeValue (String locator, String attribute, String pattern)
 Verify attribute value boolean. More...
 
boolean verifyElementNotPresent (String locator)
 Check that the element is not present. More...
 
boolean verifyElementPresent (String locator)
 Check that the element is present. More...
 
boolean verifyOptionNotSelected (String locator, String value)
 Verifies if an option in a select box is not selected. More...
 
boolean verifyOptionNotSelectedByLabel (String locator, String label)
 Verifies if an option in a select box is not selected. More...
 
boolean verifyOptionSelected (String locator, String value)
 Verifies if an option in a select box is selected. More...
 
boolean verifyOptionSelectedByLabel (String locator, String label)
 Verifies if an option in a select box is selected. More...
 
boolean verifyPatternPresent (String pattern)
 Verify pattern present boolean. More...
 
Boolean verifyTextContainsString (String locator, String pattern)
 Verifies that a specific String is present in a specific part of the page. More...
 
boolean verifyTextNotPresent (String text)
 Verifies if the given text is not present anywhere in the source of the page. More...
 
boolean verifyTextPresent (String text)
 Verifies if the given text is present anywhere in the source of the page. More...
 
boolean verifyTimesElementPresent (String locator, int timesPresent)
 Verifies that a specific element is x times present on the page. More...
 
boolean verifyValueEmpty (String locator)
 Checks whether a value is empty. More...
 
boolean verifyValueNotEmpty (String locator)
 Checks whether a value is not empty. More...
 
boolean verifyValueOfCookie (String name, String value)
 Verifies the value of a cookie with the specified name using the supplied expected value More...
 
void waitForAlertAndAccept ()
 Wait for an alert dialog and when it appears it will accept it. More...
 
void waitForAlertAndDismiss ()
 Wait for an alert dialog and when it appears it will dismiss it. More...
 
void waitForEditable (String locator)
 Waits for an element to become editable. More...
 
boolean waitForElementNotPresent (String locator)
 Returns true if the element is not present, otherwise Waits for an element to become detached from the dom tree. More...
 
boolean waitForElementPresent (String locator)
 Waits for an element to become present in the dom tree. More...
 
void waitForElementToBeClickable (String locator)
 Wait for element to be clickable. More...
 
void waitForNotEditable (String locator)
 Waits for an element to become not editable. More...
 
boolean waitForNotText (String locator, String text)
 Waits for the specified text to be removed / adjusted. More...
 
void waitForNotVisible (String locator)
 Waits for an element to become invisible (meaning visible and width and height != 0). More...
 
void waitForPageLoad ()
 Deprecated command, should wait for the page to load but is now implicit. More...
 
void waitForPossibleAlertAndAccept ()
 Wait for an alert dialog and when it appears it will accept it. More...
 
void waitForPossibleAlertAndDismiss ()
 Wait for an alert dialog and when it appears it will dismiss it. More...
 
void waitForSeconds (String milliseconds)
 Pause is not allowed anymore. More...
 
boolean waitForText (String locator, String text)
 Waits for the text to become visible in the specified locator. More...
 
boolean waitForTextNotPresent (String text)
 Waits for the text to become absent anywhere on the page. More...
 
boolean waitForTextPresent (String text)
 Waits for the text to become visible anywhere on the page. More...
 
boolean waitForValue (String locator, String value)
 Waits for the text to become absent anywhere on the page. More...
 
boolean waitForValueNotEmpty (String locator)
 Waits for the element to have a value. More...
 
void waitForVisible (String locator)
 Waits for an element to become visible (meaning visible and width and height != 0). More...
 
Getting Data From A Page

The following methods are used to get data from a webpage

String getText (String locator)
 Returns the text that is present in the specified locator. More...
 
String getValue (String locator)
 Returns the value that is present in the specified locator. More...
 
Verifying Data On A Page

The following methods are used to verify data on a webpage

boolean verifyText (String locator, String pattern)
 Verifies if the text at the specified locator is compliant with the given pattern. More...
 
boolean verifyValue (String locator, String pattern)
 Verifies if the text at the specified locator is compliant with the given pattern. More...
 

Static Public Member Functions

static ExpectedCondition< Boolean > elementNotEmpty (final String locator)
 Condition to check if the text is present anywhere on the page. More...
 
static String getValueElement (WebElement element)
 Get the actual value of an element, for checkboxes and radio buttons it will return true or false. More...
 
static void takeScreenshotOnException (boolean TAKESCREENSHOTONEXCEPTION)
 Take screenshot on exception. More...
 
static ExpectedCondition< Boolean > textToBePresent (final String pattern)
 Condition to check if the text is present anywhere on the page. More...
 
static ExpectedCondition< Boolean > valueToBePresentInElement (final String locator, final String value)
 Condition to check if the text is present anywhere on the page. More...
 

Public Attributes

WebDriver driver = null
 The Driver. More...
 

Static Public Attributes

static final String ATTR_TYPE = "type"
 The constant ATTR_TYPE. More...
 
static final String ATTR_VALUE = "value"
 The constant ATTR_VALUE. More...
 
static final String BROWSER_BROWSERSTACK = "browserstack"
 
static final String BROWSER_CHROME = "chrome"
 
static final String BROWSER_EDGE = "edge"
 
static final String BROWSER_FIREFOX = "firefox"
 
static final String BROWSER_HEADLESS = "headless"
 
static final String BROWSER_INTERNET_EXPLORER = "internet explorer"
 
static final String BROWSER_REMOTE = "remote"
 
static final String BROWSER_REMOTE_CHROME = "remote.chrome"
 
static final String BROWSER_SAFARI = "safari"
 
static final String ELEMENT_INPUT = "input"
 The constant ELEMENT_INPUT. More...
 
static final String ELEMENT_TEXTAREA = "textarea"
 The constant ELEMENT_TEXTAREA. More...
 
static FirefoxProfile remoteProfile
 The constant remoteProfile. More...
 
static String SCREENSHOTLOCATION
 The constant SCREENSHOTLOCATION. More...
 
static final String TYPE_CHECKBOX = "checkbox"
 The constant TYPE_CHECKBOX. More...
 
static final String TYPE_RADIO = "radio"
 The constant TYPE_RADIO. More...
 

Protected Member Functions

 SlimWebDriver ()
 Instantiate a new Slim Web Driver without configuration loading. More...
 

Static Package Functions

static By constructLocatorFromString (String locator)
 Construct locator from string by. More...
 

Package Attributes

Keys CtrlOrCmd = Keys.CONTROL
 The Ctrl or cmd. More...
 

Static Package Attributes

static String BROWSER
 The Browser. More...
 
static float DPR = 1
 The Dpr. More...
 
static boolean USEPROPERTYFILESUPPLIEDDPR = false
 The Usepropertyfilesupplieddpr. More...
 
static boolean USEUSERSUPPLIEDDPR = false
 The Useusersupplieddpr. More...
 
static String WEBDRIVERMANAGERPROPERTIESFILE
 The Webdrivermanagerpropertiesfile. More...
 

Private Member Functions

ChromeOptions addChromeOptionsFromProperties (Properties props)
 
Properties buildProperties (String propertiesFromString, String entrySeparator) throws IOException
 
void checkIfSystemisMacOs ()
 
boolean circumventSelenium3Mode ()
 
String getTimeStamp ()
 
URL giveRemoteServerUrl ()
 
WebDriver initBrowserstackDriver (Properties properties) throws MalformedURLException
 
void initChromeDriver () throws RuntimeException
 
void initDriver (String configuration)
 Initialize the correct WebDriver for the browser specified. More...
 
void initFirefoxDriver ()
 
void initRemoteChromeDriver ()
 
void initRemoteDriver ()
 
URL makeUrl (String input)
 Generates a URL object, stops testing if URL is malformed. More...
 
void quitDriverIfRequired ()
 Called before a StopTestException is thrown to quit the current driver. More...
 
void setCmdKeyifMacOs ()
 Will check is the OS name starts with 'mac'. More...
 
void setWebdriverDriverProperties (Properties properties)
 

Static Private Member Functions

static void initProxyForWebdriver (Properties props)
 

Private Attributes

boolean circumventSelenium3 = false
 
Properties properties = null
 
int seconds
 

Static Private Attributes

static final String HEADLESSCHROMEWINDOWSIZE = "1600x1200"
 
static final String LOCATOR_CLASSNAME = "classname="
 
static final String LOCATOR_CSS = "css="
 
static final String LOCATOR_ID = "id="
 
static final String LOCATOR_LINKTEXT = "link="
 
static final String LOCATOR_NAME = "name="
 
static final String LOCATOR_PARTIAlLINKTEXT = "partiallink="
 
static final String LOCATOR_XPATH = "xpath="
 
static final Logger LOG = LoggerFactory.getLogger(SlimWebDriver.class)
 
static ArrayList< WebdriverCommandloopCommands = new ArrayList<>()
 
static final String MAC_OS_NAME = "mac"
 
static String noproxylist
 
static Proxy proxy = null
 
static String proxyurl
 
static final String REGEX_SYNTAX = "regex:"
 
static final String REGEXPI_SYNTAX = "regexpi:"
 
static boolean SYSTEMISMACOS = false
 
static boolean TAKESCREENSHOTONEXCEPTION = false
 

Detailed Description

Deprecated: This class uses Selenium 3 to automate webpages, relies on properties files for selenium settings.

Properties

The selenium.properties file is used to define several settings:

  • browser specification (firefox, chrome, safari, internet explorer, headless or remote)
  • save location of screenshots made with this fixture
  • custom local firefox profile
  • custom local firefox proxy
  • remote browser setting
  • remote webdriver server url
  • custom remote firefox profile

Initialization

Start the fixture by referencing one or more properties files. All property files will be combined to one Java Properties object. This way you could define some general settings (where is the selenium hub) and some project specific settings (which browser to use).

Author
Ronald Mathies
Pascal Smeets

Definition at line 74 of file SlimWebDriver.java.

Constructor & Destructor Documentation

◆ SlimWebDriver() [1/2]

nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.SlimWebDriver ( )
protected

Instantiate a new Slim Web Driver without configuration loading.

Definition at line 171 of file SlimWebDriver.java.

◆ SlimWebDriver() [2/2]

nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.SlimWebDriver ( String  configuration)

Instantiates a new Slim web driver.

Parameters
configurationthe configuration, this is a reference to one or more selenium.properties files. If multiple files are used they must be specified in a comma-separated list

Definition at line 184 of file SlimWebDriver.java.

Member Function Documentation

◆ addChromeOptionsFromProperties()

ChromeOptions nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.addChromeOptionsFromProperties ( Properties  props)
private

Definition at line 2745 of file SlimWebDriver.java.

◆ browserBack()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.browserBack ( )

Presses the browser back button.

Definition at line 747 of file SlimWebDriver.java.

◆ browserForward()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.browserForward ( )

Presses the browser back button.

Definition at line 754 of file SlimWebDriver.java.

◆ buildProperties()

Properties nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.buildProperties ( String  propertiesFromString,
String  entrySeparator 
) throws IOException
private

Definition at line 2772 of file SlimWebDriver.java.

◆ checkIfCookieExists()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.checkIfCookieExists ( String  name)

Checks if a cookie exists with the specified name.

Parameters
namethe name of the cookie.
Returns
the boolean
Exceptions
ConditionalExceptionWhen the cookie with the specified name does not exist.

Definition at line 477 of file SlimWebDriver.java.

◆ checkIfSystemisMacOs()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.checkIfSystemisMacOs ( )
private

Definition at line 2853 of file SlimWebDriver.java.

◆ checkTimesElementPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.checkTimesElementPresent ( String  locator,
int  timesPresent 
)

Checks that a specific element is x times present on the page.

If the element is not x times present a ConditionalExceptionType is thrown.

Parameters
locatorthe locator
timesPresentthe times present
Returns
true or a ConditionalExceptionType with the number of times the element was found

Definition at line 1478 of file SlimWebDriver.java.

◆ checkWebsiteTitle()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.checkWebsiteTitle ( String  title)

Checks if the title of the website matches the title supplied.

Parameters
titlethe title of the website.
Returns
true if it matches.
Exceptions
ConditionalExceptionwhen the element can not be found or the value does not match.

Definition at line 765 of file SlimWebDriver.java.

◆ circumventSelenium3Limitations()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.circumventSelenium3Limitations ( )

Definition at line 3093 of file SlimWebDriver.java.

◆ circumventSelenium3Mode()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.circumventSelenium3Mode ( )
private

Definition at line 3103 of file SlimWebDriver.java.

◆ click()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.click ( String  locator)

Clicks on an element in the page.

Parameters
locatorthe locator to use to find the element.

Definition at line 793 of file SlimWebDriver.java.

◆ clickAndWait()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.clickAndWait ( String  locator)

Clicks on an element in the page to trigger a page load.

Parameters
locatorthe locator to use to find the element.
Exceptions
ConditionalExceptionwhen the element can not be found.

Definition at line 865 of file SlimWebDriver.java.

◆ clickIfOtherElementNotPresent()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.clickIfOtherElementNotPresent ( String  elementToClick,
String  elementThatShoudBeAbsent 
)

Click if other element not present.

Parameters
elementToClickthe element to click
elementThatShoudBeAbsentthe element that shoud be absent

Definition at line 1418 of file SlimWebDriver.java.

◆ clickIfOtherElementPresent()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.clickIfOtherElementPresent ( String  elementToClick,
String  elementToWaitFor 
)

Click if other element present.

Parameters
elementToClickthe element to click
elementToWaitForthe element to wait for

Definition at line 1398 of file SlimWebDriver.java.

◆ clickUntilElementPresent()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.clickUntilElementPresent ( String  elementToClick,
String  elementToWaitFor,
long  commandTimeout,
int  maxAttempts 
)

Mag nog mooier.

Clicks on an element until a different element becomes present

Parameters
elementToClickthe element to click
elementToWaitForthe element to wait for
commandTimeout- alternative command timeout for this command, needs to be set
maxAttemptsthe max attempts

Definition at line 1373 of file SlimWebDriver.java.

◆ clickUpToTimes()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.clickUpToTimes ( String  locator,
String  numberOfTimesToExecute 
)

Clicks on an element in the page for a certain number of times.

Parameters
locatorthe locator to use to find the element.
numberOfTimesToExecutethe number of times to click the element.
Exceptions
ConditionalExceptionwhen the element can not be found. Ronald: DONE

Definition at line 876 of file SlimWebDriver.java.

◆ clickUsingAction()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.clickUsingAction ( String  locator)

Click using action.

Parameters
locatorthe locator

Definition at line 815 of file SlimWebDriver.java.

◆ clickUsingJavascript()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.clickUsingJavascript ( String  locator)

Clicks on an element in the page that is not visible i.e.

hidden

Parameters
locatorthe locator

Definition at line 826 of file SlimWebDriver.java.

◆ closeWebsite()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.closeWebsite ( )

Quit the browser.

Definition at line 606 of file SlimWebDriver.java.

◆ closeWindow()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.closeWindow ( )

Close the current window.

Definition at line 613 of file SlimWebDriver.java.

◆ constructLocatorFromString()

static By nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.constructLocatorFromString ( String  locator)
staticpackage

Construct locator from string by.

Parameters
locatorthe locator
Returns
the by

Definition at line 297 of file SlimWebDriver.java.

◆ contextClick()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.contextClick ( String  locator)

Richt click / context click action.

Parameters
locatorthe locator
Exceptions
ConditionalExceptionwhen the element can not be found

Definition at line 839 of file SlimWebDriver.java.

◆ countTimesElementPresent()

int nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.countTimesElementPresent ( String  locator)

Counts the number of times an element is present on the page.

Parameters
locatorthe locator
Returns
int with the times the element is present

Definition at line 1456 of file SlimWebDriver.java.

◆ defaultCommandTimeout()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.defaultCommandTimeout ( int  seconds)

Register the default timeout that will apply to all commands.

Parameters
secondsthe amount of seconds to wait until the test fails.
Exceptions
ConditionalExceptionwhen the specified seconds is a negative number.

Definition at line 419 of file SlimWebDriver.java.

◆ defaultPageLoadTimeout()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.defaultPageLoadTimeout ( int  seconds)

Register the default timeout that will apply to page loading actions.

Parameters
secondsthe amount of seconds to wait until the page loads
Exceptions
ConditionalExceptionwhen the specified seconds is a negative number.

Definition at line 435 of file SlimWebDriver.java.

◆ deleteAllCookies()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.deleteAllCookies ( )

Deletes all cookies.

Definition at line 455 of file SlimWebDriver.java.

◆ deleteCookieByName()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.deleteCookieByName ( String  name)

Delete the cookie with the specified name.

Parameters
namethe name of the cookie.

Definition at line 465 of file SlimWebDriver.java.

◆ deselect()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.deselect ( String  locator,
String  value 
)

Deselects an option in a select box using the specified value.

Parameters
locatorthe locator to use to find the element.
valuethe value of the option within the select box.
Exceptions
ConditionalExceptionwhen the element could not be found, is not an SELECT element, there is no option with the specified value or when the option was not selected in the first place.

Definition at line 2002 of file SlimWebDriver.java.

◆ deselectAllOptions()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.deselectAllOptions ( String  locator)

Deselects all options in a select box.

Parameters
locatorthe locator to use to find the element.
Returns
true if successful
Exceptions
ConditionalExceptionwhen the element could not be found.

Definition at line 2036 of file SlimWebDriver.java.

◆ deselectUsingLabel()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.deselectUsingLabel ( String  locator,
String  label 
)

Deselects an option in a select box using the specified label.

Parameters
locatorthe locator to use to find the element.
labelthe label of the option within the select box.
Exceptions
ConditionalExceptionwhen the element could not be found, is not an SELECT element, there is no option with the specified label or when the option was not selected in the first place.

Definition at line 1953 of file SlimWebDriver.java.

◆ disableTextbox()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.disableTextbox ( String  locator)

Disable textbox.

Parameters
locatorthe locator

Definition at line 2363 of file SlimWebDriver.java.

◆ doubleClick()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.doubleClick ( String  locator)

Doubleclicks on an element in the page.

Parameters
locatorthe locator to use to find the element
Exceptions
ConditionalExceptionwhen the element can not be found Pascal: DONE

Definition at line 852 of file SlimWebDriver.java.

◆ downloadFile()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.downloadFile ( String  locator,
String  filename 
) throws Exception

Download a file from a locator using the selenium session (cookies, login state, etc..) and save it in the java TEMP folder using the specified name.

This method resolves the 'href' attribute of the locator and downloads the file

Parameters
locatorthe locator
filenamethe filename
Returns
full path to the file
Exceptions
Exceptionthe exception

Definition at line 2955 of file SlimWebDriver.java.

◆ downloadImage()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.downloadImage ( String  locator,
String  filename 
) throws Exception

Download an image from a locator using the selenium session (cookies, login state, etc..) and save it in the java TEMP folder using the specified name.

This method resolves the 'src' attribute of the locator and downloads the image

Parameters
locatorthe locator
filenamethe filename
Returns
full path to the image
Exceptions
Exceptionthe exception

Definition at line 2983 of file SlimWebDriver.java.

◆ downloadUrl()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.downloadUrl ( String  url,
String  filename 
)

Download a file from a URL using the selenium session (cookies, login state, etc..) and save it in the java TEMP folder using the specified name.

Parameters
url
filename
Returns
full path to the file

Definition at line 2968 of file SlimWebDriver.java.

◆ elementNotEmpty()

static ExpectedCondition< Boolean > nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.elementNotEmpty ( final String  locator)
static

Condition to check if the text is present anywhere on the page.

Parameters
locatorthe locator to use to find the element.
Returns
flag indicating if it did or did not become visible.

Definition at line 233 of file SlimWebDriver.java.

◆ enableTextbox()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.enableTextbox ( String  locator)

Enable textbox.

Parameters
locatorthe locator

Definition at line 2352 of file SlimWebDriver.java.

◆ executeJavaScript()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.executeJavaScript ( String  script)

Executes the specified javascript in the browser.

Parameters
scriptthe javascript to execute.
Exceptions
ConditionalExceptionwhen the javascript failed to execute.

Definition at line 1665 of file SlimWebDriver.java.

◆ executeJavaScriptWithReturnValue()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.executeJavaScriptWithReturnValue ( String  script)

Execute java script with return value string.

Parameters
scriptthe script
Returns
the string

Definition at line 1681 of file SlimWebDriver.java.

◆ findElement()

WebElement nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.findElement ( String  locator)

Find element web element.

Parameters
locatorthe locator
Returns
the web element

Definition at line 2425 of file SlimWebDriver.java.

◆ findElements()

List< WebElement > nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.findElements ( String  locator)

Find elements list.

Parameters
locatorthe locator
Returns
the list

Definition at line 2439 of file SlimWebDriver.java.

◆ findOptionInSelectByLabel()

WebElement nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.findOptionInSelectByLabel ( Select  select,
String  label 
)

Find option in select by label web element.

Parameters
selectthe select
labelthe label
Returns
the web element

Definition at line 2394 of file SlimWebDriver.java.

◆ findOptionInSelectByValue()

WebElement nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.findOptionInSelectByValue ( Select  select,
String  value 
)

Find option in select by value web element.

Parameters
selectthe select
valuethe value
Returns
the web element

Definition at line 2410 of file SlimWebDriver.java.

◆ findSelect()

Select nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.findSelect ( String  locator)

Find select select.

Parameters
locatorthe locator
Returns
the select

Definition at line 2377 of file SlimWebDriver.java.

◆ getAllCookies()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getAllCookies ( )

Gets all cookies for the current website and returns them as a string.

Returns
all cookies

Definition at line 448 of file SlimWebDriver.java.

◆ getAttribute()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getAttribute ( String  locator,
String  attribute 
)

Returns the value of an attribute at a specific locator.

Parameters
locatorthe locator to find the element on the page.
attributethe name of the attribute.
Returns
the attribute

Definition at line 1194 of file SlimWebDriver.java.

◆ getCssValue()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getCssValue ( String  locator,
String  style 
)

Returns the CSS value at a specific locator.

Parameters
locatorthe locator to find the element on the page.
stylethe css style to check, e.g. color, background-color, font-size.
Returns
the css value

Definition at line 1206 of file SlimWebDriver.java.

◆ getCurrentUrl()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getCurrentUrl ( )

Gets current url.

Returns
the current url

Definition at line 546 of file SlimWebDriver.java.

◆ getOptionSelected()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getOptionSelected ( String  locator)

Returns the selected label of the select box.

Parameters
locatorthe locator to use to find the element.
Returns
the option selected

Definition at line 2096 of file SlimWebDriver.java.

◆ getPageDebugInformation()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getPageDebugInformation ( )

Gets page debug information.

Returns
the page debug information

Definition at line 382 of file SlimWebDriver.java.

◆ getSupportedXPathVersion()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getSupportedXPathVersion ( )

Gets supported x path version.

Returns
the supported x path version

Definition at line 2886 of file SlimWebDriver.java.

◆ getText()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getText ( String  locator)

Returns the text that is present in the specified locator.

Parameters
locatorthe locator to use to find the element.
Returns
the text

Definition at line 1126 of file SlimWebDriver.java.

◆ getTimeStamp()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getTimeStamp ( )
private

Definition at line 2989 of file SlimWebDriver.java.

◆ getTitle()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getTitle ( )

Gets title.

Returns
the title

Definition at line 555 of file SlimWebDriver.java.

◆ getValue()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getValue ( String  locator)

Returns the value that is present in the specified locator.

Parameters
locatorthe locator to find the element
Returns
the value

Definition at line 1138 of file SlimWebDriver.java.

◆ getValueElement()

static String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getValueElement ( WebElement  element)
static

Get the actual value of an element, for checkboxes and radio buttons it will return true or false.

Parameters
elementthe element
Returns
the value or null.

Definition at line 326 of file SlimWebDriver.java.

◆ getWindowHandle()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getWindowHandle ( )

Returns the current windowhandle.

Returns
the window handle

Definition at line 727 of file SlimWebDriver.java.

◆ getWorkingDir()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.getWorkingDir ( )

Gets working dir.

Returns
the working dir

Definition at line 2475 of file SlimWebDriver.java.

◆ giveRemoteServerUrl()

URL nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.giveRemoteServerUrl ( )
private

Definition at line 2765 of file SlimWebDriver.java.

◆ giveWebDriver()

WebDriver nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.giveWebDriver ( )

Returns the currect webdriver for use in other fixture.

Returns

Definition at line 196 of file SlimWebDriver.java.

◆ initBrowserstackDriver()

WebDriver nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.initBrowserstackDriver ( Properties  properties) throws MalformedURLException
private

Definition at line 2716 of file SlimWebDriver.java.

◆ initChromeDriver()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.initChromeDriver ( ) throws RuntimeException
private

Definition at line 2619 of file SlimWebDriver.java.

◆ initDriver()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.initDriver ( String  configuration)
private

Initialize the correct WebDriver for the browser specified.

Parameters
configurationthe configuration to use.

Definition at line 2571 of file SlimWebDriver.java.

◆ initFirefoxDriver()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.initFirefoxDriver ( )
private

Definition at line 2689 of file SlimWebDriver.java.

◆ initProxyForWebdriver()

static void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.initProxyForWebdriver ( Properties  props)
staticprivate

Definition at line 346 of file SlimWebDriver.java.

◆ initRemoteChromeDriver()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.initRemoteChromeDriver ( )
private

Definition at line 2645 of file SlimWebDriver.java.

◆ initRemoteDriver()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.initRemoteDriver ( )
private

Definition at line 2667 of file SlimWebDriver.java.

◆ isElementEnabled()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.isElementEnabled ( String  locator)

Is element enabled boolean.

Parameters
locatorthe locator
Returns
the boolean

Definition at line 1558 of file SlimWebDriver.java.

◆ isElementVisible()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.isElementVisible ( String  locator)

Checks if the element is visible.

Parameters
locatorthe locator
Returns
the boolean
Exceptions
ConditionalExceptionwhen the element was not visible.

Definition at line 1544 of file SlimWebDriver.java.

◆ loadPropertiesFromFiles()

Properties nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.loadPropertiesFromFiles ( String  configuration)

Loads the specified properties into memory, supports multiple properties files if they are comma-separated.

Parameters
configurationsingle or multiple properties files, if multiple then comma-separated
Returns
properties object

Definition at line 2508 of file SlimWebDriver.java.

◆ logPageSource()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.logPageSource ( )

Log page source.

Definition at line 361 of file SlimWebDriver.java.

◆ logProperties()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.logProperties ( Properties  properties)

Log properties.

Parameters
propertiesthe properties

Definition at line 2555 of file SlimWebDriver.java.

◆ logThis()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.logThis ( String  input)

Log this.

Parameters
inputthe input

Definition at line 372 of file SlimWebDriver.java.

◆ makeChecked()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.makeChecked ( String  locator)

Checks a checkbox (or radiobutton), if it was checked then nothing will be done.

Parameters
locatorthe locator to use to find the element.

Definition at line 903 of file SlimWebDriver.java.

◆ makeNotChecked()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.makeNotChecked ( String  locator)

Unchecks a checkbox (or radiobutton), if it was checked then nothing will be done.

Parameters
locatorthe locator to use to find the element.

Definition at line 926 of file SlimWebDriver.java.

◆ makeUrl()

URL nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.makeUrl ( String  input)
private

Generates a URL object, stops testing if URL is malformed.

Parameters
inputstring
Returns
URL
Exceptions
StopTestCommandExceptionif URL is malformed

Definition at line 2871 of file SlimWebDriver.java.

◆ maximizeWindow()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.maximizeWindow ( )

Maximizes the window.

Definition at line 562 of file SlimWebDriver.java.

◆ moveWindow()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.moveWindow ( int  horizontal,
int  vertical 
)

Moves the window.

Parameters
horizontalshift in pixels
verticalshift in pixels

Definition at line 583 of file SlimWebDriver.java.

◆ openWebsite()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.openWebsite ( String  url)

Open a new window with the given url

Parameters
urlthe url to call upon opening the new window.
Exceptions
ConditionalExceptionwhen the specified URL is not valid.

Definition at line 531 of file SlimWebDriver.java.

◆ pause()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.pause ( String  milliseconds)

Pause is not allowed anymore.

Parameters
millisecondsthe milliseconds

Definition at line 777 of file SlimWebDriver.java.

◆ quitDriverIfRequired()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.quitDriverIfRequired ( )
private

Called before a StopTestException is thrown to quit the current driver.

Definition at line 2838 of file SlimWebDriver.java.

◆ refreshWebsite()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.refreshWebsite ( )

Refreshes the current web site.

Definition at line 740 of file SlimWebDriver.java.

◆ resetLoopCommands()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.resetLoopCommands ( )

Reset loop commands.

Definition at line 2262 of file SlimWebDriver.java.

◆ resizeWindow()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.resizeWindow ( int  pixelsWidth,
int  pixelsHeight 
)

Resizes the window to the specified dimensions.

Parameters
pixelsWidththe pixels width
pixelsHeightthe pixels height

Definition at line 572 of file SlimWebDriver.java.

◆ restoreSelenium3Limitations()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.restoreSelenium3Limitations ( )

Definition at line 3098 of file SlimWebDriver.java.

◆ runLoop()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.runLoop ( int  numberOfTimes,
int  timeBetweenLoopsInMillis 
)

Run loop.

Parameters
numberOfTimesthe number of times
timeBetweenLoopsInMillisthe time between loops in millis

Definition at line 2272 of file SlimWebDriver.java.

◆ runLoopCommandIfElementIsPresent()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.runLoopCommandIfElementIsPresent ( String  locator)

Run loop command if element is present.

Parameters
locatorthe locator

Definition at line 2290 of file SlimWebDriver.java.

◆ runLoopUntilElementPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.runLoopUntilElementPresent ( String  locator,
int  maxTimesToLoop,
int  timeBetweenLoopsInMillis 
)

Run loop until element present boolean.

Parameters
locatorthe locator
maxTimesToLoopthe max times to loop
timeBetweenLoopsInMillisthe time between loops in millis
Returns
the boolean

Definition at line 2306 of file SlimWebDriver.java.

◆ runLoopUntilJavascriptReturnValue()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.runLoopUntilJavascriptReturnValue ( String  javascript,
String  expectedExpressionReturnValue,
int  maxTimesToLoop,
int  timeBetweenLoopsInMillis 
)

Run loop until javascript return value boolean.

Parameters
javascriptthe javascript
expectedExpressionReturnValuethe expected expression return value
maxTimesToLoopthe max times to loop
timeBetweenLoopsInMillisthe time between loops in millis
Returns
the boolean

Definition at line 2331 of file SlimWebDriver.java.

◆ scrollDownTo()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.scrollDownTo ( String  locator)

Scrolls down to the element using the locator.

Parameters
locatorthe locator to use to find the element.

Definition at line 1007 of file SlimWebDriver.java.

◆ scrollTo()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.scrollTo ( String  locator)

Scroll to.

Parameters
locatorthe locator

Definition at line 1018 of file SlimWebDriver.java.

◆ scrollUpTo()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.scrollUpTo ( String  locator)

Scrolls up to the element using the locator.

Parameters
locatorthe locator to use to find the element.

Definition at line 996 of file SlimWebDriver.java.

◆ select()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.select ( String  locator,
String  value 
)

Selects an option in a select box using the specified value.

Parameters
locatorthe locator to use to find the element.
valuethe value of the option within the select box.
Returns
true if successful
Exceptions
ConditionalExceptionwhen the element could not be found, is not an SELECT element, there is no option with the specified value.

Definition at line 1972 of file SlimWebDriver.java.

◆ selectAllOptions()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.selectAllOptions ( String  locator)

Selects all options in a select.

Parameters
locatorthe locator to use to find the element.
Exceptions
ConditionalExceptionwhen the element could not be found or when the element is not an SELECT element.

Definition at line 2019 of file SlimWebDriver.java.

◆ selectAndWait()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.selectAndWait ( String  locator,
String  value 
)

Selects an option in a select box using the specified value to trigger a page load.

Parameters
locatorthe locator to use to find the element.
valuethe value of the option within the select box.
Exceptions
ConditionalExceptionwhen the element could not be found, is not an SELECT element, there is no option with the specified value.

Definition at line 1991 of file SlimWebDriver.java.

◆ selectUsingLabel() [1/2]

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.selectUsingLabel ( String  locator,
String  label 
)

Selects an option in a select box using the specified label.

Parameters
locatorthe locator to use to find the element.
labelthe label of the option within the select box.
Returns
true if successful
Exceptions
ConditionalExceptionwhen the element could not be found, is not an SELECT element, there is no option with the specified label.

Definition at line 1887 of file SlimWebDriver.java.

◆ selectUsingLabel() [2/2]

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.selectUsingLabel ( String  locator,
String  label,
String  keywordAllow 
)

Select using label.

Parameters
locatorthe locator
labelthe label
keywordAllowthe keyword allow

Definition at line 1907 of file SlimWebDriver.java.

◆ selectUsingLabelIfElementPresent()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.selectUsingLabelIfElementPresent ( String  locator,
String  label 
)

Selects the specified value if the element is present.

Can not be used as a test condition - returntype is void. Method will catch all exceptions Use in the test preparation steps.

Parameters
locatorthe locator
labelthe label

Definition at line 1931 of file SlimWebDriver.java.

◆ setCmdKeyifMacOs()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setCmdKeyifMacOs ( )
private

Will check is the OS name starts with 'mac'.

If this is the case the COMMAND key will be used instead of the CONTROL key if 'CtrlOrCmd' is used.

Definition at line 2847 of file SlimWebDriver.java.

◆ setCookieForThisDomain()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setCookieForThisDomain ( String  name,
String  value 
)

Sets a cookie for the curent domain and path with specified name and value.

Parameters
namethe name of the cookie.
valuethe value of the cookie.

Definition at line 519 of file SlimWebDriver.java.

◆ setDownloadPath()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setDownloadPath ( String  path)

Sets download path.

Parameters
paththe path

Definition at line 2905 of file SlimWebDriver.java.

◆ setDownloadProxy()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setDownloadProxy ( String  proxyHost,
int  proxyport 
)

Sets download proxy.

Parameters
proxyHostthe proxy host
proxyportthe proxyport

Definition at line 2915 of file SlimWebDriver.java.

◆ setDownloadProxyBasicCredentials()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setDownloadProxyBasicCredentials ( String  username,
String  password 
)

Sets download proxy basic credentials.

Parameters
usernamethe username
passwordthe password

Definition at line 2926 of file SlimWebDriver.java.

◆ setDownloadProxyNtlmCredentials()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setDownloadProxyNtlmCredentials ( String  username,
String  password,
String  workstation,
String  domain 
)

Sets download proxy ntlm credentials.

Parameters
usernamethe username
passwordthe password
workstationthe workstation
domainthe domain

Definition at line 2939 of file SlimWebDriver.java.

◆ setLoopCommand() [1/4]

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setLoopCommand ( String  command)

Sets loop command.

Parameters
commandthe command

Definition at line 2218 of file SlimWebDriver.java.

◆ setLoopCommand() [2/4]

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setLoopCommand ( String  command,
String  target 
)

Sets loop command.

Parameters
commandthe command
targetthe target

Definition at line 2228 of file SlimWebDriver.java.

◆ setLoopCommand() [3/4]

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setLoopCommand ( String  command,
String  target,
String  value 
)

Sets loop command.

Parameters
commandthe command
targetthe target
valuethe value

Definition at line 2239 of file SlimWebDriver.java.

◆ setLoopCommand() [4/4]

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setLoopCommand ( String  command,
String  target,
String  value,
String  param 
)

Sets loop command.

Parameters
commandthe command
targetthe target
valuethe value
paramthe param

Definition at line 2251 of file SlimWebDriver.java.

◆ setWebdriverDriverProperties()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setWebdriverDriverProperties ( Properties  properties)
private

Definition at line 2779 of file SlimWebDriver.java.

◆ setWindowPosition()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.setWindowPosition ( int  x,
int  y 
)

Sets the window position.

Parameters
xthe x
ythe y

Definition at line 599 of file SlimWebDriver.java.

◆ sleep()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.sleep ( long  millis)

Performs a pause action using the Actions class.

Parameters
millisthe time to pause in milliseconds meer informatie http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/interactions/Actions.html let op gebruik alleen als het echt nodig is of voor de debug van je fitnesse test.

Definition at line 890 of file SlimWebDriver.java.

◆ switchToFrameUsingIndex()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.switchToFrameUsingIndex ( int  index)

Switch to frame using index.

Parameters
indexthe index

Definition at line 635 of file SlimWebDriver.java.

◆ switchToFrameUsingLocator()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.switchToFrameUsingLocator ( String  locator)

Pushes a new frame as the current driver.

Parameters
locatorthe locator to use to find the web element.

Definition at line 622 of file SlimWebDriver.java.

◆ switchToStart()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.switchToStart ( )

Go back to the initial state.

Definition at line 647 of file SlimWebDriver.java.

◆ switchToUnfocussedWindow()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.switchToUnfocussedWindow ( )

Switches to the opened window that is not the curent window for webdriver.

Definition at line 712 of file SlimWebDriver.java.

◆ switchToWindow()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.switchToWindow ( String  nameOrHandle)

Pushes a new window as the current driver.

Parameters
nameOrHandlethe name or id attribute.

Definition at line 656 of file SlimWebDriver.java.

◆ switchToWindowByTitle()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.switchToWindowByTitle ( String  pattern)

Pushes a new window as the current driver using the window title or a regexp as input Will retrieve all window handles and switch between them.

If the title of the window is found we stop. Otherwise switch back to the original window

Parameters
patternthe expected window title (optionally witg REGEXPI: prefix)

Definition at line 670 of file SlimWebDriver.java.

◆ tab()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.tab ( String  locator)

Tab out of the element found using the locator.

Parameters
locatorthe locator to use to find the element
Exceptions
ConditionalExceptionwhen the element can not be found

Definition at line 986 of file SlimWebDriver.java.

◆ takeScreenshot()

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.takeScreenshot ( ) throws IOException

Takes a screenshot using Selenium.TakesScreenshot.

Returns
the string
Exceptions
IOExceptionthe io exception

Definition at line 2170 of file SlimWebDriver.java.

◆ takeScreenshotOnException()

static void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.takeScreenshotOnException ( boolean  TAKESCREENSHOTONEXCEPTION)
static

Take screenshot on exception.

Parameters
TAKESCREENSHOTONEXCEPTIONthe takescreenshotonexception

Definition at line 287 of file SlimWebDriver.java.

◆ textToBePresent()

static ExpectedCondition< Boolean > nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.textToBePresent ( final String  pattern)
static

Condition to check if the text is present anywhere on the page.

Parameters
patternthe regular expression to search for.
Returns
flag indicating if it did or did not become visible.

Definition at line 206 of file SlimWebDriver.java.

◆ type()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.type ( String  locator,
String  value 
)

Writes the specified value to the element found using the locator.

Will select text in the element first and type over it.

Parameters
locatorthe locator to use to find the element.
valuethe value to write to the element.
Exceptions
ConditionalExceptionwhen the element can not be found or is not an INPUT or TEXTAREA element.

Definition at line 951 of file SlimWebDriver.java.

◆ typeIfElementPresent()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.typeIfElementPresent ( String  locator,
String  value 
)

Types the specified value if the element is present.

Can not be used as a test condition - returntype is void. Method will catch all exceptions Use in the test preparation steps.

Parameters
locatorthe locator
valuethe value

Definition at line 1057 of file SlimWebDriver.java.

◆ typeKeyCodeUsingActions()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.typeKeyCodeUsingActions ( Keys  keycode)

Type key code using actions.

Parameters
keycodethe keycode

Definition at line 1110 of file SlimWebDriver.java.

◆ typeKeyCodeWithoutClear()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.typeKeyCodeWithoutClear ( String  locator,
Keys  keycode 
)

Type key code without clear.

Parameters
locatorthe locator
keycodethe keycode

Definition at line 1094 of file SlimWebDriver.java.

◆ typeUsingJavascript()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.typeUsingJavascript ( String  locator,
String  value 
)

Types a value in an element on the page using Javascript.

Parameters
locatorthe locator
valuethe text to be typed

Definition at line 973 of file SlimWebDriver.java.

◆ typeWithClear()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.typeWithClear ( String  locator,
String  value 
)

Writes the specified value to the element found using the locator.

Parameters
locatorthe locator to use to find the element.
valuethe value to write to the element.
Exceptions
ConditionalExceptionwhen the element can not be found or is not an INPUT or TEXTAREA element.

Definition at line 1039 of file SlimWebDriver.java.

◆ typeWithoutClear()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.typeWithoutClear ( String  locator,
String  value 
)

Type without clear.

Parameters
locatorthe locator
valuethe value

Definition at line 1077 of file SlimWebDriver.java.

◆ uploadFile() [1/2]

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.uploadFile ( final String  locator,
final String  fileName 
)

Method to send inut to a INPUT element with TYPE="FILE".

If a RemoteWebdriver is used the file will be streamed to the selenium node. If a local Webdriver is used this command will type the filename in the input field.

Parameters
locatorthe locator
fileNamethe file name

Definition at line 2460 of file SlimWebDriver.java.

◆ uploadFile() [2/2]

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.uploadFile ( final String  locator,
String  fileLocation,
String  fileName 
)

Upload file.

Parameters
locatorthe locator
fileLocationthe file location
fileNamethe file name

Definition at line 2486 of file SlimWebDriver.java.

◆ valueToBePresentInElement()

static ExpectedCondition< Boolean > nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.valueToBePresentInElement ( final String  locator,
final String  value 
)
static

Condition to check if the text is present anywhere on the page.

Parameters
locatorthe locator to use to find the element.
valuethe value to look for.
Returns
flag indicating if it did or did not become visible.

Definition at line 261 of file SlimWebDriver.java.

◆ verifyAllOptionsNotSelected()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyAllOptionsNotSelected ( String  locator)

Verifies if all the options in a select box are not selected.

Parameters
locatorthe locator to use to find the element.
Returns
the boolean

Definition at line 2148 of file SlimWebDriver.java.

◆ verifyAllOptionsSelected()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyAllOptionsSelected ( String  locator)

Verifies if all the options in a select box are selected.

Parameters
locatorthe locator to use to find the element.
Returns
the boolean

Definition at line 2126 of file SlimWebDriver.java.

◆ verifyAttributePresent()

Boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyAttributePresent ( String  locator,
String  attribute 
)

Verify attribute present boolean.

Parameters
locatorthe locator
attributethe attribute
Returns
the boolean

Definition at line 1218 of file SlimWebDriver.java.

◆ verifyAttributeValue()

Boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyAttributeValue ( String  locator,
String  attribute,
String  pattern 
)

Verify attribute value boolean.

Parameters
locatorthe locator
attributethe attribute
patternthe pattern
Returns
the boolean

Definition at line 1240 of file SlimWebDriver.java.

◆ verifyElementNotPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyElementNotPresent ( String  locator)

Check that the element is not present.

Parameters
locatorthe locator to find the element.
Returns
true if there are no elements present with the specified locator.

Definition at line 1430 of file SlimWebDriver.java.

◆ verifyElementPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyElementPresent ( String  locator)

Check that the element is present.

Parameters
locatorthe locator
Returns
true if there are elements present with the specified locator.

Definition at line 1440 of file SlimWebDriver.java.

◆ verifyOptionNotSelected()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyOptionNotSelected ( String  locator,
String  value 
)

Verifies if an option in a select box is not selected.

Parameters
locatorthe locator to use to find the element.
valuethe value
Returns
the boolean

Definition at line 2065 of file SlimWebDriver.java.

◆ verifyOptionNotSelectedByLabel()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyOptionNotSelectedByLabel ( String  locator,
String  label 
)

Verifies if an option in a select box is not selected.

Parameters
locatorthe locator to use to find the element.
labelthe label
Returns
the boolean

Definition at line 2111 of file SlimWebDriver.java.

◆ verifyOptionSelected()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyOptionSelected ( String  locator,
String  value 
)

Verifies if an option in a select box is selected.

Parameters
locatorthe locator to use to find the element.
valuethe value
Returns
the boolean

Definition at line 2049 of file SlimWebDriver.java.

◆ verifyOptionSelectedByLabel()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyOptionSelectedByLabel ( String  locator,
String  label 
)

Verifies if an option in a select box is selected.

Parameters
locatorthe locator to use to find the element.
labelthe label of the option.
Returns
the boolean

Definition at line 2081 of file SlimWebDriver.java.

◆ verifyPatternPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyPatternPresent ( String  pattern)

Verify pattern present boolean.

Parameters
patternthe pattern
Returns
the boolean

Definition at line 1263 of file SlimWebDriver.java.

◆ verifyText()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyText ( String  locator,
String  pattern 
)

Verifies if the text at the specified locator is compliant with the given pattern.

If the locator refers to an input element it will check if it is a checkbox or radio button, if so it will use "true" or "false", if it is any other input element it will use the value of the attribute "value".

Parameters
locatorthe locator to use to find the element.
patternthe pattern.
Returns
the boolean

Definition at line 1162 of file SlimWebDriver.java.

◆ verifyTextContainsString()

Boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyTextContainsString ( String  locator,
String  pattern 
)

Verifies that a specific String is present in a specific part of the page.

Parameters
locatorthe locator
patternthe pattern
Returns
boolean

Definition at line 1284 of file SlimWebDriver.java.

◆ verifyTextNotPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyTextNotPresent ( String  text)

Verifies if the given text is not present anywhere in the source of the page.

Parameters
textthe value to verify.
Returns
the boolean

Definition at line 1273 of file SlimWebDriver.java.

◆ verifyTextPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyTextPresent ( String  text)

Verifies if the given text is present anywhere in the source of the page.

Parameters
textthe value to verify.
Returns
the boolean

Definition at line 1253 of file SlimWebDriver.java.

◆ verifyTimesElementPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyTimesElementPresent ( String  locator,
int  timesPresent 
)

Verifies that a specific element is x times present on the page.

Parameters
locatorthe locator
timesPresentthe times present
Returns
true or false

Definition at line 1467 of file SlimWebDriver.java.

◆ verifyValue()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyValue ( String  locator,
String  pattern 
)

Verifies if the text at the specified locator is compliant with the given pattern.

If the locator refers to an input element it will check if it is a checkbox or radio button, if so it will use "true" or "false", if it is any other input element it will use the value of the attribute "value".

Parameters
locatorthe locator to use to find the element.
patternthe pattern.
Returns
the boolean

Definition at line 1178 of file SlimWebDriver.java.

◆ verifyValueEmpty()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyValueEmpty ( String  locator)

Checks whether a value is empty.

Parameters
locatorthe locator
Returns
the boolean

Definition at line 1865 of file SlimWebDriver.java.

◆ verifyValueNotEmpty()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyValueNotEmpty ( String  locator)

Checks whether a value is not empty.

Parameters
locatorthe locator
Returns
the boolean

Definition at line 1875 of file SlimWebDriver.java.

◆ verifyValueOfCookie()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.verifyValueOfCookie ( String  name,
String  value 
)

Verifies the value of a cookie with the specified name using the supplied expected value

Parameters
namethe name of the cookie.
valuethe expexted value
Returns
the boolean
Exceptions
ConditionalExceptionWhen the cookie with the specified name does not exist.
ConditionalExceptionWhen the cookie with the specified name does not have the specified value.

Definition at line 500 of file SlimWebDriver.java.

◆ waitForAlertAndAccept()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForAlertAndAccept ( )

Wait for an alert dialog and when it appears it will accept it.

Exceptions
ConditionalExceptionwhen a timeout occurs, a webdriver exception occurs or when the dialog is not appearing.

Definition at line 1592 of file SlimWebDriver.java.

◆ waitForAlertAndDismiss()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForAlertAndDismiss ( )

Wait for an alert dialog and when it appears it will dismiss it.

Exceptions
ConditionalExceptionwhen a timeout occurs, a webdriver exception occurs or when the dialog is not appearing.

Definition at line 1629 of file SlimWebDriver.java.

◆ waitForEditable()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForEditable ( String  locator)

Waits for an element to become editable.

Parameters
locatorthe locator to use to find the element.
Exceptions
ConditionalExceptionwhen the element was not found or the element did not become editable.

Definition at line 1296 of file SlimWebDriver.java.

◆ waitForElementNotPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForElementNotPresent ( String  locator)

Returns true if the element is not present, otherwise Waits for an element to become detached from the dom tree.

Parameters
locatorthe locator to use to find the element.
Returns
the boolean
Exceptions
ConditionalExceptionwhen the element was not found or the element did not detach itself from the dom tree.

Definition at line 1493 of file SlimWebDriver.java.

◆ waitForElementPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForElementPresent ( String  locator)

Waits for an element to become present in the dom tree.

Will also return true if the element was already present.

Parameters
locatorthe locator to use to find the element.
Returns
the boolean
Exceptions
ConditionalExceptionwhen the element was not found or the element did not appear in the dom tree.

Definition at line 1345 of file SlimWebDriver.java.

◆ waitForElementToBeClickable()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForElementToBeClickable ( String  locator)

Wait for element to be clickable.

Parameters
locatorthe locator

Definition at line 1571 of file SlimWebDriver.java.

◆ waitForNotEditable()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForNotEditable ( String  locator)

Waits for an element to become not editable.

Parameters
locatorthe locator to use to find the element.
Exceptions
ConditionalExceptionwhen the element was not found or the element did not become un-editable.

Definition at line 1320 of file SlimWebDriver.java.

◆ waitForNotText()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForNotText ( String  locator,
String  text 
)

Waits for the specified text to be removed / adjusted.

Parameters
locatorthe locator to use to find the element.
textthe text to search for.
Returns
the boolean
Exceptions
ConditionalExceptionwhen the text did not change.

Definition at line 1792 of file SlimWebDriver.java.

◆ waitForNotVisible()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForNotVisible ( String  locator)

Waits for an element to become invisible (meaning visible and width and height != 0).

Parameters
locatorthe locator to use to find the element.
Exceptions
ConditionalExceptionwhen the element was not found or the element did not become visible.

Definition at line 1692 of file SlimWebDriver.java.

◆ waitForPageLoad()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForPageLoad ( )

Deprecated command, should wait for the page to load but is now implicit.

Definition at line 734 of file SlimWebDriver.java.

◆ waitForPossibleAlertAndAccept()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForPossibleAlertAndAccept ( )

Wait for an alert dialog and when it appears it will accept it.

If it doesn't appear in the wait time of 2 seconds, we continue

Exceptions
ConditionalExceptionwhen a timeout occurs, a webdriver exception occurs or when the dialog is not appearing.

Definition at line 1611 of file SlimWebDriver.java.

◆ waitForPossibleAlertAndDismiss()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForPossibleAlertAndDismiss ( )

Wait for an alert dialog and when it appears it will dismiss it.

If it doesn't appear in the wait time of 2 seconds, we continue

Exceptions
ConditionalExceptionwhen a timeout occurs, a webdriver exception occurs or when the dialog is not appearing.

Definition at line 1647 of file SlimWebDriver.java.

◆ waitForSeconds()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForSeconds ( String  milliseconds)

Pause is not allowed anymore.

Parameters
millisecondsthe milliseconds

Definition at line 785 of file SlimWebDriver.java.

◆ waitForText()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForText ( String  locator,
String  text 
)

Waits for the text to become visible in the specified locator.

Parameters
locatorthe locator to use to find the element.
textthe text to search for.
Returns
the boolean
Exceptions
ConditionalExceptionwhen the text did not become visible.

Definition at line 1766 of file SlimWebDriver.java.

◆ waitForTextNotPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForTextNotPresent ( String  text)

Waits for the text to become absent anywhere on the page.

Parameters
textthe text to search for.
Returns
the boolean
Exceptions
ConditionalExceptionwhen the text did not become visible.

Definition at line 1741 of file SlimWebDriver.java.

◆ waitForTextPresent()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForTextPresent ( String  text)

Waits for the text to become visible anywhere on the page.

Parameters
textthe text to search for.
Returns
the boolean
Exceptions
ConditionalExceptionwhen the text did not become visible.

Definition at line 1717 of file SlimWebDriver.java.

◆ waitForValue()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForValue ( String  locator,
String  value 
)

Waits for the text to become absent anywhere on the page.

Parameters
locatorthe locator to use to find the element.
valuethe value to search for.
Returns
the boolean
Exceptions
ConditionalExceptionwhen the text did not become visible.

Definition at line 1818 of file SlimWebDriver.java.

◆ waitForValueNotEmpty()

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForValueNotEmpty ( String  locator)

Waits for the element to have a value.

Parameters
locatorthe locator to use to find the element.
Returns
the boolean
Exceptions
ConditionalExceptionwhen the text did not become visible.

Definition at line 1842 of file SlimWebDriver.java.

◆ waitForVisible()

void nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.waitForVisible ( String  locator)

Waits for an element to become visible (meaning visible and width and height != 0).

Parameters
locatorthe locator to use to find the element.
Exceptions
ConditionalExceptionwhen the element was not found or the element did not become visible.

Definition at line 1520 of file SlimWebDriver.java.

Member Data Documentation

◆ ATTR_TYPE

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.ATTR_TYPE = "type"
static

The constant ATTR_TYPE.

Definition at line 97 of file SlimWebDriver.java.

◆ ATTR_VALUE

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.ATTR_VALUE = "value"
static

The constant ATTR_VALUE.

Definition at line 109 of file SlimWebDriver.java.

◆ BROWSER

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.BROWSER
staticpackage

The Browser.

Definition at line 145 of file SlimWebDriver.java.

◆ BROWSER_BROWSERSTACK

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.BROWSER_BROWSERSTACK = "browserstack"
static

Definition at line 85 of file SlimWebDriver.java.

◆ BROWSER_CHROME

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.BROWSER_CHROME = "chrome"
static

Definition at line 78 of file SlimWebDriver.java.

◆ BROWSER_EDGE

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.BROWSER_EDGE = "edge"
static

Definition at line 82 of file SlimWebDriver.java.

◆ BROWSER_FIREFOX

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.BROWSER_FIREFOX = "firefox"
static

Definition at line 77 of file SlimWebDriver.java.

◆ BROWSER_HEADLESS

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.BROWSER_HEADLESS = "headless"
static

Definition at line 83 of file SlimWebDriver.java.

◆ BROWSER_INTERNET_EXPLORER

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.BROWSER_INTERNET_EXPLORER = "internet explorer"
static

Definition at line 81 of file SlimWebDriver.java.

◆ BROWSER_REMOTE

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.BROWSER_REMOTE = "remote"
static

Definition at line 84 of file SlimWebDriver.java.

◆ BROWSER_REMOTE_CHROME

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.BROWSER_REMOTE_CHROME = "remote.chrome"
static

Definition at line 79 of file SlimWebDriver.java.

◆ BROWSER_SAFARI

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.BROWSER_SAFARI = "safari"
static

Definition at line 80 of file SlimWebDriver.java.

◆ circumventSelenium3

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.circumventSelenium3 = false
private

Definition at line 166 of file SlimWebDriver.java.

◆ CtrlOrCmd

Keys nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.CtrlOrCmd = Keys.CONTROL
package

The Ctrl or cmd.

Definition at line 163 of file SlimWebDriver.java.

◆ DPR

float nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.DPR = 1
staticpackage

The Dpr.

Definition at line 133 of file SlimWebDriver.java.

◆ driver

WebDriver nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.driver = null

The Driver.

Definition at line 159 of file SlimWebDriver.java.

◆ ELEMENT_INPUT

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.ELEMENT_INPUT = "input"
static

The constant ELEMENT_INPUT.

Definition at line 89 of file SlimWebDriver.java.

◆ ELEMENT_TEXTAREA

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.ELEMENT_TEXTAREA = "textarea"
static

The constant ELEMENT_TEXTAREA.

Definition at line 93 of file SlimWebDriver.java.

◆ HEADLESSCHROMEWINDOWSIZE

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.HEADLESSCHROMEWINDOWSIZE = "1600x1200"
staticprivate

Definition at line 121 of file SlimWebDriver.java.

◆ LOCATOR_CLASSNAME

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.LOCATOR_CLASSNAME = "classname="
staticprivate

Definition at line 117 of file SlimWebDriver.java.

◆ LOCATOR_CSS

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.LOCATOR_CSS = "css="
staticprivate

Definition at line 114 of file SlimWebDriver.java.

◆ LOCATOR_ID

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.LOCATOR_ID = "id="
staticprivate

Definition at line 115 of file SlimWebDriver.java.

◆ LOCATOR_LINKTEXT

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.LOCATOR_LINKTEXT = "link="
staticprivate

Definition at line 118 of file SlimWebDriver.java.

◆ LOCATOR_NAME

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.LOCATOR_NAME = "name="
staticprivate

Definition at line 116 of file SlimWebDriver.java.

◆ LOCATOR_PARTIAlLINKTEXT

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.LOCATOR_PARTIAlLINKTEXT = "partiallink="
staticprivate

Definition at line 119 of file SlimWebDriver.java.

◆ LOCATOR_XPATH

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.LOCATOR_XPATH = "xpath="
staticprivate

Definition at line 113 of file SlimWebDriver.java.

◆ LOG

final Logger nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.LOG = LoggerFactory.getLogger(SlimWebDriver.class)
staticprivate

Definition at line 110 of file SlimWebDriver.java.

◆ loopCommands

ArrayList<WebdriverCommand> nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.loopCommands = new ArrayList<>()
staticprivate

Definition at line 155 of file SlimWebDriver.java.

◆ MAC_OS_NAME

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.MAC_OS_NAME = "mac"
staticprivate

Definition at line 120 of file SlimWebDriver.java.

◆ noproxylist

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.noproxylist
staticprivate

Definition at line 151 of file SlimWebDriver.java.

◆ properties

Properties nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.properties = null
private

Definition at line 165 of file SlimWebDriver.java.

◆ proxy

Proxy nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.proxy = null
staticprivate

Definition at line 152 of file SlimWebDriver.java.

◆ proxyurl

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.proxyurl
staticprivate

Definition at line 150 of file SlimWebDriver.java.

◆ REGEX_SYNTAX

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.REGEX_SYNTAX = "regex:"
staticprivate

Definition at line 112 of file SlimWebDriver.java.

◆ REGEXPI_SYNTAX

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.REGEXPI_SYNTAX = "regexpi:"
staticprivate

Definition at line 111 of file SlimWebDriver.java.

◆ remoteProfile

FirefoxProfile nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.remoteProfile
static

The constant remoteProfile.

Definition at line 129 of file SlimWebDriver.java.

◆ SCREENSHOTLOCATION

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.SCREENSHOTLOCATION
static

The constant SCREENSHOTLOCATION.

Definition at line 125 of file SlimWebDriver.java.

◆ seconds

int nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.seconds
private

Definition at line 164 of file SlimWebDriver.java.

◆ SYSTEMISMACOS

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.SYSTEMISMACOS = false
staticprivate

Definition at line 154 of file SlimWebDriver.java.

◆ TAKESCREENSHOTONEXCEPTION

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.TAKESCREENSHOTONEXCEPTION = false
staticprivate

Definition at line 153 of file SlimWebDriver.java.

◆ TYPE_CHECKBOX

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.TYPE_CHECKBOX = "checkbox"
static

The constant TYPE_CHECKBOX.

Definition at line 101 of file SlimWebDriver.java.

◆ TYPE_RADIO

final String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.TYPE_RADIO = "radio"
static

The constant TYPE_RADIO.

Definition at line 105 of file SlimWebDriver.java.

◆ USEPROPERTYFILESUPPLIEDDPR

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.USEPROPERTYFILESUPPLIEDDPR = false
staticpackage

The Usepropertyfilesupplieddpr.

Definition at line 141 of file SlimWebDriver.java.

◆ USEUSERSUPPLIEDDPR

boolean nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.USEUSERSUPPLIEDDPR = false
staticpackage

The Useusersupplieddpr.

Definition at line 137 of file SlimWebDriver.java.

◆ WEBDRIVERMANAGERPROPERTIESFILE

String nl.psek.fitnesse.fixtures.selenium.SlimWebDriver.WEBDRIVERMANAGERPROPERTIESFILE
staticpackage

The Webdrivermanagerpropertiesfile.

Definition at line 149 of file SlimWebDriver.java.


The documentation for this class was generated from the following file: