Descriptive Programming with Regular Expression
I have gone through different post related to descriptive programming in TestComplete but not found any appropriate answer to implement this.
My requirement about Descriptive programming is as follows :
I am writing custom subroutine for clicking a button on any page as I don't want to use standard method of TestComplete.
This subroutine will click on the button irrespective of any web application it is not defined for any webpage,
For ex : In UFT, I can write Browser("name:=.*").Page("title:=.*").WebButton("name:=.*").Click
From the above example, I can click on any button on any web page, so it is not binded with any application or object repository.
".*" in the code refer Regular Expression which does not relate to any specific object.
I would like to have similar thing in TestComplete, I am not interested in creating object from the application and then passing to my subroutine.
Let me know how can it be done with the example.