19.1 WebDriver browser methods
19.1.1| get
Syntex get (java.lang.String URL)
parameter URL – URL of the site to navigate to
returns void
19.1.2| getCurrentUrl
Returns the current URL of the browser page
Syntex java.lang.String getCurrentUrl
parameter
returns URL of the page currently loaded in the
browser
19.1.3| getTitle
Returns the title of the current web page
Syntex java.lang.String getTitle
parameter
returns the title of the current web page with
leading and trailing whitespace stripped or
null if one is not already set.
19.1.4| findElements
Syntex java.util.List<WebElement> findElements(By by)
parameter by – the locating mechanism to use
returns the list of all matched elements or an empty
list if no match is found.
Find all-day elements of a calendar.
19.1.5| findElement
Syntex WebElement findElement(By by)
parameter by – the locating mechanism to use
returns the first matched elements else throws
NoSuchElementException if no matched element
found
Select an element from the calendar year drop-down.