Set Dropdown Value Command

Definition #

The “Set Dropdown Value” command refers to automatically changing the selected value of a dropdown menu in a web pages . Dropdown menus are UI elements that allow users to choose one option from a list of available options.

Add Set Dropdown Value Command #

To use the ” Set Dropdown Value ” you can add it by searching “Set Dropdown Value” In the Event interface and then adding it.

Add Mock Location Command

Configure Set Dropdown Value Command #

Set Dropdown Value command has three possible ways of configurations that can be configured by the user

Manual Selection Mode #

  1. Set a name that describes the dropdown menu
  2. Clicking on inspect allows you to inspect the CSS selector of the dropdown element
  3. This clears the CSS selector field allowing you to inspect another CSS selector
  4. CSS selector indicates the selector you inspected , to locate the dropdown menu
  5. Selection mode refers to to how the value of the dropdown is set
  6. This is the value of the item you want to set
  7. This refers to based on what will the selector set the item of dropdown, and it has two options
    • Value means that the option with value attribute that matches the value you entered above in the 6th field
    • Text refers to the text of the dropdown option that also matches the value you entered above in the 6th field
  8. Here you can choose what do you want to happens if the element is not found

Random Selection Mode #

  1. Set a name that describes the dropdown menu
  2. Clicking on inspect allows you to inspect the CSS selector of the dropdown element
  3. This clears the CSS selector field allowing you to inspect another CSS selector
  4. CSS selector indicates the selector you inspected , to locate the dropdown menu
  5. This sets a random option for the dropdown
    • Here you can choose what do you want to happens if the element is not found

    Iterate through all values ( loop through all values) #

    1. Set a name that describes the dropdown menu
    2. Clicking on inspect allows you to inspect the CSS selector of the dropdown element
    3. This clears the CSS selector field allowing you to inspect another CSS selector
    4. CSS selector indicates the selector you inspected , to locate the dropdown menu
    5. This creates a loop that Iterates through all values of a dropdown
    6. Here you can choose what do you want to happens if the element is not found

      Powered by BetterDocs

      Leave a Reply