com.appfoundation.automation.util
Class XPathUtils

java.lang.Object
  extended by com.appfoundation.automation.util.XPathUtils

public class XPathUtils
extends java.lang.Object

The purpose of this utility class is to handle the details of generating XPath for common operations when working with HTML 5/Ext JS based components.

Author:
john.valentino

Constructor Summary
XPathUtils()
           
 
Method Summary
private static java.lang.String buttonByText(java.lang.String text)
          Returns the base XPath used for getting a button by its text in the format of button[contains(.,'some text')]
private static java.lang.String checkboxByName(java.lang.String name)
          Returns the base XPath for finding an input type of checkbox by its name
private static java.lang.String checkboxByValue(java.lang.String value)
          Returns the base XPath for finding an HTML input of type checkbox by its value
private static java.lang.String divById(java.lang.String id)
          Generates the XPath for getting a div by id in the format of div[@id='someId']
private static java.lang.String extJsCheckboxByText(java.lang.String text)
          Returns the base XPath for getting an ExtJS checkbox by its text
private static java.lang.String extJsColorPickerLinkByValue(java.lang.String value)
          Returns the base XPath for getting an ExtJS color picker link by its HEX color code value, for example 00FF00.
private static java.lang.String extJsComboBoxButtonByName(java.lang.String name)
          Returns the base XPath for getting the button in an ExtJS combo box by its name.
private static java.lang.String extJsComboBoxButtonByValue(java.lang.String value)
          Returns the base XPath for getting the button in an ExtJS combo box.
private static java.lang.String extJsComboItemByRow(int row)
          Returns the base XPath for getting the menu item in an ExtJS combo box by its row
private static java.lang.String extJsComboItemByText(java.lang.String text)
          Returns the base XPath for getting an ExtJS combo box item by its text
private static java.lang.String extJsDateButtonByName(java.lang.String name)
          Returns the base XPath for getting an ExtJS Date field button by its name
private static java.lang.String extJsDateButtonByValue(java.lang.String value)
          Returns the base XPath for getting an ExtJS date field button by its value
private static java.lang.String extJsFilefieldByButtonText(java.lang.String text)
          Returns the base XPath for getting an ExtJS file input field by its button's text
private static java.lang.String extJsGrid()
          Returns the base XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel in the format of table[contains(@class,'x-grid-table')]
private static java.lang.String extJsGrid(java.lang.String text)
          Returns the base XPath for getting an ExtJS grid base component by some text that it contains in the format of table[contains(@class,'x-grid-table') and contains(.,'some text')]
private static java.lang.String extJsGridRow(int row)
          Returns the base XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by 1-based index, in the format of table[contains(@class,'x-grid-table')]/descendant::tr[row_index]
private static java.lang.String extJsGridRow(java.lang.String text)
          Returns the base XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by its text content, in the format of table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]
private static java.lang.String extJsGridRowExpansionNode(int row)
          Returns the base XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point, in the format of table[contains(@class,'x-grid-table')]/descendant::tr[row_index]/descendant::img[contains(@class,'x-tree-expander')]
private static java.lang.String extJsGridRowExpansionNode(java.lang.String text)
          Returns the base XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point, in the format of table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]/descendant::img[contains(@class,'x-tree-expander')]
private static java.lang.String extJsHtmlEditor()
          Returns the base XPath for getting an ExtJS html editor component
private static java.lang.String extJsHtmlEditorById(java.lang.String id)
          Returns the XPath for getting an ExtJS HTML editor by id
private static java.lang.String extJsMessageBox()
          Returns the base XPath for getting the message box div in ExtJS in the format of *[starts-with(@id, 'messagebox')
private static java.lang.String extJsRadio(java.lang.String text)
          Returns the base XPat for getting an ExtJS radio button by its text
private static java.lang.String extJsSlider()
          Returns the base XPath for getting an ExtJS slider
private static java.lang.String extJsSplitButtonMenuItem(java.lang.String text)
          Returns the base XPath for getting an ExtJS Split Button's menu item by that menu item's text in the format of div[starts-with(@id, 'menu')]/descendant::a/span[text()='some text']
static java.lang.String findButtonById(java.lang.String id)
          Generates the xpath for getting a button by its id in the format of //button[@id='someId']
static java.lang.String findButtonByText(java.lang.String text)
          Generates the XPath to get the button by the given text relative to the root of the DOM in the format of //button[contains(.,'some text')]
static java.lang.String findButtonByTextInDiv(java.lang.String buttonText, java.lang.String divId)
          Generates the XPath for getting an input relative to the div by ID in which it resides in the format of //div[@id='someId']/descendant::button[contains(.,'some text')]
static java.lang.String findCheckboxByName(java.lang.String name)
          Returns the XPath for finding an input type of checkbox by its name
static java.lang.String findCheckboxByNameInDiv(java.lang.String name, java.lang.String divId)
          Returns the XPath for finding an input type of checkbox by its name in a div
static java.lang.String findCheckboxByValue(java.lang.String value)
          Returns the XPath for finding an HTML input of type checkbox by its value
static java.lang.String findCheckboxByValueInDiv(java.lang.String value, java.lang.String divId)
          Returns the XPath for finding an HTML input of type checkbox by its value in a div
static java.lang.String findDivById(java.lang.String id)
          Returns the XPath for getting a div by id
static java.lang.String findDivByText(java.lang.String text)
          Returns the XPath needed for getting a div that contains the given text (returns the first result), in the format of (//div[contains(.,"some text")])[1]
static java.lang.String findExtJsCheckboxByText(java.lang.String text)
          Returns the XPath for finding an ExtJS checkbox by its text
static java.lang.String findExtJsCheckboxByTextInDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for finding an ExtJS checkbox by its text in a div
static java.lang.String findExtJsColorPickerLinkByValue(java.lang.String value)
          Returns the XPath for getting an ExtJS color picker link by its HEX color code value, for example 00FF00.
static java.lang.String findExtJsColorPickerLinkByValueInDiv(java.lang.String value, java.lang.String divId)
          Returns the XPath for getting an ExtJS color picker link by its HEX color code value in a div, for example 00FF00.
static java.lang.String findExtJsComboBoxButtonByName(java.lang.String name)
          Returns the XPath for finding the button in an ExtJS combo box by its name
static java.lang.String findExtJsComboBoxButtonByNameInDiv(java.lang.String name, java.lang.String divId)
          Returns the XPath for finding the button in an ExtJS combo box by its name in a div
static java.lang.String findExtJsComboBoxButtonByValue(java.lang.String value)
          Returns the XPath for locating the button in an ExtJs combo box by its value
static java.lang.String findExtJsComboBoxButtonByValueInDiv(java.lang.String value, java.lang.String divId)
          Returns the XPath for locating the button in an ExtJS combo by its value inside of a div
static java.lang.String findExtJsComboItemByRow(int row)
          Returns the XPAth for getting the item in an ExtJS combo box by row
static java.lang.String findExtJsComboItemByText(java.lang.String text)
          Returns the XPath for getting the item in an ExtJS combo box by its text
static java.lang.String findExtJsDateButtonByName(java.lang.String name)
          Returns the XPath for getting an ExtJS Date field button by its name
static java.lang.String findExtJsDateButtonByNameInDiv(java.lang.String name, java.lang.String divId)
          Returns the XPath for getting an ExtJS Date field button by its name in a div
static java.lang.String findExtJsDateButtonByValue(java.lang.String value)
          Returns the XPath for getting an ExtJS date field button by its value
static java.lang.String findExtJsDateButtonByValueInDiv(java.lang.String value, java.lang.String divId)
          Returns the XPath for getting an ExtJS date field button by its value in a div
static java.lang.String findExtJsFilefieldByButtonText(java.lang.String text)
          Returns the XPath for getting an ExtJS file input field by its button's text
static java.lang.String findExtJsFilefieldByButtonTextInDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for getting an ExtJS file input field by its button's text in a div
static java.lang.String findExtJsGrid()
          Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel in the format of //table[contains(@class,'x-grid-table')]
static java.lang.String findExtJsGridByText(java.lang.String text)
          Return the XPath for getting an ExtJS grid by its text, in the format of //table[contains(@class,'x-grid-table') and contains(.,'')]
static java.lang.String findExtJsGridByTextInDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for getting an ExtJS grid based component by some text that in contains, inside of some div
static java.lang.String findExtJsGridInDiv(java.lang.String divId)
          Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, relative to the specified div in the format of //div[@id='someId']/descendant::table[contains(@class,'x-grid-table')]
static java.lang.String findExtJsGridRow(int row)
          Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by 1-based index, in the format of //table[contains(@class,'x-grid-table')]/descendant::tr[row_index]
static java.lang.String findExtJsGridRow(java.lang.String text)
          Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by its text content, in the format of table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]
static java.lang.String findExtJsGridRowExpansionNode(int row)
          Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point, in the format of //table[contains(@class,'x-grid-table')]/descendant::tr[row_index]/descendant::img[contains(@class,'x-tree-expander')]
static java.lang.String findExtJsGridRowExpansionNode(java.lang.String text)
          Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point, in the format of //table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]/descendant::img[contains(@class,'x-tree-expander')]
static java.lang.String findExtJsGridRowExpansionNodeInDiv(int row, java.lang.String divId)
          Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point within a parent div, in the format of //div[@id='someId']/descendant::table[contains(@class,'x-grid-table')]/descendant::tr[row_index]/descendant::img[contains(@class,'x-tree-expander')]
static java.lang.String findExtJsGridRowExpansionNodeInDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point within a parent div, in the format of //div[@id='someId']/descendant::table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]/descendant::img[contains(@class,'x-tree-expander')]
static java.lang.String findExtJsGridRowInDiv(int row, java.lang.String divId)
          Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by 1-based index relative to the specified div, in the format of //div[@id='someId']/descendant::table[contains(@class,'x-grid-table')]/descendant::tr[row_index]
static java.lang.String findExtJsGridRowInDiv(java.lang.String rowText, java.lang.String divId)
          Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by 1-based index relative to the specified div, in the format of //div[@id='someId']/descendant::table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]
static java.lang.String findExtJsHtmlEditor()
          Returns the XPath for getting an ExtJS html editor component
static java.lang.String findExtJsHtmlEditorById(java.lang.String id)
          Returns the XPath for getting an ExtJS html editor by id
static java.lang.String findExtJsHtmlEditorInDiv(java.lang.String divId)
          Returns the XPath for getting an ExtJS html editor component in a div
static java.lang.String findExtJsMessageBox()
          Returns the XPath relative to the root DOM for getting an ExtJS message box in the format of //*[starts-with(@id, 'messagebox')
static java.lang.String findExtJsMessageBoxButtonByText(java.lang.String text)
          Returns the XPath relative to the root of the DOM for getting an ExtJS message box button by its text in the format of //*[starts-with(@id, 'messagebox')/descendant::button[contains(.,'some text')]
static java.lang.String findExtJsRadioByText(java.lang.String text)
          Returns the XPath for finding an ExtJS Radio button by its text
static java.lang.String findExtJsRadioByTextInDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for finding an ExtJS Radio button by its text in a div
static java.lang.String findExtJsSlider()
          Returns the XPath for getting an ExtJS slider
static java.lang.String findExtJsSliderInDiv(java.lang.String divId)
           
static java.lang.String findExtJsSplitButtonMenuItem(java.lang.String text)
          Returns the XPath for getting an ExtJS Split Button's menu item by that menu item's text in the format of //div[starts-with(@id, 'menu')]/descendant::a/span[text()='some text']
static java.lang.String findInputById(java.lang.String id)
          Generates the xpath for getting an input by id in the format of //input[@id='myId']
static java.lang.String findInputByName(java.lang.String name)
          Generates the xpath for getting an input by name relative to the root of the DOM in the format of //input[@name='myName']
static java.lang.String findInputByNameInDiv(java.lang.String inputName, java.lang.String divId)
          Generates the XPath for getting an input by name relative to the div by ID in which it resides in the format of //div[@id='someId']/descendant::input[@name='myName']
static java.lang.String findInputByText(java.lang.String text)
          Generates the xpath for getting an input by its text value in the format of //input[contains(@value,'foobar')]
static java.lang.String findInputByTextInDiv(java.lang.String text, java.lang.String divId)
          Generates the xpath for getting an input by its text value inside of a div, in the format of //div[@id='someId']/descendant::input[contains(@value,'foobar')]
static java.lang.String findLinkByText(java.lang.String text)
          Returns the XPath for getting an HTML link by its text content
static java.lang.String findLinkByTextInDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for getting an HTML link by its text content in a div
static java.lang.String findOptionByRow(int row)
          Returns the XPath for getting an option by its row (occurrence)
static java.lang.String findOptionByRowInSelect(int row, java.lang.String name)
          Returns the XPath for getting an option by its row in a select by name
static java.lang.String findOptionByText(java.lang.String text)
          Returns the XPath for getting an option by its text
static java.lang.String findOptionByTextInSelect(java.lang.String text, java.lang.String name)
          Returns the XPath for getting an option bu its text inside a select by name
static java.lang.String findOptionByValue(java.lang.String value)
          Returns the XPath for getting an HTML option by the given value
static java.lang.String findOptionByValueInSelect(java.lang.String value, java.lang.String name)
          Returns the XPath for getting an option by value in the select by name
static java.lang.String findRadioByValue(java.lang.String value)
          Returns the XPath for getting an HTML radio input by its value
static java.lang.String findRadioByValueInDiv(java.lang.String value, java.lang.String divId)
          Returns the XPath for getting an HTML radio input by its value in a div
static java.lang.String findSelectByName(java.lang.String name)
          Returns the XPath for getting an HTML select component by its name
static java.lang.String findSelectByNameInDiv(java.lang.String name, java.lang.String divId)
          Returns the XPath for getting an HTML select component by its name in a div
static java.lang.String findTable()
          Returns the XPath for getting a table
static java.lang.String findTableById(java.lang.String id)
          Returns the XPath for getting a table by its ID
static java.lang.String findTableByText(java.lang.String text)
          Returns the XPath for getting a table by its text contents in the format of //table[contains(.,'some text')]
static java.lang.String findTableByTextInDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for getting a table in a div by its text content
static java.lang.String findTableInDiv(java.lang.String divId)
          Returns the XPath for getting a table in the given div
static java.lang.String findTableRow(int row)
          Returns the base XPath for getting a table (also gridpanel) row by its 1-based index.
static java.lang.String findTableRow(java.lang.String text)
          Generates the XPath used for getting a table row by its text content in the format of //table/descendant::tr[contains(.,'Lisa')]
static java.lang.String findTableRowColumn(int row, int column)
          Returns the XPath for getting a table row's column by its 1-based index from the root of the DOM
static java.lang.String findTableRowColumn(java.lang.String text)
          Return the XPath for getting a table's td element based on its text content
static java.lang.String findTableRowColumnInDiv(int row, int column, java.lang.String divId)
          Returns the base XPath for getting a table row's column by its 1-based index in the given div
static java.lang.String findTableRowColumnInDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for getting a table's td element by its contained text
static java.lang.String findTableRowInDiv(int row, java.lang.String divId)
          Returns the base XPath for getting a table (also gridpanel) row by its 1-based index.
static java.lang.String findTableRowinDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for getting a table row by its text content in the div of the given ID
static java.lang.String findTextAreaById(java.lang.String id)
          Returns the XPath for getting a text area by its ID
static java.lang.String findTextAreaByName(java.lang.String name)
          Returns the XPath for getting a textarea by name
static java.lang.String findTextAreaByNameInDiv(java.lang.String name, java.lang.String divId)
          Returns the XPath for getting a textarea by name in a div
static java.lang.String findTextAreaByText(java.lang.String text)
          Returns the XPath for getting a textarea by its text
static java.lang.String findTextAreaByTextInDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for getting a textarea by its text in a div
static java.lang.String findTouchButtonByOccurrence(int index)
          Returns the XPath for getting a sencha touch button by its 1 based occurrence in the page
static java.lang.String findTouchButtonByOccurrenceInDiv(int index, java.lang.String divId)
          Returns the XPath for getting a sencha touch button by its 1 based occurrence in the specified div
static java.lang.String findTouchButtonByText(java.lang.String text)
          Returns the XPath for getting a Sencha Touch button
static java.lang.String findTouchButtonByTextInDiv(java.lang.String text, java.lang.String divId)
          Returns the XPath for getting a Sencha Touch button by text in a div
static java.lang.String findTouchCheckboxById(java.lang.String id)
          Returns the XPath for getting a sencha touch checkbox by its id
static java.lang.String findTouchCheckboxByName(java.lang.String name)
          Returns the XPath for getting a sencha touch checkbox by its name
static java.lang.String findTouchCheckboxByNameInDiv(java.lang.String name, java.lang.String divId)
          Returns the XPath for getting a sencha touch checkbox by its name in the given div
static java.lang.String findTouchDateButtonById(java.lang.String id)
          Returns the XPath for getting a sencha touch date button by its id
static java.lang.String findTouchDateButtonByName(java.lang.String name)
          Returns the XPath for getting a sencha touch date button by its name
static java.lang.String findTouchDateButtonByNameInDiv(java.lang.String name, java.lang.String divId)
          Returns the XPath for getting a sencha touch date button by its name in the given div
static java.lang.String findTouchListItemByText(java.lang.String text)
          Generates the XPath for getting a sencha touch list item containing the given text
static java.lang.String findTouchListItemByTextInDiv(java.lang.String text, java.lang.String divId)
          Generates the XPath for getting a sencha touch list item containing the given text in the given div
static java.lang.String findTouchRadioByOccurrence(int index)
          Returns the XPath for getting a sencha touch radio button by the given 1-based occurrence
static java.lang.String findTouchRadioByOccurrenceInDiv(int index, java.lang.String divId)
          Returns the XPath for getting a sencha touch radio button inside the div of the given id
static java.lang.String findTouchSelectById(java.lang.String id)
          Returns the XPath for getting a sencha touch select field by its id
static java.lang.String findTouchSelectByName(java.lang.String name)
          Returns the XPath for getting a sencha touch select field by its name
static java.lang.String findTouchSelectByNameInDiv(java.lang.String name, java.lang.String divId)
          Returns the XPath for getting a sencha touch select field by its name in the given div
static java.lang.String findTouchSliderByOccurrence(int index)
          Generates the XPath for getting a sencha touch slider by its 1-based occurrence in the page
static java.lang.String findTouchSliderByOccurrenceInDiv(int index, java.lang.String divId)
          Generats the XPath for geting a sencha touch slider by its 1-based occurrence in the div of the given ID
static java.lang.String findTouchSpinnerDownByDefault()
          Returns the XPath for getting a sencha touch spinner down button, assuming its the only one in the page
static java.lang.String findTouchSpinnerDownByDefaultInDiv(java.lang.String divId)
          Returns the XPath for getting a sencha touch spinner down button inside the given div
static java.lang.String findTouchSpinnerDownByOccurrence(int index)
          Returns the Xpath for getting a sencha touch spinner down button by its 1-based occurrence in the page
static java.lang.String findTouchSpinnerDownByOccurrenceInDiv(int index, java.lang.String divId)
          Returns the XPath for getting a sencha touch spinner down button inside the div of the given id
static java.lang.String findTouchSpinnerUpByDefault()
          Returns the XPath for getting a sencha touch spinner up button, assuming its the only one in the page
static java.lang.String findTouchSpinnerUpByDefaultInDiv(java.lang.String divId)
          Returns the XPath for getting a sencha touch spinner up button inside the given div
static java.lang.String findTouchSpinnerUpByOccurrence(int index)
          Returns the Xpath for getting a sencha touch spinner up button by its 1-based occurrence in the page
static java.lang.String findTouchSpinnerUpByOccurrenceInDiv(int index, java.lang.String divId)
          Returns the XPath for getting a sencha touch spinner up button inside the div of the given id
private static java.lang.String inputByName(java.lang.String name)
          Generates the XPath for getting an input by name in the format of input[@name='myName']
private static java.lang.String linkByText(java.lang.String text)
          Returns the base XPath for getting an HTML link by its text content
private static java.lang.String optionByText(java.lang.String text)
          Returns the base XPath for getting an option by its text
private static java.lang.String optionByValue(java.lang.String value)
          Returns the base XPath for getting an HTML option component by its value
private static java.lang.String radioByValue(java.lang.String value)
          Returns the base XPath for getting an HTML radio input by its value
private static java.lang.String selectByName(java.lang.String name)
          Returns the base XPath for getting an HTML select component by its name
private static java.lang.String tableRow(int row)
          Returns the base XPath for getting a table (also gridpanel) row by its 1-based index format of table/descendant::tr[row].
private static java.lang.String tableRow(java.lang.String text)
          Returns the base xpath for getting a table row bu its text contents
private static java.lang.String tableRowColumn(int row, int column)
          Returns the base XPath for getting a table row's column by its 1-based index in the format of table/descendant::tr[row]/td[column]
private static java.lang.String tableRowColumn(java.lang.String text)
          Returns the base XPath for locating a td element within a table that contains the given text in the format of table/descendant::tr[contains(.,'text')]
private static java.lang.String textAreaById(java.lang.String id)
          Returns the base XPath for getting a textarea by its ID
private static java.lang.String textAreaByName(java.lang.String name)
          Returns the base XPath for getting a textarea by name
private static java.lang.String textAreaByText(java.lang.String text)
          Returns the base XPath for getting a textarea by its text
private static java.lang.String touchButtonByText(java.lang.String text)
          Returns the base XPath for getting a Sencha Touch button
private static java.lang.String touchListItemByText(java.lang.String text)
           
private static java.lang.String touchradio()
           
private static java.lang.String touchSlider()
           
private static java.lang.String touchSpinnerDown()
           
private static java.lang.String touchSpinnerUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathUtils

public XPathUtils()
Method Detail

inputByName

private static java.lang.String inputByName(java.lang.String name)
Generates the XPath for getting an input by name in the format of input[@name='myName']

Parameters:
name -
Returns:

divById

private static java.lang.String divById(java.lang.String id)
Generates the XPath for getting a div by id in the format of div[@id='someId']

Parameters:
id -
Returns:

buttonByText

private static java.lang.String buttonByText(java.lang.String text)
Returns the base XPath used for getting a button by its text in the format of button[contains(.,'some text')]

Parameters:
text -
Returns:

extJsSplitButtonMenuItem

private static java.lang.String extJsSplitButtonMenuItem(java.lang.String text)
Returns the base XPath for getting an ExtJS Split Button's menu item by that menu item's text in the format of div[starts-with(@id, 'menu')]/descendant::a/span[text()='some text']

Parameters:
text -
Returns:

extJsMessageBox

private static java.lang.String extJsMessageBox()
Returns the base XPath for getting the message box div in ExtJS in the format of *[starts-with(@id, 'messagebox')

Returns:

tableRow

private static java.lang.String tableRow(int row)
Returns the base XPath for getting a table (also gridpanel) row by its 1-based index format of table/descendant::tr[row]. Note that if a header is present row 1 is the header

Parameters:
row -
Returns:

tableRow

private static java.lang.String tableRow(java.lang.String text)
Returns the base xpath for getting a table row bu its text contents

Parameters:
text -
Returns:

tableRowColumn

private static java.lang.String tableRowColumn(int row,
                                               int column)
Returns the base XPath for getting a table row's column by its 1-based index in the format of table/descendant::tr[row]/td[column]

Parameters:
row -
column -
Returns:

tableRowColumn

private static java.lang.String tableRowColumn(java.lang.String text)
Returns the base XPath for locating a td element within a table that contains the given text in the format of table/descendant::tr[contains(.,'text')]

Parameters:
text -
Returns:

extJsGrid

private static java.lang.String extJsGrid()
Returns the base XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel in the format of table[contains(@class,'x-grid-table')]

Returns:

extJsGrid

private static java.lang.String extJsGrid(java.lang.String text)
Returns the base XPath for getting an ExtJS grid base component by some text that it contains in the format of table[contains(@class,'x-grid-table') and contains(.,'some text')]

Parameters:
text -
Returns:

extJsGridRow

private static java.lang.String extJsGridRow(int row)
Returns the base XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by 1-based index, in the format of table[contains(@class,'x-grid-table')]/descendant::tr[row_index]

Parameters:
row -
Returns:

extJsGridRow

private static java.lang.String extJsGridRow(java.lang.String text)
Returns the base XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by its text content, in the format of table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]

Parameters:
text -
Returns:

extJsGridRowExpansionNode

private static java.lang.String extJsGridRowExpansionNode(int row)
Returns the base XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point, in the format of table[contains(@class,'x-grid-table')]/descendant::tr[row_index]/descendant::img[contains(@class,'x-tree-expander')]

Parameters:
row -
Returns:

extJsGridRowExpansionNode

private static java.lang.String extJsGridRowExpansionNode(java.lang.String text)
Returns the base XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point, in the format of table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]/descendant::img[contains(@class,'x-tree-expander')]

Parameters:
text -
Returns:

extJsComboBoxButtonByValue

private static java.lang.String extJsComboBoxButtonByValue(java.lang.String value)
Returns the base XPath for getting the button in an ExtJS combo box.

Parameters:
value -
Returns:

extJsComboBoxButtonByName

private static java.lang.String extJsComboBoxButtonByName(java.lang.String name)
Returns the base XPath for getting the button in an ExtJS combo box by its name.

Parameters:
name -
Returns:

extJsComboItemByRow

private static java.lang.String extJsComboItemByRow(int row)
Returns the base XPath for getting the menu item in an ExtJS combo box by its row

Parameters:
row -
Returns:

extJsComboItemByText

private static java.lang.String extJsComboItemByText(java.lang.String text)
Returns the base XPath for getting an ExtJS combo box item by its text

Parameters:
text -
Returns:

selectByName

private static java.lang.String selectByName(java.lang.String name)
Returns the base XPath for getting an HTML select component by its name

Parameters:
name -
Returns:

optionByValue

private static java.lang.String optionByValue(java.lang.String value)
Returns the base XPath for getting an HTML option component by its value

Parameters:
value -
Returns:

optionByText

private static java.lang.String optionByText(java.lang.String text)
Returns the base XPath for getting an option by its text

Parameters:
text -
Returns:

extJsRadio

private static java.lang.String extJsRadio(java.lang.String text)
Returns the base XPat for getting an ExtJS radio button by its text

Parameters:
text -
Returns:

radioByValue

private static java.lang.String radioByValue(java.lang.String value)
Returns the base XPath for getting an HTML radio input by its value

Parameters:
value -
Returns:

extJsCheckboxByText

private static java.lang.String extJsCheckboxByText(java.lang.String text)
Returns the base XPath for getting an ExtJS checkbox by its text

Parameters:
text -
Returns:

checkboxByName

private static java.lang.String checkboxByName(java.lang.String name)
Returns the base XPath for finding an input type of checkbox by its name

Parameters:
name -
Returns:

checkboxByValue

private static java.lang.String checkboxByValue(java.lang.String value)
Returns the base XPath for finding an HTML input of type checkbox by its value

Parameters:
value -
Returns:

extJsDateButtonByName

private static java.lang.String extJsDateButtonByName(java.lang.String name)
Returns the base XPath for getting an ExtJS Date field button by its name

Parameters:
name -
Returns:

extJsDateButtonByValue

private static java.lang.String extJsDateButtonByValue(java.lang.String value)
Returns the base XPath for getting an ExtJS date field button by its value

Parameters:
value -
Returns:

linkByText

private static java.lang.String linkByText(java.lang.String text)
Returns the base XPath for getting an HTML link by its text content

Parameters:
text -
Returns:

extJsFilefieldByButtonText

private static java.lang.String extJsFilefieldByButtonText(java.lang.String text)
Returns the base XPath for getting an ExtJS file input field by its button's text

Parameters:
text -
Returns:

extJsHtmlEditor

private static java.lang.String extJsHtmlEditor()
Returns the base XPath for getting an ExtJS html editor component

Returns:

extJsHtmlEditorById

private static java.lang.String extJsHtmlEditorById(java.lang.String id)
Returns the XPath for getting an ExtJS HTML editor by id

Parameters:
id -
Returns:

textAreaByName

private static java.lang.String textAreaByName(java.lang.String name)
Returns the base XPath for getting a textarea by name

Parameters:
name -
Returns:

textAreaById

private static java.lang.String textAreaById(java.lang.String id)
Returns the base XPath for getting a textarea by its ID

Parameters:
id -
Returns:

textAreaByText

private static java.lang.String textAreaByText(java.lang.String text)
Returns the base XPath for getting a textarea by its text

Parameters:
text -
Returns:

extJsColorPickerLinkByValue

private static java.lang.String extJsColorPickerLinkByValue(java.lang.String value)
Returns the base XPath for getting an ExtJS color picker link by its HEX color code value, for example 00FF00.

Parameters:
value -
Returns:

extJsSlider

private static java.lang.String extJsSlider()
Returns the base XPath for getting an ExtJS slider

Returns:

touchButtonByText

private static java.lang.String touchButtonByText(java.lang.String text)
Returns the base XPath for getting a Sencha Touch button

Parameters:
text -
Returns:

touchSpinnerUp

private static java.lang.String touchSpinnerUp()

touchSpinnerDown

private static java.lang.String touchSpinnerDown()

touchradio

private static java.lang.String touchradio()

touchListItemByText

private static java.lang.String touchListItemByText(java.lang.String text)

touchSlider

private static java.lang.String touchSlider()

findInputByName

public static java.lang.String findInputByName(java.lang.String name)
Generates the xpath for getting an input by name relative to the root of the DOM in the format of //input[@name='myName']

Parameters:
name -
Returns:

findInputById

public static java.lang.String findInputById(java.lang.String id)
Generates the xpath for getting an input by id in the format of //input[@id='myId']

Parameters:
id -
Returns:

findInputByText

public static java.lang.String findInputByText(java.lang.String text)
Generates the xpath for getting an input by its text value in the format of //input[contains(@value,'foobar')]

Parameters:
text -
Returns:

findInputByTextInDiv

public static java.lang.String findInputByTextInDiv(java.lang.String text,
                                                    java.lang.String divId)
Generates the xpath for getting an input by its text value inside of a div, in the format of //div[@id='someId']/descendant::input[contains(@value,'foobar')]

Parameters:
text -
divId -
Returns:

findInputByNameInDiv

public static java.lang.String findInputByNameInDiv(java.lang.String inputName,
                                                    java.lang.String divId)
Generates the XPath for getting an input by name relative to the div by ID in which it resides in the format of //div[@id='someId']/descendant::input[@name='myName']

Parameters:
inputName -
divId -
Returns:

findButtonByText

public static java.lang.String findButtonByText(java.lang.String text)
Generates the XPath to get the button by the given text relative to the root of the DOM in the format of //button[contains(.,'some text')]

Parameters:
text -
Returns:

findButtonById

public static java.lang.String findButtonById(java.lang.String id)
Generates the xpath for getting a button by its id in the format of //button[@id='someId']

Parameters:
id -
Returns:

findButtonByTextInDiv

public static java.lang.String findButtonByTextInDiv(java.lang.String buttonText,
                                                     java.lang.String divId)
Generates the XPath for getting an input relative to the div by ID in which it resides in the format of //div[@id='someId']/descendant::button[contains(.,'some text')]

Parameters:
buttonText -
divId -
Returns:

findExtJsSplitButtonMenuItem

public static java.lang.String findExtJsSplitButtonMenuItem(java.lang.String text)
Returns the XPath for getting an ExtJS Split Button's menu item by that menu item's text in the format of //div[starts-with(@id, 'menu')]/descendant::a/span[text()='some text']

Parameters:
text -
Returns:

findExtJsMessageBox

public static java.lang.String findExtJsMessageBox()
Returns the XPath relative to the root DOM for getting an ExtJS message box in the format of //*[starts-with(@id, 'messagebox')

Returns:

findExtJsMessageBoxButtonByText

public static java.lang.String findExtJsMessageBoxButtonByText(java.lang.String text)
Returns the XPath relative to the root of the DOM for getting an ExtJS message box button by its text in the format of //*[starts-with(@id, 'messagebox')/descendant::button[contains(.,'some text')]

Parameters:
text -
Returns:

findTableRow

public static java.lang.String findTableRow(int row)
Returns the base XPath for getting a table (also gridpanel) row by its 1-based index. Note that if a header is present row 1 is the header

Parameters:
row -
Returns:

findTableRow

public static java.lang.String findTableRow(java.lang.String text)
Generates the XPath used for getting a table row by its text content in the format of //table/descendant::tr[contains(.,'Lisa')]

Parameters:
text -
Returns:

findTableRowinDiv

public static java.lang.String findTableRowinDiv(java.lang.String text,
                                                 java.lang.String divId)
Returns the XPath for getting a table row by its text content in the div of the given ID

Parameters:
text -
divId -
Returns:

findTableRowInDiv

public static java.lang.String findTableRowInDiv(int row,
                                                 java.lang.String divId)
Returns the base XPath for getting a table (also gridpanel) row by its 1-based index. Note that if a header is present row 1 is the header.

Parameters:
row -
divId -
Returns:

findTableRowColumn

public static java.lang.String findTableRowColumn(int row,
                                                  int column)
Returns the XPath for getting a table row's column by its 1-based index from the root of the DOM

Parameters:
row -
column -
Returns:

findTableRowColumn

public static java.lang.String findTableRowColumn(java.lang.String text)
Return the XPath for getting a table's td element based on its text content

Parameters:
text -
Returns:

findTableRowColumnInDiv

public static java.lang.String findTableRowColumnInDiv(int row,
                                                       int column,
                                                       java.lang.String divId)
Returns the base XPath for getting a table row's column by its 1-based index in the given div

Parameters:
row -
column -
divId -
Returns:

findTableRowColumnInDiv

public static java.lang.String findTableRowColumnInDiv(java.lang.String text,
                                                       java.lang.String divId)
Returns the XPath for getting a table's td element by its contained text

Parameters:
text -
divId -
Returns:

findTableInDiv

public static java.lang.String findTableInDiv(java.lang.String divId)
Returns the XPath for getting a table in the given div

Parameters:
divId -
Returns:

findTable

public static java.lang.String findTable()
Returns the XPath for getting a table

Returns:

findTableById

public static java.lang.String findTableById(java.lang.String id)
Returns the XPath for getting a table by its ID

Parameters:
id -
Returns:

findTableByText

public static java.lang.String findTableByText(java.lang.String text)
Returns the XPath for getting a table by its text contents in the format of //table[contains(.,'some text')]

Parameters:
text -
Returns:

findTableByTextInDiv

public static java.lang.String findTableByTextInDiv(java.lang.String text,
                                                    java.lang.String divId)
Returns the XPath for getting a table in a div by its text content

Parameters:
text -
divId -
Returns:

findExtJsGrid

public static java.lang.String findExtJsGrid()
Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel in the format of //table[contains(@class,'x-grid-table')]

Returns:

findExtJsGridByText

public static java.lang.String findExtJsGridByText(java.lang.String text)
Return the XPath for getting an ExtJS grid by its text, in the format of //table[contains(@class,'x-grid-table') and contains(.,'')]

Parameters:
text -
Returns:

findExtJsGridByTextInDiv

public static java.lang.String findExtJsGridByTextInDiv(java.lang.String text,
                                                        java.lang.String divId)
Returns the XPath for getting an ExtJS grid based component by some text that in contains, inside of some div

Parameters:
text -
divId -
Returns:

findExtJsGridInDiv

public static java.lang.String findExtJsGridInDiv(java.lang.String divId)
Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, relative to the specified div in the format of //div[@id='someId']/descendant::table[contains(@class,'x-grid-table')]

Returns:

findExtJsGridRow

public static java.lang.String findExtJsGridRow(int row)
Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by 1-based index, in the format of //table[contains(@class,'x-grid-table')]/descendant::tr[row_index]

Parameters:
row -
Returns:

findExtJsGridRow

public static java.lang.String findExtJsGridRow(java.lang.String text)
Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by its text content, in the format of table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]

Parameters:
text -
Returns:

findExtJsGridRowInDiv

public static java.lang.String findExtJsGridRowInDiv(int row,
                                                     java.lang.String divId)
Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by 1-based index relative to the specified div, in the format of //div[@id='someId']/descendant::table[contains(@class,'x-grid-table')]/descendant::tr[row_index]

Parameters:
row -
divId -
Returns:

findExtJsGridRowInDiv

public static java.lang.String findExtJsGridRowInDiv(java.lang.String rowText,
                                                     java.lang.String divId)
Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element by 1-based index relative to the specified div, in the format of //div[@id='someId']/descendant::table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]

Parameters:
rowText -
divId -
Returns:

findExtJsGridRowExpansionNode

public static java.lang.String findExtJsGridRowExpansionNode(int row)
Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point, in the format of //table[contains(@class,'x-grid-table')]/descendant::tr[row_index]/descendant::img[contains(@class,'x-tree-expander')]

Parameters:
row -
Returns:

findExtJsGridRowExpansionNodeInDiv

public static java.lang.String findExtJsGridRowExpansionNodeInDiv(int row,
                                                                  java.lang.String divId)
Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point within a parent div, in the format of //div[@id='someId']/descendant::table[contains(@class,'x-grid-table')]/descendant::tr[row_index]/descendant::img[contains(@class,'x-tree-expander')]

Parameters:
row -
divId -
Returns:

findExtJsGridRowExpansionNodeInDiv

public static java.lang.String findExtJsGridRowExpansionNodeInDiv(java.lang.String text,
                                                                  java.lang.String divId)
Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point within a parent div, in the format of //div[@id='someId']/descendant::table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]/descendant::img[contains(@class,'x-tree-expander')]

Parameters:
text -
divId -
Returns:

findExtJsGridRowExpansionNode

public static java.lang.String findExtJsGridRowExpansionNode(java.lang.String text)
Returns the XPath for getting an ExtJS grid based component, meaning gridpanel or treepanel, row element's expansion node point, in the format of //table[contains(@class,'x-grid-table')]/descendant::tr[contains(.,'some text')]/descendant::img[contains(@class,'x-tree-expander')]

Parameters:
text -
Returns:

findDivByText

public static java.lang.String findDivByText(java.lang.String text)
Returns the XPath needed for getting a div that contains the given text (returns the first result), in the format of (//div[contains(.,"some text")])[1]

Parameters:
text -
Returns:

findDivById

public static java.lang.String findDivById(java.lang.String id)
Returns the XPath for getting a div by id

Parameters:
id -
Returns:

findExtJsComboBoxButtonByValue

public static java.lang.String findExtJsComboBoxButtonByValue(java.lang.String value)
Returns the XPath for locating the button in an ExtJs combo box by its value

Parameters:
value -
Returns:

findExtJsComboBoxButtonByValueInDiv

public static java.lang.String findExtJsComboBoxButtonByValueInDiv(java.lang.String value,
                                                                   java.lang.String divId)
Returns the XPath for locating the button in an ExtJS combo by its value inside of a div

Parameters:
value -
divId -
Returns:

findExtJsComboBoxButtonByName

public static java.lang.String findExtJsComboBoxButtonByName(java.lang.String name)
Returns the XPath for finding the button in an ExtJS combo box by its name

Parameters:
name -
Returns:

findExtJsComboBoxButtonByNameInDiv

public static java.lang.String findExtJsComboBoxButtonByNameInDiv(java.lang.String name,
                                                                  java.lang.String divId)
Returns the XPath for finding the button in an ExtJS combo box by its name in a div

Parameters:
name -
Returns:

findExtJsComboItemByRow

public static java.lang.String findExtJsComboItemByRow(int row)
Returns the XPAth for getting the item in an ExtJS combo box by row

Parameters:
row -
Returns:

findExtJsComboItemByText

public static java.lang.String findExtJsComboItemByText(java.lang.String text)
Returns the XPath for getting the item in an ExtJS combo box by its text

Parameters:
text -
Returns:

findSelectByName

public static java.lang.String findSelectByName(java.lang.String name)
Returns the XPath for getting an HTML select component by its name

Parameters:
name -
Returns:

findSelectByNameInDiv

public static java.lang.String findSelectByNameInDiv(java.lang.String name,
                                                     java.lang.String divId)
Returns the XPath for getting an HTML select component by its name in a div

Parameters:
name -
divId -
Returns:

findOptionByValue

public static java.lang.String findOptionByValue(java.lang.String value)
Returns the XPath for getting an HTML option by the given value

Parameters:
value -
Returns:

findOptionByValueInSelect

public static java.lang.String findOptionByValueInSelect(java.lang.String value,
                                                         java.lang.String name)
Returns the XPath for getting an option by value in the select by name

Parameters:
value -
name -
Returns:

findOptionByText

public static java.lang.String findOptionByText(java.lang.String text)
Returns the XPath for getting an option by its text

Parameters:
text -
Returns:

findOptionByTextInSelect

public static java.lang.String findOptionByTextInSelect(java.lang.String text,
                                                        java.lang.String name)
Returns the XPath for getting an option bu its text inside a select by name

Parameters:
text -
name -
Returns:

findOptionByRowInSelect

public static java.lang.String findOptionByRowInSelect(int row,
                                                       java.lang.String name)
Returns the XPath for getting an option by its row in a select by name

Parameters:
row -
name -
Returns:

findOptionByRow

public static java.lang.String findOptionByRow(int row)
Returns the XPath for getting an option by its row (occurrence)

Parameters:
row -
Returns:

findExtJsRadioByText

public static java.lang.String findExtJsRadioByText(java.lang.String text)
Returns the XPath for finding an ExtJS Radio button by its text

Parameters:
text -
Returns:

findExtJsRadioByTextInDiv

public static java.lang.String findExtJsRadioByTextInDiv(java.lang.String text,
                                                         java.lang.String divId)
Returns the XPath for finding an ExtJS Radio button by its text in a div

Parameters:
text -
divId -
Returns:

findRadioByValue

public static java.lang.String findRadioByValue(java.lang.String value)
Returns the XPath for getting an HTML radio input by its value

Parameters:
value -
Returns:

findRadioByValueInDiv

public static java.lang.String findRadioByValueInDiv(java.lang.String value,
                                                     java.lang.String divId)
Returns the XPath for getting an HTML radio input by its value in a div

Parameters:
value -
divId -
Returns:

findExtJsCheckboxByText

public static java.lang.String findExtJsCheckboxByText(java.lang.String text)
Returns the XPath for finding an ExtJS checkbox by its text

Parameters:
text -
Returns:

findExtJsCheckboxByTextInDiv

public static java.lang.String findExtJsCheckboxByTextInDiv(java.lang.String text,
                                                            java.lang.String divId)
Returns the XPath for finding an ExtJS checkbox by its text in a div

Parameters:
text -
divId -
Returns:

findCheckboxByName

public static java.lang.String findCheckboxByName(java.lang.String name)
Returns the XPath for finding an input type of checkbox by its name

Parameters:
name -
Returns:

findCheckboxByNameInDiv

public static java.lang.String findCheckboxByNameInDiv(java.lang.String name,
                                                       java.lang.String divId)
Returns the XPath for finding an input type of checkbox by its name in a div

Parameters:
name -
divId -
Returns:

findCheckboxByValue

public static java.lang.String findCheckboxByValue(java.lang.String value)
Returns the XPath for finding an HTML input of type checkbox by its value

Parameters:
value -
Returns:

findCheckboxByValueInDiv

public static java.lang.String findCheckboxByValueInDiv(java.lang.String value,
                                                        java.lang.String divId)
Returns the XPath for finding an HTML input of type checkbox by its value in a div

Parameters:
value -
divId -
Returns:

findExtJsDateButtonByName

public static java.lang.String findExtJsDateButtonByName(java.lang.String name)
Returns the XPath for getting an ExtJS Date field button by its name

Parameters:
name -
Returns:

findExtJsDateButtonByNameInDiv

public static java.lang.String findExtJsDateButtonByNameInDiv(java.lang.String name,
                                                              java.lang.String divId)
Returns the XPath for getting an ExtJS Date field button by its name in a div

Parameters:
name -
divId -
Returns:

findExtJsDateButtonByValue

public static java.lang.String findExtJsDateButtonByValue(java.lang.String value)
Returns the XPath for getting an ExtJS date field button by its value

Parameters:
value -
Returns:

findExtJsDateButtonByValueInDiv

public static java.lang.String findExtJsDateButtonByValueInDiv(java.lang.String value,
                                                               java.lang.String divId)
Returns the XPath for getting an ExtJS date field button by its value in a div

Parameters:
value -
divId -
Returns:

findLinkByText

public static java.lang.String findLinkByText(java.lang.String text)
Returns the XPath for getting an HTML link by its text content

Parameters:
text -
Returns:

findLinkByTextInDiv

public static java.lang.String findLinkByTextInDiv(java.lang.String text,
                                                   java.lang.String divId)
Returns the XPath for getting an HTML link by its text content in a div

Parameters:
text -
divId -
Returns:

findExtJsFilefieldByButtonText

public static java.lang.String findExtJsFilefieldByButtonText(java.lang.String text)
Returns the XPath for getting an ExtJS file input field by its button's text

Parameters:
text -
Returns:

findExtJsFilefieldByButtonTextInDiv

public static java.lang.String findExtJsFilefieldByButtonTextInDiv(java.lang.String text,
                                                                   java.lang.String divId)
Returns the XPath for getting an ExtJS file input field by its button's text in a div

Parameters:
text -
divId -
Returns:

findExtJsHtmlEditor

public static java.lang.String findExtJsHtmlEditor()
Returns the XPath for getting an ExtJS html editor component

Returns:

findExtJsHtmlEditorInDiv

public static java.lang.String findExtJsHtmlEditorInDiv(java.lang.String divId)
Returns the XPath for getting an ExtJS html editor component in a div

Parameters:
divId -
Returns:

findExtJsHtmlEditorById

public static java.lang.String findExtJsHtmlEditorById(java.lang.String id)
Returns the XPath for getting an ExtJS html editor by id

Parameters:
id -
Returns:

findTextAreaByName

public static java.lang.String findTextAreaByName(java.lang.String name)
Returns the XPath for getting a textarea by name

Parameters:
name -
Returns:

findTextAreaByNameInDiv

public static java.lang.String findTextAreaByNameInDiv(java.lang.String name,
                                                       java.lang.String divId)
Returns the XPath for getting a textarea by name in a div

Parameters:
name -
divId -
Returns:

findTextAreaById

public static java.lang.String findTextAreaById(java.lang.String id)
Returns the XPath for getting a text area by its ID

Parameters:
id -

findTextAreaByText

public static java.lang.String findTextAreaByText(java.lang.String text)
Returns the XPath for getting a textarea by its text

Parameters:
text -
Returns:

findTextAreaByTextInDiv

public static java.lang.String findTextAreaByTextInDiv(java.lang.String text,
                                                       java.lang.String divId)
Returns the XPath for getting a textarea by its text in a div

Parameters:
text -
divId -
Returns:

findExtJsColorPickerLinkByValue

public static java.lang.String findExtJsColorPickerLinkByValue(java.lang.String value)
Returns the XPath for getting an ExtJS color picker link by its HEX color code value, for example 00FF00.

Parameters:
value -
Returns:

findExtJsColorPickerLinkByValueInDiv

public static java.lang.String findExtJsColorPickerLinkByValueInDiv(java.lang.String value,
                                                                    java.lang.String divId)
Returns the XPath for getting an ExtJS color picker link by its HEX color code value in a div, for example 00FF00.

Parameters:
value -
divId -
Returns:

findExtJsSlider

public static java.lang.String findExtJsSlider()
Returns the XPath for getting an ExtJS slider

Returns:

findExtJsSliderInDiv

public static java.lang.String findExtJsSliderInDiv(java.lang.String divId)

findTouchButtonByText

public static java.lang.String findTouchButtonByText(java.lang.String text)
Returns the XPath for getting a Sencha Touch button

Parameters:
text -
Returns:

findTouchButtonByTextInDiv

public static java.lang.String findTouchButtonByTextInDiv(java.lang.String text,
                                                          java.lang.String divId)
Returns the XPath for getting a Sencha Touch button by text in a div

Parameters:
text -
divId -
Returns:

findTouchButtonByOccurrence

public static java.lang.String findTouchButtonByOccurrence(int index)
Returns the XPath for getting a sencha touch button by its 1 based occurrence in the page

Parameters:
index -
Returns:

findTouchButtonByOccurrenceInDiv

public static java.lang.String findTouchButtonByOccurrenceInDiv(int index,
                                                                java.lang.String divId)
Returns the XPath for getting a sencha touch button by its 1 based occurrence in the specified div

Parameters:
index -
divId -
Returns:

findTouchSpinnerUpByDefault

public static java.lang.String findTouchSpinnerUpByDefault()
Returns the XPath for getting a sencha touch spinner up button, assuming its the only one in the page

Returns:

findTouchSpinnerUpByDefaultInDiv

public static java.lang.String findTouchSpinnerUpByDefaultInDiv(java.lang.String divId)
Returns the XPath for getting a sencha touch spinner up button inside the given div

Parameters:
divId -
Returns:

findTouchSpinnerUpByOccurrence

public static java.lang.String findTouchSpinnerUpByOccurrence(int index)
Returns the Xpath for getting a sencha touch spinner up button by its 1-based occurrence in the page

Parameters:
index -
Returns:

findTouchSpinnerUpByOccurrenceInDiv

public static java.lang.String findTouchSpinnerUpByOccurrenceInDiv(int index,
                                                                   java.lang.String divId)
Returns the XPath for getting a sencha touch spinner up button inside the div of the given id

Parameters:
index -
divId -
Returns:

findTouchSpinnerDownByDefault

public static java.lang.String findTouchSpinnerDownByDefault()
Returns the XPath for getting a sencha touch spinner down button, assuming its the only one in the page

Returns:

findTouchSpinnerDownByDefaultInDiv

public static java.lang.String findTouchSpinnerDownByDefaultInDiv(java.lang.String divId)
Returns the XPath for getting a sencha touch spinner down button inside the given div

Parameters:
divId -
Returns:

findTouchSpinnerDownByOccurrence

public static java.lang.String findTouchSpinnerDownByOccurrence(int index)
Returns the Xpath for getting a sencha touch spinner down button by its 1-based occurrence in the page

Parameters:
index -
Returns:

findTouchSpinnerDownByOccurrenceInDiv

public static java.lang.String findTouchSpinnerDownByOccurrenceInDiv(int index,
                                                                     java.lang.String divId)
Returns the XPath for getting a sencha touch spinner down button inside the div of the given id

Parameters:
index -
divId -
Returns:

findTouchCheckboxByName

public static java.lang.String findTouchCheckboxByName(java.lang.String name)
Returns the XPath for getting a sencha touch checkbox by its name

Parameters:
name -
Returns:

findTouchCheckboxByNameInDiv

public static java.lang.String findTouchCheckboxByNameInDiv(java.lang.String name,
                                                            java.lang.String divId)
Returns the XPath for getting a sencha touch checkbox by its name in the given div

Parameters:
name -
divId -
Returns:

findTouchCheckboxById

public static java.lang.String findTouchCheckboxById(java.lang.String id)
Returns the XPath for getting a sencha touch checkbox by its id

Parameters:
id -
Returns:

findTouchDateButtonByName

public static java.lang.String findTouchDateButtonByName(java.lang.String name)
Returns the XPath for getting a sencha touch date button by its name

Parameters:
name -
Returns:

findTouchDateButtonByNameInDiv

public static java.lang.String findTouchDateButtonByNameInDiv(java.lang.String name,
                                                              java.lang.String divId)
Returns the XPath for getting a sencha touch date button by its name in the given div

Parameters:
name -
divId -
Returns:

findTouchDateButtonById

public static java.lang.String findTouchDateButtonById(java.lang.String id)
Returns the XPath for getting a sencha touch date button by its id

Parameters:
id -
Returns:

findTouchRadioByOccurrence

public static java.lang.String findTouchRadioByOccurrence(int index)
Returns the XPath for getting a sencha touch radio button by the given 1-based occurrence

Parameters:
index -
Returns:

findTouchRadioByOccurrenceInDiv

public static java.lang.String findTouchRadioByOccurrenceInDiv(int index,
                                                               java.lang.String divId)
Returns the XPath for getting a sencha touch radio button inside the div of the given id

Parameters:
index -
divId -
Returns:

findTouchSelectByName

public static java.lang.String findTouchSelectByName(java.lang.String name)
Returns the XPath for getting a sencha touch select field by its name

Parameters:
name -
Returns:

findTouchSelectByNameInDiv

public static java.lang.String findTouchSelectByNameInDiv(java.lang.String name,
                                                          java.lang.String divId)
Returns the XPath for getting a sencha touch select field by its name in the given div

Parameters:
name -
divId -
Returns:

findTouchSelectById

public static java.lang.String findTouchSelectById(java.lang.String id)
Returns the XPath for getting a sencha touch select field by its id

Parameters:
id -
Returns:

findTouchListItemByText

public static java.lang.String findTouchListItemByText(java.lang.String text)
Generates the XPath for getting a sencha touch list item containing the given text

Parameters:
text -
Returns:

findTouchListItemByTextInDiv

public static java.lang.String findTouchListItemByTextInDiv(java.lang.String text,
                                                            java.lang.String divId)
Generates the XPath for getting a sencha touch list item containing the given text in the given div

Parameters:
text -
divId -
Returns:

findTouchSliderByOccurrence

public static java.lang.String findTouchSliderByOccurrence(int index)
Generates the XPath for getting a sencha touch slider by its 1-based occurrence in the page

Parameters:
index -
Returns:

findTouchSliderByOccurrenceInDiv

public static java.lang.String findTouchSliderByOccurrenceInDiv(int index,
                                                                java.lang.String divId)
Generats the XPath for geting a sencha touch slider by its 1-based occurrence in the div of the given ID

Parameters:
index -
divId -
Returns: