| || |
Regular expressions in Object Map
I am using a shared object map for all my scripts.
The application under test has a few basic screens(messages, alerts and so on). The application caters to many users.
The problem is that the name of the objects changes whenever the user changes.
For example when "User1" logs in, the object map creates a new document under the browser with the name as "MessagesUser1document". Similarly when "User2" logs in the object map creates a new document under the browser with the name as "MessagesUser2document".
This causes the object map to grow very large and difficult to handle.
Is there a way(Regular expressions?) I could avoid duplication of objects in the object map?
Re: Regular expressions in Object Map
Yes. Open the object map, select the object you want to edit, right-click the property you want to set as a regular expression and choose the regular expression option.