Forum Discussion
The reason my developers is I have two website which are dynamic in their listings of the webelements dropdown list. So I can be using a name that is in both secured websites. Eventually, it will become one product but for now what I need is a way to test all the listings of these elements. This is why they won't name a specific element listing because at any point in time it could be someone else's name.
Also when working with the product it could start out belonging to one department and then two weeks later be changed to another department.
Also I am using xPath and CSS selectors. I have tried namemapping and that messed up both products testing.
Hi,
> they won't name a specific element listing
Slightly extreme, but nevertheless: one will not get either good codebase or test code if relevant efforts were not invested into architecture.
To sum up (assuming that my understanding of your question is correct): you need to identify in reliable and stable manner web elements your test code interacts with. If you are not supported by your developers (i.e. web elements do not have unique and stable identifiers for whatever reason) then you are on your own to find out a way to find those elements. This may be search by element's text, relative search (e.g. all DIVs two level down from current element), OCR, some heuristic (e.g. web element that is next to the right from the current one), etc. Actual implementation depends on your tested application and to provide a good enough suggestion one must have a possibility to investigate your application in the Object Browser.
- Largent8034 years agoContributor
My developers do support me. The issue is that these elements are dynamic in nature I could have a item with one of these elements at 12pm and by 3pm that element could will change to another individual or department. So the names and departments have to be very dynamic when they are setup.
Also the product will be merging with another website which we have which similar so everything has to be dynamic this includes individuals who things are assigned to as well as departments that it is going to.