Hi odklizec,
thank you for the reply. Unfortunately I don´t have anything yet to provide you with but I can give you descrpition of what I itend to do:
Steps:
1) Start MAX - (our Windows application)
2) Get the captions (values) from GUI during the runtime
3) Determine the language of the application using the majority of the original words
4) Translate the captions using the translator ( Google translator for example) and store them.
For example format of stored value could look like [History / EN] or [Verlauf / DE]
5) Check the translation here we would have three possible outcomes:
Correct if --> Translation and Original value both are correct
Correct if --> Translation and Language are both correct
Wrong if --> Translation is not correct or wrong language selected
But at the moment I don´t understand how to use GetValue method in code, how to store a value in to the List or as you said to the CSV. It is not a bit issue to get c# implementation store something but this part of catching the value is what I can´t get correctly.
For example in this particular case I loop through the GUI elemnts and during this process I would like to store values ( captions ) of the buttons to the list. I am aware of adding GetValue method in the recording but how to use it in this particular case?
IList<Ranorex.Button> tbContainers = Host.Local.Find <Ranorex.Button>("/form[@title='KePlus MAX']/container/container[2]/list[1]/button");
foreach(Ranorex.Button tbContainer in tbContainers)
{
tbContainer.MoveTo();
Ranorex.Report.Screenshot (tbContainer);
Ranorex.Report.Info("Looping through the buttons");
Ranorex.Delay.Milliseconds(200);
}
Thank you for responding back.
