12 years ago
Can't find TextObject
Hello,
I am having a problem with finding a TextObject. I can find it using the Object Spy, but when I go to click on it using my script - TC can't find the object. I am trying to click Raster -> Crop -> Set Region. I can click the Raster -> Crop but it can't find the second window with the TextObject Set Region. I have tried adding a delay but that doesn't work, using the * doesn't work. Its like the screen isn't visible.
I have attached the Object browser information: I highlighted the TextObject("Set Region").
The code that I have...
1. I first click on Raster without a problem
2. I then click on Crop
dropdown = p["Window"]("Afx:*","");
dropdown["Activate"]();
TextObject2 = dropdown["TextObject"](SubmenuOption);
TextObject2["Click"]();
3. I then want to click on Set Region
dropdown2 = p["Window"] ("*10:*","*");
dropdown2["Activate"]();
TextObject3 = dropdown2["TextObject"](TertiaryMenuOption);
I am having a problem with finding a TextObject. I can find it using the Object Spy, but when I go to click on it using my script - TC can't find the object. I am trying to click Raster -> Crop -> Set Region. I can click the Raster -> Crop but it can't find the second window with the TextObject Set Region. I have tried adding a delay but that doesn't work, using the * doesn't work. Its like the screen isn't visible.
I have attached the Object browser information: I highlighted the TextObject("Set Region").
The code that I have...
1. I first click on Raster without a problem
2. I then click on Crop
dropdown = p["Window"]("Afx:*","");
dropdown["Activate"]();
TextObject2 = dropdown["TextObject"](SubmenuOption);
TextObject2["Click"]();
3. I then want to click on Set Region
dropdown2 = p["Window"] ("*10:*","*");
dropdown2["Activate"]();
TextObject3 = dropdown2["TextObject"](TertiaryMenuOption);