18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
error hidden div
In your application we have sign up form is there if i dint click any textbox, it ill show the error messages
Name is blank
Incorrect email format
We need at least one contact. Either cell or landline
Plot/Apt/Door is blank
Street/locality is blank
Landmark is blank
Area is blank
name----
email---
cellphone
landline
how to do in sahi
code part---
_click(_link("MENU"));
_click(_link("+"));
_click(_link("+[1]"));
_click(_link("+[2]"));
_click(_link("+[3]"));
_click(_link("+[4]"));
_click(_link("+[5]"));
_click(_link("ORDER THIS"));
_setValue(_textbox("name[1]"), "");
_setValue(_textbox("email"), "");
_setValue(_textbox("cellno"), "");
_setValue(_textbox("landline"), "");
_setValue(_textbox("address-first"), "");
_setValue(_textbox("address-second"), "");
_setValue(_textbox("address-landmark"), "");
_setValue(_textbox("address-area"), "");
_click(_checkbox("asap"));
_click(_image("..."));
_click(_link("24"));
_click(_listItem("Bring me food as soon as possible"));
_click(_listItem("Bring me food as soon as possible"));
_click(_checkbox("asap"));
_setSelected(_select("hours"), "9");
_setSelected(_select("ampm"), "PM");
_setValue(_textarea("instructions"), "bring the food soon");
_click(_button("Send This Order"));
_assertNull(_div( "Name is blank" ));
_assertNull(_div( "Incorrect email format" ));
_assertNull(_div( "We need at least one contact. Either cell or landline" ));
_assertNull(_div( "Plot/Apt/Door is blank" ));
_assertNull(_div( "Street/locality is blank" ));
_assertNull(_div( "Landmark is blank" ));
_assertNull(_div( "Area is blank" ));
_click(_checkbox("1"));
_click(_button("Send"));
_click(_link("Close[1]")
Name is blank
Incorrect email format
We need at least one contact. Either cell or landline
Plot/Apt/Door is blank
Street/locality is blank
Landmark is blank
Area is blank
name----
email---
cellphone
landline
how to do in sahi
code part---
_click(_link("MENU"));
_click(_link("+"));
_click(_link("+[1]"));
_click(_link("+[2]"));
_click(_link("+[3]"));
_click(_link("+[4]"));
_click(_link("+[5]"));
_click(_link("ORDER THIS"));
_setValue(_textbox("name[1]"), "");
_setValue(_textbox("email"), "");
_setValue(_textbox("cellno"), "");
_setValue(_textbox("landline"), "");
_setValue(_textbox("address-first"), "");
_setValue(_textbox("address-second"), "");
_setValue(_textbox("address-landmark"), "");
_setValue(_textbox("address-area"), "");
_click(_checkbox("asap"));
_click(_image("..."));
_click(_link("24"));
_click(_listItem("Bring me food as soon as possible"));
_click(_listItem("Bring me food as soon as possible"));
_click(_checkbox("asap"));
_setSelected(_select("hours"), "9");
_setSelected(_select("ampm"), "PM");
_setValue(_textarea("instructions"), "bring the food soon");
_click(_button("Send This Order"));
_assertNull(_div( "Name is blank" ));
_assertNull(_div( "Incorrect email format" ));
_assertNull(_div( "We need at least one contact. Either cell or landline" ));
_assertNull(_div( "Plot/Apt/Door is blank" ));
_assertNull(_div( "Street/locality is blank" ));
_assertNull(_div( "Landmark is blank" ));
_assertNull(_div( "Area is blank" ));
_click(_checkbox("1"));
_click(_button("Send"));
_click(_link("Close[1]")