tinauser
14 years agoFrequent Contributor
name mapping depending on condition
Hi there,
I am in a situation where I have to open a file dialog and enter a file name. The text box (actually, the combo box) where I have to enter the file name as two different name according on (I think) whether I am on win7 or winXP.
In particular, the object is called in winXP:
Sys.Process("Rotor-Gene").Window("#32770", "Save Document", 1).Window("ComboBoxEx32", "", 1).Window("ComboBox", "", 1)
But in win7
Sys.Process("Rotor-Gene").Window("#32770", "Save Document", 1).Window("ComboBox", "", 1).Window("ComboBox", "", 1)
I am using this object in a keyword test (generated from recording).
How can I cope with this, i.e. what shall I do so that the test is run correctly in both winXP and 7
Thanks
I am in a situation where I have to open a file dialog and enter a file name. The text box (actually, the combo box) where I have to enter the file name as two different name according on (I think) whether I am on win7 or winXP.
In particular, the object is called in winXP:
Sys.Process("Rotor-Gene").Window("#32770", "Save Document", 1).Window("ComboBoxEx32", "", 1).Window("ComboBox", "", 1)
But in win7
Sys.Process("Rotor-Gene").Window("#32770", "Save Document", 1).Window("ComboBox", "", 1).Window("ComboBox", "", 1)
I am using this object in a keyword test (generated from recording).
How can I cope with this, i.e. what shall I do so that the test is run correctly in both winXP and 7
Thanks