Your ultimate guide

Handling Dropdown using SeleniumLibrary on Robot Framework

Handling Dropdown using SeleniumLibrary on Robot Framework:
Example:




Select From List By Index: This keyword is used to Select options from the dropdown list locator by indexes.
    Syntax: Select From List By Index        locators        index
    Example: Select From List By Index        id:tcg        2
    #Canada - 2

Unselect From List By Index: This keyword is used to unselect options from the dropdown list locator by indexes.
    Syntax: Unselect From List By Index        locators        index
    Example: Unselect From List By Index        xpath://*[@id='tcg']        2




Select From List By Label: This keyword is used to Select options from the dropdown list locator by labels (visible text).
    Syntax: Select From List By Label        locators        labels
    Example: Select From List By Label        name:cnt        India

Unselect From List By Label: This keyword is used to unselect options from the dropdown list locator by labels (visible text).
    Syntax: Unselect From List By Label        locators        labels
    Example: Unselect From List By Label        name:cnt        India




Select From List By Value: This keyword is used to select options from the dropdown list locator by values.
    Syntax: Select From List By Value        locators        value
    Example: Select From List By Value        id:tcg        cnd

Unselect From List By Value: This keyword is used to unselect options from the dropdown list locator by values.
    Syntax: Unselect From List By Value        locators        value
    Example: Unselect From List By Value        id:tcg        cnd




Select All From List: This keyword is used to select all options from the multi-selection list locator.
    Syntax: Select All From List        locator

Unselect All From List: This keyword is used to unselect all options from the multi-selection list locator.
    Syntax: Unselect All From List        locator








No comments:

Post a Comment