18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

General script for multiple web sites

nooremustafanooremustafa Members
edited November -1 in Sahi - Open Source
Hi,

I recently posted some questions, I want to ask question.

Can we create a general script in which we give all alternatives of a field and the value of that. When script runs it compare each field with all alternative and if the field mataches fill its values like, on Name,First Name, Last Name, FullName, SurName etc... So this script will work for some similar web sites.

Thanks a lot

Noor

Comments

  • Hi,

    I suppose we can do this. Will have to put checks for the presence of the element and if its present fill the desired value. Use of Switch-Case will be quite handy here.

    Regards,
    Pankaj.
  • Thanks for the reply,

    Can you give hint how to do this? Any code for this?
Sign In or Register to comment.