Forum Discussion
Dmitry_Nikolaev
15 years agoStaff
Hi Mark,
I think that the second problematic link is not present in this tree. To make sure, please try executing this code that will post names of all links pointing to the AdvancedSearch.aspx page to the log. Please make sure that the problematic web page is opened in Internet Explorer before running the code.
[JScript]
function test()
{
var page = Sys.Process("iexplore").Page("*");
var links = page.FindAllChildren("href", "*AdvancedSearch.aspx", 100).toArray();
for (var i = 0; i < links.length; i++) {
Log.Message(i + "#: " + links.Name, "innerText = " + links.innerText + "\r\nFullName = " + links.FullName + "\r\nMappedName = " + links.MappedName);
}
}
When I run this script against the page you sent me, I get the following result:
0#: Link(9)
innerText = Advanced Search
FullName = Sys.Process("iexplore").Page("file:///D:/test.html").Form("aspnetForm").Panel("navigation").Link(9)
1#: Link(8)
innerText = Search
FullName = Sys.Process("iexplore").Page("file:///D:/test.html").Form("aspnetForm").Panel("navigation").Link(8)
2#: Link(2)
innerText = Advanced Search
FullName = Sys.Process("iexplore").Page("file:///D:/test.html").Form("aspnetForm").Panel("navigation").Link(2)
3#: Link("ctl00_HyperLink2")
innerText = Advanced Search
FullName = Sys.Process("iexplore").Page("file:///D:/test.html").Form("aspnetForm").Panel("heading").Panel("search_and_skipto").Panel("search_container").Link("ctl00_HyperLink2")
The conflicting objects are 0# and 2#.
Related Content
- 10 years ago
- 13 years ago
- 16 years ago
Recent Discussions
- 16 hours ago
- 17 hours ago
- 4 days ago