Validation on an object without an ID
Posted: Thu Nov 06, 2014 6:48 pm
I am evaluating Ranorex 5.2 on windows 7 32bit and testing an web app on IE 11.
The application has a sidebar menu and inside one of those menu items is a badge-danger element with a number inside of it. This number shows the number of submitted articles available for review. I want to validate that the number increases by one when I submit an article. The problem is, the badge element does not have a name, so it is being identified by the innertext. Once I run the test, there is a different number there, so it does not recognize it and my test stops. Any help would be greatly appreciated.
The application has a sidebar menu and inside one of those menu items is a badge-danger element with a number inside of it. This number shows the number of submitted articles available for review. I want to validate that the number increases by one when I submit an article. The problem is, the badge element does not have a name, so it is being identified by the innertext. Once I run the test, there is a different number there, so it does not recognize it and my test stops. Any help would be greatly appreciated.