All pastes #31724 Raw Edit

Anonymous

public text v1 · immutable
#31724 ·published 2005-11-29 20:55 UTC
rendered paste body
Exact problem behaviour:
-------------------------
I have a window that i am testing.

There is one very precise procedure I can follow for robot to work,
and every other method that one would normally use to execute a robot script
does not work, however I've included a trivial example of a non-working procedure anyways
for your reference.

Procedure 1: Robot does not work (normal procedure)
 I open the script i wish to run in robot, open my application to the state robot expects it to
 be in, I return focus to robot's script editor, press F5 to compile & run the script, robot
 fails to locate the control and terminates immediately

Procedure 2: Robot works (special case/unusual procedure required)
 I open the script i wish to run in robot, open my application to the state robot expects it to
 be in, I return focus to robot's script editor, under the Record menu I press Insert at Cursor.
 The robot main window dissappears as expected and my application is easily visible, as expected.
 Rather than actually recording anything, I just click the STOP button on the recording toolbar
 and return to my Robot script, I verify that nothing was inserted into the script as I did not 
 actually perform any actions to be recorded. Indeed, nothing was inserted.
 
Now, I press F5 to compile & run the script, robot then seems to be able to locate
all controls as expected and it runs the script exactly as I would expect.


    TabControl Click, "ObjectIndex=4;\;ItemText=Greeting", ""
    TabControl Click, "ObjectIndex=4", "Coords=85,15"