Page is loaded into the Header instead of the main page
OS: Win XP SP2
IE: 6.0 with SP 2
SilkTest: 7.6 with Dot net and IE DOM enabled
On our home page there is a header with some links (Home, My Account, My Preferences etc) and login details. When I run a testcase to click on the My Account link in the header - the page is loaded but only in the header, should load into the main page (this doesn't happen when I do this manually). The options in the header are no longer visible. I had some issues when logging in via the header as all the controls moved off the screen. Segue suggested that I use the following (which worked): Agent.SetOption (OPT_SCROLL_INTO_VIEW, FALSE). However, this does not work in the above case. I need to click on the My Account link - verify the account details and then click on the Home link (in the header) and then continue with the rest of the testcase on the home page. Any ideas what might be causing this odd behavour?
Re: Page is loaded into the Header instead of the main page
Got the answer to this problem. I added the following to my script just above the Link.Click () method and this works fine now.
Agent.SetOption (OPT_SCROLL_INTO_VIEW, FALSE). You can also add this to the extend\domix.ini file. I also needed to change the Options\Agent\Verification - Verify that windows are exposed - unchecked.