$ A B C D E F G H I J K L M N O P Q R S T U V W 

$

$(WebElement) - Static method in class com.codeborne.selenide.Selenide
Wrap standard Selenium WebElement into SelenideElement to use additional methods like shouldHave(), selectOption() etc.
$(String) - Static method in class com.codeborne.selenide.Selenide
Find the first element matching given CSS selector
$(By) - Static method in class com.codeborne.selenide.Selenide
Find the first element matching given CSS selector
$(By, int) - Static method in class com.codeborne.selenide.Selenide
 
$(WebElement, String) - Static method in class com.codeborne.selenide.Selenide
Find the first element matching given CSS selector
$(String, int) - Static method in class com.codeborne.selenide.Selenide
Find the Nth element matching given criteria
$(WebElement, String, int) - Static method in class com.codeborne.selenide.Selenide
Find the Nth element matching given criteria
$(WebElement, By) - Static method in class com.codeborne.selenide.Selenide
 
$(WebElement, By, int) - Static method in class com.codeborne.selenide.Selenide
 
$(String) - Method in interface com.codeborne.selenide.SelenideElement
 
$(String, int) - Method in interface com.codeborne.selenide.SelenideElement
com.codeborne.selenide.SelenideElement#find(java.lang.String)
$(By) - Method in interface com.codeborne.selenide.SelenideElement
com.codeborne.selenide.SelenideElement#find(java.lang.String)
$(By, int) - Method in interface com.codeborne.selenide.SelenideElement
com.codeborne.selenide.SelenideElement#find(java.lang.String)
$$(Collection<? extends WebElement>) - Static method in class com.codeborne.selenide.Selenide
 
$$(String) - Static method in class com.codeborne.selenide.Selenide
Find all elements matching given CSS selector.
$$(By) - Static method in class com.codeborne.selenide.Selenide
Find all elements matching given CSS selector.
$$(WebElement, String) - Static method in class com.codeborne.selenide.Selenide
Find all elements matching given CSS selector inside given parent element Methods returns an ElementsCollection which is a list of WebElement objects that can be iterated, and at the same time is implementation of WebElement interface, meaning that you can call methods .sendKeys(), click() etc.
$$(WebElement, By) - Static method in class com.codeborne.selenide.Selenide
Find all elements matching given criteria inside given parent element
$$(String) - Method in interface com.codeborne.selenide.SelenideElement
com.codeborne.selenide.SelenideElement#findAll(java.lang.String)
$$(By) - Method in interface com.codeborne.selenide.SelenideElement
com.codeborne.selenide.SelenideElement#findAll(java.lang.String)

A

absoluteUrl(String) - Method in class com.codeborne.selenide.impl.Navigator
 
actions() - Static method in class com.codeborne.selenide.Selenide
With this method you can use Selenium Actions like described in the AdvancedUserInteractions page.
actualValue(WebElement) - Method in class com.codeborne.selenide.Condition
If element didn't match the condition, returns the actual value of element.
actualValue(Condition, WebElement) - Static method in class com.codeborne.selenide.ex.ErrorMessages
 
add(SelenideElement) - Method in class com.codeborne.selenide.impl.SelenideElementListIterator
 
addListener(WebDriverEventListener) - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
addListener(WebDriverEventListener) - Static method in class com.codeborne.selenide.WebDriverRunner
Use this method BEFORE opening a browser to add custom event listeners to webdriver.
addListeners(WebDriver) - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
addToHistory(String) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
after() - Method in class com.codeborne.selenide.junit.BrowserStrategy
 
ALL_WEB_DRIVERS - Variable in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
allScreenshots - Variable in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
and(String, Condition...) - Static method in class com.codeborne.selenide.Condition
Check if element matches all given conditions.
appear - Static variable in class com.codeborne.selenide.Condition
Synonym for com.codeborne.selenide.Condition#appear - may be used for better readability $("#logoutLink").should(appear);
appears - Static variable in class com.codeborne.selenide.Condition
Synonym for #visible - may be used for better readability $("#logoutLink").waitUntil(appears, 10000); Thought the same can be done in a shorter way: waitFor(By.id("logoutLink");
append(String) - Method in interface com.codeborne.selenide.SelenideElement
Append given test to the text field and trigger "change" event.
apply(List<WebElement>) - Method in class com.codeborne.selenide.collections.ExactTexts
 
apply(List<WebElement>) - Method in class com.codeborne.selenide.collections.ListSize
 
apply(List<WebElement>) - Method in class com.codeborne.selenide.collections.Texts
 
apply(WebElement) - Method in class com.codeborne.selenide.Condition
Check if given element matches this condition.
applyNull() - Method in class com.codeborne.selenide.Condition
 
attr(String) - Method in interface com.codeborne.selenide.SelenideElement
Get the attribute of the element.
attribute(String) - Static method in class com.codeborne.selenide.Condition
Check if element has given attribute (with any value) $("#mydiv").shouldHave(attribute("fileId"));
attribute(String, String) - Static method in class com.codeborne.selenide.Condition
$("#mydiv").shouldHave(attribute("fileId", "12345"));

B

back() - Method in class com.codeborne.selenide.impl.Navigator
 
back() - Static method in class com.codeborne.selenide.Selenide
Navigate browser back to previous page
baseUrl - Static variable in class com.codeborne.selenide.Configuration
 
browser - Static variable in class com.codeborne.selenide.Configuration
Which browser to use.
BrowserPerClass - Class in com.codeborne.selenide.testng
Annotate your test class with @Listeners({ BrowserPerClass.class})
BrowserPerClass() - Constructor for class com.codeborne.selenide.testng.BrowserPerClass
 
BrowserPerTest - Class in com.codeborne.selenide.testng
Annotate your test class with @Listeners({ BrowserPerTest.class})
BrowserPerTest() - Constructor for class com.codeborne.selenide.testng.BrowserPerTest
 
BrowserStrategy - Class in com.codeborne.selenide.junit
Usage:
BrowserStrategy() - Constructor for class com.codeborne.selenide.junit.BrowserStrategy
 
by(String, String) - Static method in class com.codeborne.selenide.Selectors
Synonym for #byAttribute Seems to work incorrectly in HtmlUnit and PhantomJS if attribute name contains dash (e.g.
byAttribute(String, String) - Static method in class com.codeborne.selenide.Selectors
Find elements having attribute with given value.
BySelectorCollection - Class in com.codeborne.selenide.impl
 
BySelectorCollection(By) - Constructor for class com.codeborne.selenide.impl.BySelectorCollection
 
BySelectorCollection(WebElement, By) - Constructor for class com.codeborne.selenide.impl.BySelectorCollection
 
byText(String) - Static method in class com.codeborne.selenide.Selectors
Find element that has EXACTLY this text NB! It seems that Selenium WebDriver does not support i18n characters in XPath :(
byTitle(String) - Static method in class com.codeborne.selenide.Selectors
Find element with given title ("title" attribute)
byValue(String) - Static method in class com.codeborne.selenide.Selectors
 

C

captureSuccessfulTests - Variable in class com.codeborne.selenide.junit.ScreenShooter
 
captureSuccessfulTests - Static variable in class com.codeborne.selenide.testng.ScreenShooter
 
change(By) - Method in class com.codeborne.selenide.JQuery
Trigger "onchange" event on given element
change(By, int) - Method in class com.codeborne.selenide.JQuery
Trigger "onchange" event on given element
CHROME - Static variable in class com.codeborne.selenide.WebDriverRunner
 
Cleanup - Class in com.codeborne.selenide.impl
 
Cleanup() - Constructor for class com.codeborne.selenide.impl.Cleanup
 
clearBrowserCache() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
clearBrowserCache() - Static method in class com.codeborne.selenide.WebDriverRunner
Delete all the browser cookies
close() - Static method in class com.codeborne.selenide.Selenide
Close the browser if it's open
closeAllWebDrivers() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
closeWebDriver() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
closeWebDriver(WebDriver) - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
closeWebDriver() - Static method in class com.codeborne.selenide.WebDriverRunner
Close the browser if it's open
CollectionCondition - Class in com.codeborne.selenide
 
CollectionCondition() - Constructor for class com.codeborne.selenide.CollectionCondition
 
CollectionElement - Class in com.codeborne.selenide.impl
 
com.codeborne.selenide - package com.codeborne.selenide
 
com.codeborne.selenide.collections - package com.codeborne.selenide.collections
 
com.codeborne.selenide.ex - package com.codeborne.selenide.ex
 
com.codeborne.selenide.impl - package com.codeborne.selenide.impl
 
com.codeborne.selenide.junit - package com.codeborne.selenide.junit
 
com.codeborne.selenide.testng - package com.codeborne.selenide.testng
 
Condition - Class in com.codeborne.selenide
 
Condition(String) - Constructor for class com.codeborne.selenide.Condition
 
Condition(String, boolean) - Constructor for class com.codeborne.selenide.Condition
 
Configuration - Class in com.codeborne.selenide
 
Configuration() - Constructor for class com.codeborne.selenide.Configuration
 
confirm(String) - Static method in class com.codeborne.selenide.Selenide
Accept (Click "Yes" or "Ok") in the confirmation dialog (javascript 'alert' or 'confirm').
contains(String, String) - Method in class com.codeborne.selenide.impl.Html
 
containsCaseSensitive(String, String) - Method in class com.codeborne.selenide.impl.Html
 
contextClick() - Method in interface com.codeborne.selenide.SelenideElement
 
copyFile(File, File) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
copyFile(InputStream, File) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
createChromeDriver() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
createDriver() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
createDriver(DesiredCapabilities) - Method in interface com.codeborne.selenide.WebDriverProvider
Create new WebDriver instance.
createFirefoxDriver() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
createHtmlUnitDriver() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
createInstanceOf(String) - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
createInternetExplorerDriver() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
createOperaDriver() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
createPhantomJsDriver() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
createRemoteDriver(String, String) - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
cssClass(String) - Static method in class com.codeborne.selenide.Condition
Usage: $("input").shouldHave(cssClass("active"));
currentContext - Variable in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
currentContextScreenshots - Variable in class com.codeborne.selenide.impl.ScreenShotLaboratory
 

D

data(String) - Method in interface com.codeborne.selenide.SelenideElement
Get value of attribute "data-dataAttributeName"
decorate(ClassLoader, Field) - Method in class com.codeborne.selenide.impl.SelenideFieldDecorator
 
Describe - Class in com.codeborne.selenide.impl
 
describe(WebElement) - Static method in class com.codeborne.selenide.impl.Describe
 
description() - Method in class com.codeborne.selenide.impl.BySelectorCollection
 
description() - Method in class com.codeborne.selenide.impl.FilteringCollection
 
description() - Method in interface com.codeborne.selenide.impl.WebElementsCollection
 
description() - Method in class com.codeborne.selenide.impl.WebElementsCollectionWrapper
 
DialogTextMismatch - Error in com.codeborne.selenide.ex
 
DialogTextMismatch(String, String) - Constructor for error com.codeborne.selenide.ex.DialogTextMismatch
 
disabled - Static variable in class com.codeborne.selenide.Condition
Checks that element is disabled
disappear - Static variable in class com.codeborne.selenide.Condition
Synonym for com.codeborne.selenide.Condition#hidden - may be used for better readability: $("#loginLink").should(disappear);
disappears - Static variable in class com.codeborne.selenide.Condition
Synonym for com.codeborne.selenide.Condition#hidden - may be used for better readability: $("#loginLink").waitUntil(disappears, 9000);
dismiss(String) - Static method in class com.codeborne.selenide.Selenide
Dismiss (click "No" or "Cancel") in the confirmation dialog (javascript 'alert' or 'confirm').
dismissModalDialogs - Static variable in class com.codeborne.selenide.Configuration
Mock "alert" and "confirm" javascript dialogs.
download(WebElement) - Method in class com.codeborne.selenide.impl.FileDownloader
 
download() - Method in interface com.codeborne.selenide.SelenideElement
Download file linked by "href" attribute of this element
duplicateCookie(Cookie) - Method in class com.codeborne.selenide.impl.FileDownloader
 

E

ElementNotFound - Error in com.codeborne.selenide.ex
 
ElementNotFound(By, Condition, long) - Constructor for error com.codeborne.selenide.ex.ElementNotFound
 
ElementNotFound(String, Condition, long) - Constructor for error com.codeborne.selenide.ex.ElementNotFound
 
ElementNotFound(WebElementsCollection, String[], long) - Constructor for error com.codeborne.selenide.ex.ElementNotFound
 
ElementsCollection - Class in com.codeborne.selenide
 
ElementsCollection(WebElementsCollection) - Constructor for class com.codeborne.selenide.ElementsCollection
 
ElementsContainer - Class in com.codeborne.selenide
 
ElementsContainer() - Constructor for class com.codeborne.selenide.ElementsContainer
 
ElementShould - Error in com.codeborne.selenide.ex
 
ElementShould(String, String, Condition, WebElement, long) - Constructor for error com.codeborne.selenide.ex.ElementShould
 
ElementShouldNot - Error in com.codeborne.selenide.ex
 
ElementShouldNot(String, String, Condition, WebElement, long) - Constructor for error com.codeborne.selenide.ex.ElementShouldNot
 
elementsToString(Collection<WebElement>) - Static method in class com.codeborne.selenide.ElementsCollection
 
empty - Static variable in class com.codeborne.selenide.CollectionCondition
 
empty - Static variable in class com.codeborne.selenide.Condition
1) For input element, check that value is missing or empty $("#input").shouldBe(empty) 2) For other elements, check that text is empty $("h2").shouldBe(empty)
enabled - Static variable in class com.codeborne.selenide.Condition
Checks that element is not disabled
ensureFolderExists(File) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
equals(String, String) - Method in class com.codeborne.selenide.impl.Html
 
equalsCaseSensitive(String, String) - Method in class com.codeborne.selenide.impl.Html
 
ErrorMessages - Class in com.codeborne.selenide.ex
 
ErrorMessages() - Constructor for class com.codeborne.selenide.ex.ErrorMessages
 
escape - Static variable in class com.codeborne.selenide.impl.Quotes
 
exactText(String) - Static method in class com.codeborne.selenide.Condition
$("h1").shouldHave(exactText("Hello"))
exactTextCaseSensitive(String) - Static method in class com.codeborne.selenide.Condition
$("h1").shouldHave(exactTextCaseSensitive("Hello"))
exactTexts(String...) - Static method in class com.codeborne.selenide.CollectionCondition
Checks that given collection has given texts (each collection element EQUALS TO corresponding text)
ExactTexts - Class in com.codeborne.selenide.collections
 
ExactTexts(String...) - Constructor for class com.codeborne.selenide.collections.ExactTexts
 
exclude(Condition) - Method in class com.codeborne.selenide.ElementsCollection
 
excludeWith(Condition) - Method in class com.codeborne.selenide.ElementsCollection
 
executeHttpRequest(String) - Method in class com.codeborne.selenide.impl.FileDownloader
 
executeJavaScript(String, Object...) - Static method in class com.codeborne.selenide.Selenide
 
executeJQueryMethod(By, String) - Method in class com.codeborne.selenide.JQuery
 
exist - Static variable in class com.codeborne.selenide.Condition
Check if element exist.
exists() - Method in interface com.codeborne.selenide.SelenideElement
Checks if element exists true on the current page.
expectedSize - Variable in class com.codeborne.selenide.collections.ListSize
 
expectedTexts - Variable in class com.codeborne.selenide.collections.ExactTexts
 

F

fail(WebElementsCollection, List<WebElement>, long) - Method in class com.codeborne.selenide.CollectionCondition
 
fail(WebElementsCollection, List<WebElement>, long) - Method in class com.codeborne.selenide.collections.ExactTexts
 
fail(WebElementsCollection, List<WebElement>, long) - Method in class com.codeborne.selenide.collections.ListSize
 
failed(Throwable, Description) - Method in class com.codeborne.selenide.junit.ScreenShooter
 
failedTests() - Static method in class com.codeborne.selenide.junit.ScreenShooter
 
FileDownloader - Class in com.codeborne.selenide.impl
 
FileDownloader() - Constructor for class com.codeborne.selenide.impl.FileDownloader
 
filter(Condition) - Method in class com.codeborne.selenide.ElementsCollection
 
filterBy(Condition) - Method in class com.codeborne.selenide.ElementsCollection
 
FilteringCollection - Class in com.codeborne.selenide.impl
 
FilteringCollection(WebElementsCollection, Predicate<WebElement>) - Constructor for class com.codeborne.selenide.impl.FilteringCollection
 
find(Condition) - Method in class com.codeborne.selenide.ElementsCollection
 
find(SelenideElement, Object, int) - Method in class com.codeborne.selenide.impl.WaitingSelenideElement
 
find(String) - Method in interface com.codeborne.selenide.SelenideElement
Find the first matching element inside given element
find(String, int) - Method in interface com.codeborne.selenide.SelenideElement
Find the Nth matching element inside given element
find(By) - Method in interface com.codeborne.selenide.SelenideElement
com.codeborne.selenide.SelenideElement#find(java.lang.String)
find(By, int) - Method in interface com.codeborne.selenide.SelenideElement
com.codeborne.selenide.SelenideElement#find(java.lang.String)
findAll(String) - Method in interface com.codeborne.selenide.SelenideElement
Short form of webDriver.findElements(thisElement, By.cssSelector(cssSelector))
findAll(By) - Method in interface com.codeborne.selenide.SelenideElement
Short form of webDriver.findElements(thisElement, selector)
findBy(Condition) - Method in class com.codeborne.selenide.ElementsCollection
 
finishContext() - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
finishContext() - Static method in class com.codeborne.selenide.Screenshots
 
finished(Description) - Method in class com.codeborne.selenide.junit.ScreenShooter
 
FIREFOX - Static variable in class com.codeborne.selenide.WebDriverRunner
 
focused - Static variable in class com.codeborne.selenide.Condition
Check if browser focus is currently in given element.
followLink() - Method in interface com.codeborne.selenide.SelenideElement
Actual for <a href> elements.
forward() - Method in class com.codeborne.selenide.impl.Navigator
 
forward() - Static method in class com.codeborne.selenide.Selenide
Navigate browser forward to next page

G

generateScreenshotFileName() - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
get(int) - Method in class com.codeborne.selenide.ElementsCollection
 
getActualDelegate() - Method in class com.codeborne.selenide.impl.CollectionElement
 
getActualDelegate() - Method in class com.codeborne.selenide.impl.WaitingSelenideElement
 
getActualDelegate() - Method in class com.codeborne.selenide.impl.WebElementProxy
 
getActualElements() - Method in class com.codeborne.selenide.impl.BySelectorCollection
 
getActualElements() - Method in class com.codeborne.selenide.impl.FilteringCollection
 
getActualElements() - Method in interface com.codeborne.selenide.impl.WebElementsCollection
 
getActualElements() - Method in class com.codeborne.selenide.impl.WebElementsCollectionWrapper
 
getCurrentUrl() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
getDelegate() - Method in class com.codeborne.selenide.impl.CollectionElement
 
getDelegate() - Method in class com.codeborne.selenide.impl.WaitingSelenideElement
 
getDelegate() - Method in class com.codeborne.selenide.impl.WebElementProxy
 
getElement(By) - Static method in class com.codeborne.selenide.Selenide
Find the first element matching given criteria
getElement(By, int) - Static method in class com.codeborne.selenide.Selenide
Find the Nth element matching given criteria
getElements(By) - Static method in class com.codeborne.selenide.Selenide
Find all elements matching given CSS selector
getFileName(String, HttpResponse) - Method in class com.codeborne.selenide.impl.FileDownloader
 
getFileNameFromContentDisposition(String, String) - Method in class com.codeborne.selenide.impl.FileDownloader
 
getFocusedElement() - Static method in class com.codeborne.selenide.Selenide
 
getJQuerySelector(By) - Method in class com.codeborne.selenide.JQuery
 
getPageSource() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
getScreenshotFileName(String, String) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
getScreenshots() - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
getSearchCriteria() - Method in class com.codeborne.selenide.impl.WebElementProxy
 
getSelectedOption() - Method in interface com.codeborne.selenide.SelenideElement
Find selected option from this select field
getSelectedRadio(By) - Static method in class com.codeborne.selenide.Selenide
 
getSelectedText() - Method in interface com.codeborne.selenide.SelenideElement
Get text of selected option in select field
getSelectedValue() - Method in interface com.codeborne.selenide.SelenideElement
Get value of selected option in select field
getSelf() - Method in class com.codeborne.selenide.ElementsContainer
 
getTexts() - Method in class com.codeborne.selenide.ElementsCollection
 
getTexts(Collection<WebElement>) - Static method in class com.codeborne.selenide.ElementsCollection
Fail-safe method for retrieving texts of given elements.
getWebDriver() - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
getWebDriver() - Static method in class com.codeborne.selenide.WebDriverRunner
Get the underlying instance of Selenium WebDriver.

H

has(Condition) - Method in interface com.codeborne.selenide.SelenideElement
Return true iff element matches given condition
hasAttribute(String, String) - Static method in class com.codeborne.selenide.Condition
$("#mydiv").waitUntil(hasAttribute("fileId", "12345"), 7000);
hasClass(WebElement, String) - Static method in class com.codeborne.selenide.Condition
 
hasClass(String) - Static method in class com.codeborne.selenide.Condition
Usage: $("input").waitUntil(hasClass("blocked"), 7000);
hasNext() - Method in class com.codeborne.selenide.impl.SelenideElementIterator
 
hasNotClass(String) - Static method in class com.codeborne.selenide.Condition
Deprecated.
Use method $.shouldNotHave(cssClass("abc"))
hasOptions() - Static method in class com.codeborne.selenide.Condition
Deprecated. 
hasPrevious() - Method in class com.codeborne.selenide.impl.SelenideElementListIterator
 
hasText(String) - Static method in class com.codeborne.selenide.Condition
$("h1").waitUntil(hasText("Hello"), 10000)
hasValue(String) - Static method in class com.codeborne.selenide.Condition
$("#myInput").waitUntil(hasValue("John"), 5000)
hidden - Static variable in class com.codeborne.selenide.Condition
Checks that element is not visible or does not exists.
holdBrowserOpen - Static variable in class com.codeborne.selenide.Configuration
If holdBrowserOpen is true, browser window stays open after running tests.
Html - Class in com.codeborne.selenide.impl
 
Html() - Constructor for class com.codeborne.selenide.impl.Html
 
HTMLUNIT - Static variable in class com.codeborne.selenide.WebDriverRunner
To use HtmlUnitDriver, you need to include extra dependency to your project: It's also possible to run HtmlUnit driver emulating different browsers:
htmlUnit() - Static method in class com.codeborne.selenide.WebDriverRunner
Is Selenide configured to use HtmlUnit browser

I

id(String) - Static method in class com.codeborne.selenide.Condition
$("#input").shouldHave(id("myForm"))
ie() - Static method in class com.codeborne.selenide.WebDriverRunner
Is Selenide configured to use Internet Explorer browser
innerHtml() - Method in interface com.codeborne.selenide.SelenideElement
Get the HTML code of the element with children.
innerText() - Method in interface com.codeborne.selenide.SelenideElement
Get the text code of the element with children.
instance - Static variable in class com.codeborne.selenide.impl.FileDownloader
 
INTERNET_EXPLORER - Static variable in class com.codeborne.selenide.WebDriverRunner
 
invoke(Object, Method, Object[]) - Method in class com.codeborne.selenide.impl.SelenideElementListProxy
 
is(Condition) - Method in interface com.codeborne.selenide.SelenideElement
Return true iff element matches given condition
isChrome() - Static method in class com.codeborne.selenide.WebDriverRunner
Is Selenide configured to use Chrome browser
isDisplayed() - Method in interface com.codeborne.selenide.SelenideElement
Check if this element exists and visible.
isFirefox() - Static method in class com.codeborne.selenide.WebDriverRunner
Is Selenide configured to use Firefox browser
isHeadless() - Static method in class com.codeborne.selenide.WebDriverRunner
Is Selenide configured to use headless browser (HtmlUnit or PhantomJS)
isInvalidSelectorError(RuntimeException) - Method in class com.codeborne.selenide.impl.Cleanup
 
isJQueryAvailable() - Method in class com.codeborne.selenide.JQuery
 
isLocalFile(String) - Method in class com.codeborne.selenide.impl.Navigator
 
iterator() - Method in class com.codeborne.selenide.ElementsCollection
 

J

JQuery - Class in com.codeborne.selenide
 
JQuery() - Constructor for class com.codeborne.selenide.JQuery
 
jQuery - Static variable in class com.codeborne.selenide.JQuery
This instance is mutable so that you can replace it with your own custom object.

K

killBrowser(WebDriver) - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 

L

listeners - Variable in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
listIterator(int) - Method in class com.codeborne.selenide.ElementsCollection
 
ListSize - Class in com.codeborne.selenide.collections
 
ListSize(int) - Constructor for class com.codeborne.selenide.collections.ListSize
 
ListSizeMismatch - Error in com.codeborne.selenide.ex
 
ListSizeMismatch(int, WebElementsCollection, List<WebElement>, long) - Constructor for error com.codeborne.selenide.ex.ListSizeMismatch
 

M

makeUniqueUrlToAvoidIECaching(String, long) - Method in class com.codeborne.selenide.impl.Navigator
 
matches(String, String) - Method in class com.codeborne.selenide.impl.Html
 
matchesText(String) - Static method in class com.codeborne.selenide.Condition
$(".error_message").waitWhile(matchesText("Exception"), 12000)
matchText(String) - Static method in class com.codeborne.selenide.Condition
Assert that given element's text matches given regular expression $("h1").should(matchText("Hello\s*John"))
maximize(WebDriver) - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
mimicCookieState() - Method in class com.codeborne.selenide.impl.FileDownloader
 

N

name - Variable in class com.codeborne.selenide.Condition
 
name(String) - Static method in class com.codeborne.selenide.Condition
$("#input").shouldHave(name("username"))
name() - Method in interface com.codeborne.selenide.SelenideElement
Get the "name" attribute of the element
navigateToAbsoluteUrl(String) - Method in class com.codeborne.selenide.impl.Navigator
 
Navigator - Class in com.codeborne.selenide.impl
 
Navigator() - Constructor for class com.codeborne.selenide.impl.Navigator
 
navigator - Static variable in class com.codeborne.selenide.Selenide
 
next() - Method in class com.codeborne.selenide.impl.SelenideElementIterator
 
nextIndex() - Method in class com.codeborne.selenide.impl.SelenideElementListIterator
 
not(Condition) - Static method in class com.codeborne.selenide.Condition
Negate given condition.
notPresent - Static variable in class com.codeborne.selenide.Condition
Deprecated.
Use method $.shouldNot(exist) or $.shouldNotBe(present).
nullIsAllowed - Variable in class com.codeborne.selenide.Condition
 

O

of - Static variable in class com.codeborne.selenide.impl.Cleanup
 
onClick(By) - Method in class com.codeborne.selenide.JQuery
Calls onclick javascript code.
onConfigurationFailure(ITestResult) - Method in class com.codeborne.selenide.testng.BrowserPerTest
 
onConfirmReturn(boolean) - Static method in class com.codeborne.selenide.Selenide
 
onFinish(ITestContext) - Method in class com.codeborne.selenide.testng.BrowserPerClass
 
onTestFailedButWithinSuccessPercentage(ITestResult) - Method in class com.codeborne.selenide.testng.BrowserPerTest
 
onTestFailure(ITestResult) - Method in class com.codeborne.selenide.testng.BrowserPerTest
 
onTestFailure(ITestResult) - Method in class com.codeborne.selenide.testng.ScreenShooter
 
onTestStart(ITestResult) - Method in class com.codeborne.selenide.testng.ScreenShooter
 
onTestSuccess(ITestResult) - Method in class com.codeborne.selenide.testng.BrowserPerTest
 
onTestSuccess(ITestResult) - Method in class com.codeborne.selenide.testng.ScreenShooter
 
open(String) - Method in class com.codeborne.selenide.impl.Navigator
 
open(URL) - Method in class com.codeborne.selenide.impl.Navigator
 
open(String) - Static method in class com.codeborne.selenide.Selenide
The main starting point in your tests.
open(URL) - Static method in class com.codeborne.selenide.Selenide
 
open(String, Class<PageObjectClass>) - Static method in class com.codeborne.selenide.Selenide
Open a web page and create PageObject for it.
open(URL, Class<PageObjectClass>) - Static method in class com.codeborne.selenide.Selenide
 
OPERA - Static variable in class com.codeborne.selenide.WebDriverRunner
To use OperaDriver, you need to include extra dependency to your project: <dependency org="com.opera" name="operadriver" rev="1.5" conf="test->default"/>
options - Static variable in class com.codeborne.selenide.Condition
Deprecated.
Not needed anymore. Use methods $.selectOption() or $.selectOptionByValue().

P

page(Class<PageObjectClass>) - Static method in class com.codeborne.selenide.Selenide
Create a Page Object instance.
page(T) - Static method in class com.codeborne.selenide.Selenide
Create a Page Object instance.
PHANTOMJS - Static variable in class com.codeborne.selenide.WebDriverRunner
To use PhantomJS, you need to include extra dependency to your project: <dependency org="com.github.detro.ghostdriver" name="phantomjsdriver" rev="1.+" conf="test->default"/>
phantomjs() - Static method in class com.codeborne.selenide.WebDriverRunner
Is Selenide configured to use PhantomJS browser
pollingInterval - Static variable in class com.codeborne.selenide.Configuration
 
prepareTargetFile(String, HttpResponse) - Method in class com.codeborne.selenide.impl.FileDownloader
 
present - Static variable in class com.codeborne.selenide.Condition
 
pressEnter() - Method in interface com.codeborne.selenide.SelenideElement
Press ENTER.
pressTab() - Method in interface com.codeborne.selenide.SelenideElement
Press TAB.
previous() - Method in class com.codeborne.selenide.impl.SelenideElementListIterator
 
previousIndex() - Method in class com.codeborne.selenide.impl.SelenideElementListIterator
 

Q

Quotes - Class in com.codeborne.selenide.impl
 
Quotes() - Constructor for class com.codeborne.selenide.impl.Quotes
 
quotes(String) - Method in class com.codeborne.selenide.impl.Quotes
Convert strings with both quotes and ticks into: foo'"bar -> concat("foo'", '"', "bar")

R

readonly - Static variable in class com.codeborne.selenide.Condition
Check if element has "readonly" attribute (with any value) $("input").shouldBe(readonly);
refresh() - Static method in class com.codeborne.selenide.Selenide
Reload current page
remote - Static variable in class com.codeborne.selenide.Configuration
URL of remote web driver (in case of using Selenium Grid).
remove() - Method in class com.codeborne.selenide.impl.SelenideElementIterator
 
reportsFolder - Static variable in class com.codeborne.selenide.Configuration
Folder to store screenshots to.
reportsUrl - Static variable in class com.codeborne.selenide.Configuration
Optional: URL of CI server where reports are published to.

S

saveFileContent(HttpResponse, File) - Method in class com.codeborne.selenide.impl.FileDownloader
 
savePageImageToFile(String, WebDriver) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
savePageSourceToFile(String, WebDriver) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
ScreenShooter - Class in com.codeborne.selenide.junit
Usage:
ScreenShooter - Class in com.codeborne.selenide.testng
Annotate your test class with @Listeners({ ScreenShooter.class})
ScreenShooter() - Constructor for class com.codeborne.selenide.testng.ScreenShooter
 
screenshot() - Static method in class com.codeborne.selenide.ex.ErrorMessages
 
screenshot(String) - Static method in class com.codeborne.selenide.Selenide
Take the screenshot of current page and save to file fileName.html and fileName.png
screenshotCounter - Variable in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
ScreenShotLaboratory - Class in com.codeborne.selenide.impl
 
ScreenShotLaboratory() - Constructor for class com.codeborne.selenide.impl.ScreenShotLaboratory
 
screenshots - Static variable in class com.codeborne.selenide.Configuration
Does Selenide need to take screenshots on failing tests.
Screenshots - Class in com.codeborne.selenide
 
Screenshots() - Constructor for class com.codeborne.selenide.Screenshots
 
screenshots - Static variable in class com.codeborne.selenide.Screenshots
 
scrollTo(By) - Method in class com.codeborne.selenide.JQuery
Deprecated.
Use method $(...).scrollTo() instead - it's jquery-agnostic.

This method works only if jQuery "scroll" plugin is included in page being tested

scrollTo() - Method in interface com.codeborne.selenide.SelenideElement
Ask browser to scroll to this element
selected - Static variable in class com.codeborne.selenide.Condition
Checks that element is selected
selectOption(String) - Method in interface com.codeborne.selenide.SelenideElement
Select an option from dropdown list
selectOptionByText(WebElement, String) - Method in class com.codeborne.selenide.impl.WaitingSelenideElement
 
selectOptionByValue(WebElement, String) - Method in class com.codeborne.selenide.impl.WaitingSelenideElement
 
selectOptionByValue(String) - Method in interface com.codeborne.selenide.SelenideElement
Select an option by value from dropdown list
Selectors - Class in com.codeborne.selenide
 
Selectors() - Constructor for class com.codeborne.selenide.Selectors
 
selectRadio(By, String) - Static method in class com.codeborne.selenide.Selenide
Select radio field by value
Selenide - Class in com.codeborne.selenide
 
Selenide() - Constructor for class com.codeborne.selenide.Selenide
 
SelenideElement - Interface in com.codeborne.selenide
 
SelenideElementIterator - Class in com.codeborne.selenide.impl
 
SelenideElementIterator(Iterator<WebElement>) - Constructor for class com.codeborne.selenide.impl.SelenideElementIterator
 
SelenideElementListIterator - Class in com.codeborne.selenide.impl
 
SelenideElementListIterator(ListIterator<WebElement>) - Constructor for class com.codeborne.selenide.impl.SelenideElementListIterator
 
SelenideElementListProxy - Class in com.codeborne.selenide.impl
 
SelenideFieldDecorator - Class in com.codeborne.selenide.impl
 
SelenideFieldDecorator(SearchContext) - Constructor for class com.codeborne.selenide.impl.SelenideFieldDecorator
 
set(SelenideElement) - Method in class com.codeborne.selenide.impl.SelenideElementListIterator
 
setSelected(boolean) - Method in interface com.codeborne.selenide.SelenideElement
Set checkbox state to CHECKED or UNCHECKED.
setSelf(SelenideElement) - Method in class com.codeborne.selenide.ElementsContainer
 
setValue(String) - Method in interface com.codeborne.selenide.SelenideElement
Clear the text field, enter given text and trigger "change" event.
setWebDriver(WebDriver) - Method in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
setWebDriver(WebDriver) - Static method in class com.codeborne.selenide.WebDriverRunner
Tell Selenide use your provided WebDriver instance.
shortly(WebElement) - Static method in class com.codeborne.selenide.impl.Describe
 
should(Condition...) - Method in interface com.codeborne.selenide.SelenideElement
Checks that given element meets all of given conditions.
shouldBe(CollectionCondition...) - Method in class com.codeborne.selenide.ElementsCollection
$$(".error").shouldBe(empty)
shouldBe(Condition...) - Method in interface com.codeborne.selenide.SelenideElement
Synonym for #should.
shouldHave(CollectionCondition...) - Method in class com.codeborne.selenide.ElementsCollection
$$(".error").shouldHave(size(3)) $$(".error").shouldHave(texts("Error1", "Error2"))
shouldHave(Condition...) - Method in interface com.codeborne.selenide.SelenideElement
Synonym for #should.
shouldHaveSize(int) - Method in class com.codeborne.selenide.ElementsCollection
 
shouldNot(Condition...) - Method in interface com.codeborne.selenide.SelenideElement
Checks that given element does not meet given conditions.
shouldNotBe(Condition...) - Method in interface com.codeborne.selenide.SelenideElement
Synonym for #shouldNot.
shouldNotHave(Condition...) - Method in interface com.codeborne.selenide.SelenideElement
Synonym for #shouldNot.
size(int) - Static method in class com.codeborne.selenide.CollectionCondition
 
size() - Method in class com.codeborne.selenide.ElementsCollection
 
sleep(long) - Static method in class com.codeborne.selenide.Selenide
Not recommended.
source() - Static method in class com.codeborne.selenide.WebDriverRunner
 
startContext(String, String) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
startContext(String) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
startContext(String, String) - Static method in class com.codeborne.selenide.Screenshots
 
starting(Description) - Method in class com.codeborne.selenide.junit.ScreenShooter
 
startMaximized - Static variable in class com.codeborne.selenide.Configuration
The browser window is maximized when started.
succeeded(Description) - Method in class com.codeborne.selenide.junit.ScreenShooter
 
succeededTests() - Method in class com.codeborne.selenide.junit.ScreenShooter
 
switchTo() - Static method in class com.codeborne.selenide.Selenide
 

T

takeScreenShot(String, String) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
takeScreenShot() - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
takeScreenShot(String) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
Takes screenshot of current browser window.
takeScreenShot(String, String) - Static method in class com.codeborne.selenide.Screenshots
 
takeScreenShot(String) - Static method in class com.codeborne.selenide.Screenshots
 
takeScreenShot() - Static method in class com.codeborne.selenide.Screenshots
 
takeScreenShot(String, String) - Static method in class com.codeborne.selenide.WebDriverRunner
Deprecated.
Use com.codeborne.selenide.Screenshots#takeScreenShot(java.lang.String, java.lang.String)
takeScreenShot(String) - Static method in class com.codeborne.selenide.WebDriverRunner
Deprecated.
Use com.codeborne.selenide.Screenshots#takeScreenShot(java.lang.String)
takeScreenshotImage(TakesScreenshot, String) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
text(String) - Static method in class com.codeborne.selenide.Condition
$("h1").shouldHave(text("Hello\s*John"))
text - Static variable in class com.codeborne.selenide.impl.Html
 
text() - Method in interface com.codeborne.selenide.SelenideElement
Short form of getText()
textCaseSensitive(String) - Static method in class com.codeborne.selenide.Condition
$("h1").shouldHave(textCaseSensitive("Hello\s*John"))
texts(String...) - Static method in class com.codeborne.selenide.CollectionCondition
Checks that given collection has given texts (each collection element CONTAINS corresponding text)
Texts - Class in com.codeborne.selenide.collections
 
Texts(String...) - Constructor for class com.codeborne.selenide.collections.Texts
 
TextsMismatch - Error in com.codeborne.selenide.ex
 
TextsMismatch(WebElementsCollection, String[], String[], long) - Constructor for error com.codeborne.selenide.ex.TextsMismatch
 
THREAD_WEB_DRIVER - Variable in class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
timeout - Static variable in class com.codeborne.selenide.Configuration
 
timeout(long) - Static method in class com.codeborne.selenide.ex.ErrorMessages
 
timestamp() - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
title() - Static method in class com.codeborne.selenide.Selenide
 
toString() - Method in class com.codeborne.selenide.Condition
 
toString() - Method in class com.codeborne.selenide.ElementsCollection
 
toString() - Method in error com.codeborne.selenide.ex.DialogTextMismatch
 
toString() - Method in error com.codeborne.selenide.ex.ElementNotFound
 
toString() - Method in error com.codeborne.selenide.ex.ElementShould
 
toString() - Method in error com.codeborne.selenide.ex.ElementShouldNot
 
toString() - Method in error com.codeborne.selenide.ex.ListSizeMismatch
 
toString() - Method in error com.codeborne.selenide.ex.TextsMismatch
 
toString() - Method in class com.codeborne.selenide.impl.CollectionElement
 
toString() - Method in class com.codeborne.selenide.impl.Describe
 
toString() - Method in class com.codeborne.selenide.impl.WaitingSelenideElement
 
toString() - Method in class com.codeborne.selenide.impl.WebElementProxy
 
toString() - Method in interface com.codeborne.selenide.SelenideElement
Displays WebElement in human-readable format.
toWebElement() - Method in interface com.codeborne.selenide.SelenideElement
 
type(String) - Static method in class com.codeborne.selenide.Condition
$("#input").shouldHave(type("checkbox"))

U

UIAssertionError - Error in com.codeborne.selenide.ex
 
UIAssertionError(String) - Constructor for error com.codeborne.selenide.ex.UIAssertionError
 
UIAssertionError(String, long) - Constructor for error com.codeborne.selenide.ex.UIAssertionError
 
uploadFromClasspath(String) - Method in interface com.codeborne.selenide.SelenideElement
Upload file into file upload field.
url() - Static method in class com.codeborne.selenide.WebDriverRunner
 

V

val(String) - Method in interface com.codeborne.selenide.SelenideElement
Same as #setValue(java.lang.String)
val() - Method in interface com.codeborne.selenide.SelenideElement
Get the "value" attribute of the element
value(String) - Static method in class com.codeborne.selenide.Condition
$("#input").shouldHave(value("John"));
visible - Static variable in class com.codeborne.selenide.Condition
$("input").shouldBe(visible);

W

Wait() - Static method in class com.codeborne.selenide.Selenide
 
WaitingSelenideElement - Class in com.codeborne.selenide.impl
 
waitUntil(CollectionCondition, long) - Method in class com.codeborne.selenide.ElementsCollection
 
waitUntil(Condition, long) - Method in interface com.codeborne.selenide.SelenideElement
Wait until given element meets given conditions.
waitUntilPageIsLoaded() - Method in class com.codeborne.selenide.impl.Navigator
 
waitWhile(Condition, long) - Method in interface com.codeborne.selenide.SelenideElement
Wait until given element does not meet given conditions.
webdriverContainer - Static variable in class com.codeborne.selenide.WebDriverRunner
 
webdriverExceptionMessage(WebDriverException) - Method in class com.codeborne.selenide.impl.Cleanup
 
webdriverExceptionMessage(String) - Method in class com.codeborne.selenide.impl.Cleanup
 
WebDriverProvider - Interface in com.codeborne.selenide
To customize WebDriver creation one can use any of the alternatives: Call method WebDriverRunner.setWebDriver(WebDriver) explicitly.
WebDriverRunner - Class in com.codeborne.selenide
 
WebDriverRunner() - Constructor for class com.codeborne.selenide.WebDriverRunner
 
WebDriverThreadLocalContainer - Class in com.codeborne.selenide.impl
 
WebDriverThreadLocalContainer() - Constructor for class com.codeborne.selenide.impl.WebDriverThreadLocalContainer
 
WebElementProxy - Class in com.codeborne.selenide.impl
 
WebElementsCollection - Interface in com.codeborne.selenide.impl
 
WebElementsCollectionWrapper - Class in com.codeborne.selenide.impl
 
WebElementsCollectionWrapper(Collection<? extends WebElement>) - Constructor for class com.codeborne.selenide.impl.WebElementsCollectionWrapper
 
withText(String) - Static method in class com.codeborne.selenide.Selectors
Find element CONTAINING given text (as a substring) NB! It seems that Selenium WebDriver does not support i18n characters in XPath :(
wrap(RuntimeException) - Method in class com.codeborne.selenide.impl.Cleanup
 
wrap(WebElementsCollection, int) - Static method in class com.codeborne.selenide.impl.CollectionElement
 
wrap(ElementLocator) - Static method in class com.codeborne.selenide.impl.SelenideElementListProxy
 
wrap(By) - Static method in class com.codeborne.selenide.impl.WaitingSelenideElement
 
wrap(SearchContext, By, int) - Static method in class com.codeborne.selenide.impl.WaitingSelenideElement
 
wrap(WebElement) - Static method in class com.codeborne.selenide.impl.WebElementProxy
 
writeToFile(String, File) - Method in class com.codeborne.selenide.impl.ScreenShotLaboratory
 
$ A B C D E F G H I J K L M N O P Q R S T U V W