Forum Discussion
8 Replies
- anupamchampatiFrequent Contributor
Object = Aliases.VizGui.wndViz.TkChild.TkChild.TkChild.PeakOCSWnd; is an image.
ss= it is the region i have created.
Below code will help you compare the ss regions to get compare with the Object
Regions.Items(ss).Check(Object , false, false, 1, 1); - AlexKaras
Champion Level 2
Hi,
Can you provide sample code that does not work?
- shubham1Occasional Contributor
This is the code snippet i am using for a POC purpose
function Test()
{
let page = Aliases.VizGui.wndViz.TkChild.TkChild.TkChild.PeakOCSWnd;Regions.Find("abc",page)
Regions.FindRegion("ss",page)
}- AlexKaras
Champion Level 2
And what are your expectations?
What exactly does not work as you expected?
Have you read documentation for the method: https://support.smartbear.com/testcomplete/docs/reference/project-objects/items/stores/regions/find.html ?
- shubham1Occasional Contributor
I want to validate that in a given object(which is an image) the stored region is present or not.
Object = Aliases.VizGui.wndViz.TkChild.TkChild.TkChild.PeakOCSWnd; is an image.
ss= it is the region i have created.
i want to find "ss"(Region) in object.