Forum Discussion

chandreshp's avatar
chandreshp
Occasional Contributor
10 years ago

Previous page (Logon page in my case) remains present in Object Browser even after successful login.

Hello,

 

I am facing issue while getting current page URL. Below are the steps I m performing:

 

1. Open application. (Logon page opens up.)

2. Provide valid credentials and login successfully.

3. Perform some actions on application.

4. Get the current page URL.

 

Here when I try to get current page URL using Sys.Browser(browserName).Page("*").URL, it gives me URL of Logon page which is weird and incorrect.

 

I went back and check the Object Browser and I saw that TestComplete has kept that Logon page in memory and returned me that. I tried Refreshing Object Browser and Closing the Logon page but none of those worked.

 

Can anyone tell me how to get current page URL ?

 

Thanks,

Chandresh Parmar

1 Reply

  • Same issue observed at my end..

     

    Scenario: Opening same window again and again at differend index position, Test complete is saving in object browser for 3 times.

     

    Looking forward for the solution.

     

    Many Thanks,

    Kavan Shah