Post
by CookieMonster » Thu Jan 15, 2015 12:50 pm
Hi Fergal,
If you use dom[1], and if you have for e.g. 10 webpages open, it takes always the active tab. Also if you open on IE 11 the developer tools you have a few dom's open even if you have only one webpage open.
To make repository robust, it make sense to use some attributes in the dom node. For. e.g. dom[@domain~'google']. You can also place a variable in the path and feed the repository variable over the parameters.
Or you change your XPath to /dom//input[#'txtUser'], but this has the disadvantage that the automation can be slow, if you have multiple web sites open.
Cheers
Dan