Solved
Forum Discussion
NisHera
10 years agoValued Contributor
Can one parameterize that piece which refers to the specific text field? Simple answer is yes.
But how ..depends on how your approch to designing tests.
- if you use name mapping you may map up to the object "grpPatternID" and give single name something like "PatternID" then you can call Aliases.PatternID.GemCat.txtPatterName and Aliases.GemCat.PatternID.txtSAPInvestigationDescription
- if you may like to have very simple mapping structure like me ..., would map only higher object such as maping object "frmPatternMetaData" and find from there like Aliases.PatternID.PatternMetaData.findChild(".....","PatterName",10,true)
- if you are not like name mapping can use Sys.Process("GemCat_Gui").findChild(".....","PatterName",10,true)
- Or you can just use variables var PatternID = Sys.Process("GemCat_Gui").WinFormsObject("frmPatternMetaData").WinFormsObject("grpPatternID") can call PatternID.WinFormsObject("txtPatterName") and PatternID.inFormsObject("txtSAPInvestigationDescription")