Attempted Mouse click causes move to top left corner
Posted: Thu Apr 29, 2010 8:14 am
Hi,
I am testing a web application (with Ranorex C#) and at one point I need to confirm a dialog alert by clicking on the OK button.
I simply perform the click method on the OK button using:
repo.WebDocumentName.GenericTicketDialog.CloseButton.Click() he name of the button I have taken from the repository.
Sometimes this works fine but sometimes (intermittantly) it fails to click() on the button and moves to the top left corner of the web application. Is there a work around?
Should I test to see if the button exists?
I've tried:
if ( repo.WebDocument.GenericTicketDialog.CloseButtonInfo.Exists())
But that always seems to return true.
How can I fix this?
I am testing a web application (with Ranorex C#) and at one point I need to confirm a dialog alert by clicking on the OK button.
I simply perform the click method on the OK button using:
repo.WebDocumentName.GenericTicketDialog.CloseButton.Click() he name of the button I have taken from the repository.
Sometimes this works fine but sometimes (intermittantly) it fails to click() on the button and moves to the top left corner of the web application. Is there a work around?
Should I test to see if the button exists?
I've tried:
if ( repo.WebDocument.GenericTicketDialog.CloseButtonInfo.Exists())
But that always seems to return true.
How can I fix this?