chandreshp
11 years agoOccasional Contributor
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