Solved
Forum Discussion
HKosova
Alumni
11 years agoUsing partial URLs like in my previous example is more stable.
is ther any way to use only "*" like if you check for different versions of IE we will use index numbers to coresponding versions are browsers.
But if you want to use indexes, you can use FindAllChildren to get all opened pages:
Dim pages, i
pages = Sys.Browser().FindAllChildren("ObjectType", "Page")
For i = 0 To UBound(pages)
Call Log.Message(i & ": " & pages(i).URL)
Next
In this case your "Rate Plan Detail" page will probably be pages(1).
No. Sys.Browser().Page("*") always points to the first found page regardless of which page is currently active. You need to use partial or full URL instead of * to access specific pages.
is there any way to use only "*" without passing URL buy activating the page and then to acces the page.
Hard to say without more context, but that code can misbehave if there're other browsers opened (Firefox, Chrome), so that Sys.Browser() matches a browser other than IE.
but locationURL property is not available.