| || |
does it require 2 names mappings?
My question is, I want to run my script in IE and FireFox.
I'm using namemapping/aliases to identify the pages and objects in the page.
Do i need to create 2 name mappings to the same page? Is there any way to use 1 common name?
I have created a alias/name mapping for the Login page
Aliases.LoginPage or NameMapping.Sys.firefox.LoginPage
Do i have to create another alias and name mapping to access the login page in IE explorer?
Re: does it require 2 names mappings?
I think it's easier to have 2 different mappings. Although most of it will be the same once you hit the Page() object. The process and the structure leading up to it is different.
There are different solutions for getting around that. For example, you can just create a function that selects the XML properties for the Page() object in your namemapping, then use the FindChild() method to find the object in question in your IE explorer process. Then from there you can use it almost in the same fashion. This approach you're not actually using the NameMapping file, you're doing expensive Find() operations using the properties stored in the file, which is significantly slower.