2
1
0

Hi,

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.

Thanks,
Jenn

    CommentAdd your comment...

    3 answers

    1.  
      0
      -1
      -2

      Hi Jennifer, 


      Was this working previously? What version of IDE and Firefox  have you got? 


      Thanks 

      Siju

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi Siju,

        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.


        Thanks,

        Jenn




        1. Siju Kannoth

          Hi Jenn,

          Does this work when you perform the test manually?  I mean without using the automation record and play? 

          Thanks 

          Siju

        2. Jennifer Orejo

          Yes Siju, it's working when manually tested. 

        3. Siju Kannoth

          Hi Jenn,

          If possible, Could you share the whole form URL with me?

          Thanks

          Siju



        4. Siju Kannoth

          Hi Jenn,

          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.

          Thanks 

          Siju

        5. Jennifer Orejo

          Hi Siju,

          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.

          https://maestro.avoka.eu/web-plugin/servlet/SmartForm.html?formCode=servicetest&tmFormVersion=1.0.0

          Requesting please to try again (wink)

          Thanks,

          Jenn



        6. Siju Kannoth

          Hi Jenn,

          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"?

          Thanks

          Siju


        7. Jennifer Orejo

          HI Siju,

          Yes its working fine with Selenium WebDriver. As requested, the "Text Field" has been reverted.

          https://maestro.avoka.eu/web-plugin/servlet/SmartForm.html?formCode=servicetest&tmFormVersion=1.0.0

          Thank you very much, your inputs is highly appreciated.

          Regards,

          Jenn


        8. Jennifer Orejo

          Hi Siju,

          May I ask if you were able to use the Selenium IDE for an Avoka application?

          Thanks,

          Jenn



        9. Siju Kannoth

          Hey Jenn,

          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

          Siju

        10. Jennifer Orejo

          Hi Siju,

          It's okay (smile)

          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 (smile)


          Regards,

          Jenn


        11. Siju Kannoth

          Thanks for you too Jenn, I could get to understand more on "Selenium IDE", Good luck with selenium web driver (smile).

        CommentAdd your comment...
      2.  
        0
        -1
        -2

        No. Firefox version is 43.0.4 and the Selenium IDE is 2.9.1.


        Thanks

        1. Siju Kannoth

          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.

        2. Siju Kannoth

          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

          https://www.katalon.com/resources-center/blog/katalon-automation-recorder/ 

           

        CommentAdd your comment...