Forum Discussion

sean_ng's avatar
sean_ng
Occasional Contributor
7 years ago
Solved

catch error then perform specific task

Hi,   during playback i get this error : There was an attempt to perform an action at point (X, Y) which is transparent or out of the window bounds.   i know what is causing this error : ...
  • KarelHusa's avatar
    9 years ago

    Yes, you can retrieve the property value and then modify it, please see the following code:

     

    <request1>${#TestCase#i}${=testCase.setPropertyValue("i", String.valueOf(Integer.parseInt(testCase.getPropertyValue("i")) + 1))}<request1>
    <request2>${#TestCase#i}${=testCase.setPropertyValue("i", String.valueOf(Integer.parseInt(testCase.getPropertyValue("i")) + 1))}</request2>

    Karel