public class Get extends Object
Constructor and Description |
---|
Get(org.openqa.selenium.WebDriver driver,
Element element) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
allAttributes()
Retrieves all attributes of the element.
|
String |
attribute(String attribute)
Retrieves the provided attribute of the element.
|
String |
css(String attribute)
Retrieves the provided css attribute of the element.
|
Object |
eval(String javascriptFunction)
Executes a provided script on the element, and returns the output of that
script.
|
int |
matchCount()
Retrieves the number of elements on the page, that match this element's
description
|
int |
numOfSelectOptions()
Retrieves the number of select options in the element.
|
int |
numOfTableColumns()
Retrieves the number of columns in the element.
|
int |
numOfTableRows()
Retrieves the number of rows in the element.
|
String |
selectedOption()
Retrieves the selected option for the element.
|
String[] |
selectedOptions()
Retrieves the selected options for the element.
|
String |
selectedValue()
Retrieves the selected value for the element.
|
String[] |
selectedValues()
Retrieves the selected values for the element.
|
String[] |
selectOptions()
Retrieves the select options in the element.
|
String[] |
selectValues()
Retrieves the select options in the element.
|
org.openqa.selenium.WebElement |
tableCell(int rowNum,
int colNum)
Retrieves a specific cell from the element.
|
List<org.openqa.selenium.WebElement> |
tableColumn(int colNum)
Retrieves a specific column from the element.
|
List<List<org.openqa.selenium.WebElement>> |
tableColumns()
Retrieves the columns in the element.
|
List<org.openqa.selenium.WebElement> |
tableRow(int rowNum)
Retrieves a specific row from the element.
|
List<org.openqa.selenium.WebElement> |
tableRows()
Retrieves the rows in the element.
|
String |
text()
Retrieves the text of the element.
|
String |
value()
Retrieves the value of the element.
|
public Get(org.openqa.selenium.WebDriver driver, Element element)
public int matchCount()
public String selectedOption()
public String[] selectedOptions()
public String selectedValue()
public String[] selectedValues()
public String text()
public String value()
public String css(String attribute)
attribute
- - the css attribute to be returnedpublic String attribute(String attribute)
attribute
- - the css attribute to be returnedpublic Map<String,String> allAttributes()
public Object eval(String javascriptFunction)
javascriptFunction
- - the javascript function that is going to be executedpublic int numOfSelectOptions()
public String[] selectOptions()
public String[] selectValues()
public int numOfTableRows()
public List<org.openqa.selenium.WebElement> tableRows()
public int numOfTableColumns()
public List<List<org.openqa.selenium.WebElement>> tableColumns()
public List<org.openqa.selenium.WebElement> tableRow(int rowNum)
rowNum
- - the row number of the table to obtain - note, row numbering
starts at 1, NOT 0public List<org.openqa.selenium.WebElement> tableColumn(int colNum)
colNum
- - the column number of the table to obtain - note, column
numbering starts at 1, NOT 0public org.openqa.selenium.WebElement tableCell(int rowNum, int colNum)
rowNum
- - the number of the row in the table - note, row numbering
starts at 1, NOT 0colNum
- - the number of the column in the table - note, column
numbering starts at 1, NOT 0Copyright © 2017. All rights reserved.