mcdcorp / opentest

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

How to parameterized xpath from csv file #587

Open ShitalBelote01 opened 2 years ago

ShitalBelote01 commented 2 years 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 2 years 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.