In my .t file, I asked the script to click on the Browse button. It did not
click the browse button, and go to the next line of code.
Silk generated the following error:
***Error: Window '[DialogBox]Choose file' was not found
Occurred in SetActive
Here is my code:
I tried both methods
It does not work. Silk thinks that the Browse button is the xxxTextField next to the Browse button. When I used Browse.TypeKeys("<Enter>"), Silk hit enter on the textfield and generated an error on the GUI as Silk hit enter without an input.
Yes, the declaration is correct. In fact, someone tried to run my script on their PC using VNC, and Silk was able to recognize the button. However, when they tried to run the script on my PC locally, Silk always points to the textfield which is on the left hand side of the Browse button.
The text field and the browse button all have "$file1" as their tags. Is this causing the problem?
From your windows declaration, there are two other tags that establish uniqueness for the textfield and the button (the "#" tag, and the caption "xxx" and "Browse" ) In a multitag the last tag is resorted to if the first one's dont help in uniquely identifying an object. However this does not seem to be happening in your case. Perhaps you could just try commenting out the "$file1" tag and it would work.