Automated Testing using Selenium with Cucumber Framework

Hi ,

I am trying to  test a SAIL form having components like text Field and paragraph Field .

In cucumber framework , I am using CucumberTempoFixture class to call a function [ populateFieldWith()]  to populate data in text Field and paragragh Field. This functions works fine when I am trying to add data in paragraph field , but the same function gives invalid argument error while trying to access the text Field. So is there any other function I can use to differentiate between these two components ?.

Also, I am not using element Id and XPath to identify the components and just using the cucumber framework jar  for automated testing.

So if anyone could help me on this issue or provide me with some other alternative to resolve this would be great. I am open to any suggestions available .

  Discussion posts and replies are publicly visible