could not get a valid element rectangle error
Posted: Wed Jun 20, 2012 9:23 am
Dear Ranorex,
can you help me understand why I would be getting a "could not get a valid element rectangle since the element is no longer valid" error when my automation attempts to perform a click on an element in my web application?
There are two things which are confusing me about this error:
(1) The Xpath for the element in question is correct. i.e. when I go into my repository after getting the error and click on "highlight element" the element is successfully highlighted on the web page (tested this on all suppoerted browsers).
(2) The error does not occur consistently - i.e. sometimes my automation runs and this error doesn't occur. So I want to understand what is happening when it does occur so I can make the necessary modifications to the automation so that it runs successfully on a consistent basis. Because the error does not happen consistently, reproducing it on demand may be difficult.
The operating system that my test runs on is windows xp with service pack 3
I am using Ranorex version 3.3 (although I have experienced this same error using previous Ranorex versions)
I have attached the Ranorex report where the error occurred (scroll down to the iteration 3 of the Browser Selection Test Case and expand Page Validation --> Users Page --> Validate Users Page tooltip.
I have also attached a snapshot of the application using spy.
The xpath I use to identify the element is:
/dom[@domain=$var_domain]/body/form/div/div/div/div/div/table/thead/tr/td/input[@id='ctl00_ContentPlaceHolder_UsersGrid_ctl00_ctl02_ctl02_Filter_UserCode' or @id='ctl00_ContentPlaceHolder_CustomersGrid_ctl00_ctl02_ctl02_Filter_CustomerCode']
This error has also occurred (again, on an inconsistent basis) with other elements in my application so I am keen to know the cause and find a fix
Please let me know if you require any additional information to help with your investigation
Many thanks.
Martin
can you help me understand why I would be getting a "could not get a valid element rectangle since the element is no longer valid" error when my automation attempts to perform a click on an element in my web application?
There are two things which are confusing me about this error:
(1) The Xpath for the element in question is correct. i.e. when I go into my repository after getting the error and click on "highlight element" the element is successfully highlighted on the web page (tested this on all suppoerted browsers).
(2) The error does not occur consistently - i.e. sometimes my automation runs and this error doesn't occur. So I want to understand what is happening when it does occur so I can make the necessary modifications to the automation so that it runs successfully on a consistent basis. Because the error does not happen consistently, reproducing it on demand may be difficult.
The operating system that my test runs on is windows xp with service pack 3
I am using Ranorex version 3.3 (although I have experienced this same error using previous Ranorex versions)
I have attached the Ranorex report where the error occurred (scroll down to the iteration 3 of the Browser Selection Test Case and expand Page Validation --> Users Page --> Validate Users Page tooltip.
I have also attached a snapshot of the application using spy.
The xpath I use to identify the element is:
/dom[@domain=$var_domain]/body/form/div/div/div/div/div/table/thead/tr/td/input[@id='ctl00_ContentPlaceHolder_UsersGrid_ctl00_ctl02_ctl02_Filter_UserCode' or @id='ctl00_ContentPlaceHolder_CustomersGrid_ctl00_ctl02_ctl02_Filter_CustomerCode']
This error has also occurred (again, on an inconsistent basis) with other elements in my application so I am keen to know the cause and find a fix
Please let me know if you require any additional information to help with your investigation
Many thanks.
Martin