Page 1 of 1

Taking input from a mouse click

Posted: Tue May 22, 2012 1:09 pm
by sourav
Hi

I need to take input from a mouse click. For example I click on a label with caption '1111', and the caption keeps changing with the action I take. Is possible to store the caption in a variable so that I can validate the value? And depending on the value I have to pass or fail the recording.

The repository item is something like text[@caption='111']

Could you please help me with this?

Thanks,
Sourav

Re: Taking input from a mouse click

Posted: Thu May 24, 2012 3:47 pm
by Support Team
Hi,

Yes, you should normally be able to save it.
Do you have tried to get it via the following code?
String caption = yourText.Caption;
Regards,
Markus
Ranorex Support Team