Documentation Index

Fetch the complete documentation index at: https://help.autify.com/llms.txt

Use this file to discover all available pages before exploring further.

Is It Possible to Use Data to Select Radio Buttons or Checkboxes in a Click Step?

Prev Next

While Click steps cannot dynamically select radio buttons or checkboxes using the Data feature, you may be able to achieve this by using JS steps based on values from your data source.

Configuration Example

The following is an example of dynamically selecting radio buttons using the Data feature.
Refer to this example when switching radio button options for each test data set in an application like the one below.
Image

Before starting, upload a CSV file from the Data tab of your scenario containing the values (such as selectors, XPaths, or value attributes) needed to specify each option.
Image

  1. Replace the Click step with a JS step to perform the click action.

  2. Set the element specification part of the JS step as an argument.

  3. Select the registered Data as the Argument values.
    Image

Specify the JS step code and the target element selectors or XPaths according to the application under test.