nisgupta
8 years agoValued Contributor
Framework - generic functions - passing Name mapping as parameters
For Web Application
Is any one creating the framework where generic functions are created for different web objects like check box, Text box, button?
for e.g.
for select and click on the button
function SelectButton(ButtonObj)
{
if(ButtonObj.WaitForProperty("Enabled", true, 3000))
{
ButtonObj.ClickButton();
Log.Message(ButtonObj.contentText + " is clicked");
}
else{
Log.Error("No Button is Found");
}
}
Then from the main script ..
call this function by passing Alias Name Mapping as parameters
Have attached the scrrenshots.
Let me know if any more information is needed.
Thanks
Nishchal