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
Hi Larsen,
Sorry for the late reply. When you say you are calling the populateFieldWith() method, do you mean you are calling the Java method directly?
If you are using the Cucumber syntax, then using the the following should work for both text field and paragraph field.
Given I populate field "MY TEXTFIELD NAME" with "some value".
You shouldn't have to use any xpath or Id, the framework should be able to locate the UI component based on your inputs such as text field name.