Mass flow of uncatched ElementNotFoundExceptions
Posted: Thu Jul 15, 2010 10:25 am
Hi,
I don't catch occurring Ranorex.ElementNotFoundExceptions immediately
but with a general surrounding catch (Exception e).
So during a long test run there are hundreds of such exceptions.
Problem: After some time Ranorex doesn't recognize anything anymore.
Questions:
Could there be a problem with Ranorex when there are too many of these ElementNotFoundExceptions?
Is there a better way to circumvent these Exceptions programatically?
My test setup:
Using my own .Net Testrunner GUI I coded several keyword based testfunctions:
e.g. Save_Program which uses several Ranorex.Button = <xpath> of the test object.
Some of the test object's GUI elements might not be visible all the time which is ok so far.
If one GUI element is not available I just take another visible one.
Best regards
Dirk
I don't catch occurring Ranorex.ElementNotFoundExceptions immediately
but with a general surrounding catch (Exception e).
So during a long test run there are hundreds of such exceptions.
Problem: After some time Ranorex doesn't recognize anything anymore.
Questions:
Could there be a problem with Ranorex when there are too many of these ElementNotFoundExceptions?
Is there a better way to circumvent these Exceptions programatically?
My test setup:
Using my own .Net Testrunner GUI I coded several keyword based testfunctions:
e.g. Save_Program which uses several Ranorex.Button = <xpath> of the test object.
Some of the test object's GUI elements might not be visible all the time which is ok so far.
If one GUI element is not available I just take another visible one.
Best regards
Dirk