We are doing an automation testing using Selenium IDE (record and play) for an application form which has lots of input fields, but we were not able to pass through the validations because the values that we input on the mandatory text fields during recording are somehow not saved or stored or unable to read the input written by Selenium. As a result, the form still displayed an error message like "Name field is required" while the mandatory text field is successfully filled out.
Was this working previously? What version of IDE and Firefox have you got?
Thanks for the prompt response.I upgraded my Firefox into 54.0 and do another round of recording, unfortunately behavior is still the same. Include also the pause command, and still doesn't work.
See screenshots below:
(sample application form)
You will notice on the above screenshot that even-though I have provided the Customer Legal Name, seems that the value still not considered as it still prompting an error message.
Thank you for suggesting katalon, I am now downloading the application and will explore it.
Does this work when you perform the test manually? I mean without using the automation record and play?
Yes Siju, it's working when manually tested.
If possible, Could you share the whole form URL with me?
Yes Siju, please see link below for the sample form:
Now I could reproduce the problem and good news is that I could root cause it.
In your form there is an Input field called "Text Field" next to the "Customer Legal Name", So when the test is executed manually, Post filling the "Customer Legal Name" and clicking on "Continue" button contents of "Customer Legal Name" is being automatically copied into "Text Field" and hence you don't see any error. But when you record the same through automation this copy part of the content from "Customer Legal Name" to "Text Field" is not recorded as this is not performed by the user interaction. So when you play back the recording you see the content is not copied and error is displayed.
As a work around, what you could do is during recording, manually enter the content into "Text Field" and press the "Continue" button. This play back would execute without any error.
Please let me know how it goes.
The behavior of the'Text Field' that automatically copied the content of the 'Customer Legal Name' is intentionally coded by the Dev, this is to test/ensure that the value of Customer Legal Name is captured.
Re-sending the updating link where the 'Text Field' is removed.
Requesting please to try again
Yeah, Now I could see the original Issue you were observing, for some reason "Selenium IDE" is not able to read the value out from the text box. I did try the same test with "Selenium WebDriver" and it worked fine. Looks like an Issue with Selenium IDE.
I am now curious like, How did it work when we had the "Text Field"? Could you revert the form with "Text Field"?
Yes its working fine with Selenium WebDriver. As requested, the "Text Field" has been reverted.
Thank you very much, your inputs is highly appreciated.
May I ask if you were able to use the Selenium IDE for an Avoka application?
I am sorry, got busy with few things last couple of days.
I did try after you added back the "Text Field", I could still not get through the error. Looks like a problem Selenium IDE have been living with.
We don't use Selenium IDE for any of our UI testing, We use Selenium web driver based framework for all our UI testing.
Thanks for all your inputs, it helps a lot on our investigation. I guess we are going to start studying/practicing the Selenium web driver, atleast the basic
Thanks for you too Jenn, I could get to understand more on "Selenium IDE", Good luck with selenium web driver .
No. Firefox version is 43.0.4 and the Selenium IDE is 2.9.1.
Do you have a pause after your URL is loaded, If not could you please add one with 5000?
Also try adding a pause before you enter the value into text field.
If the above doesn't work, Could you please upgrade Firefox version to 54.0?
I did try some basic test with Selenium IDE 2.9.1 with Firefox version 54.0, It worked fine on my test form here.
Also I would recommend using "katalon-automation-recorder" this works well with latest version of Firefox and even have support for Chrome. A much more powerful Add on