Forum Discussion
shaifali_pandya
12 years agoOccasional Contributor
Thanks Tanya.
Unfortunately, it does not work as the object Sys.Browser("iexplore").BrowserWindow(0).CommandBar.TabBand.TabButton("<Url>")does not exists.
I would like to understand why your suggestion did not work.
Following is working with the current test -
if MyPage.contentDocument.title = empty then
Sys.Browser("iexplore").BrowserWindow(0).CommandBar.TabBand.TabButton(MyPage.contentDocument.domain).Click
else
Sys.Browser("iexplore").BrowserWindow(0).CommandBar.TabBand.TabButton(MyPage.contentDocument.title).Click
end if
Unfortunately, it does not work as the object Sys.Browser("iexplore").BrowserWindow(0).CommandBar.TabBand.TabButton("<Url>")does not exists.
I would like to understand why your suggestion did not work.
Following is working with the current test -
if MyPage.contentDocument.title = empty then
Sys.Browser("iexplore").BrowserWindow(0).CommandBar.TabBand.TabButton(MyPage.contentDocument.domain).Click
else
Sys.Browser("iexplore").BrowserWindow(0).CommandBar.TabBand.TabButton(MyPage.contentDocument.title).Click
end if