mcdcorp / opentest

Open source test automation tool for web applications, mobile apps and APIs
https://getopentest.org
MIT License
447 stars 107 forks source link

How to parameterized xpath from csv file #587

Open ShitalBelote01 opened 1 year ago

ShitalBelote01 commented 1 year ago
      - description: Click on About US
        action: org.getopentest.selenium.Click
        args:
          locator:
            dataSet: $data("TestData.csv")

Steps to reproduce:

  1. created one csv file (Testdata.csv) under data folder
  2. and using above syntax in test script But getting issue

    below error

adrianth commented 1 year ago

Your syntax is incorrect. The dataSet property must be set at the root level of the test and not part of an individual test action. For examples and more information, see this page.