SriniG
10 years agoContributor
Solved
How to access web page properties and methods available for the objects when multiple browser (IE11) window instances opening in Runtime.
Browser Used: IE11
Modal used: DOM
Actually I’m trying to keep the wildcard (*) instead of URL in page function ( Set page=Sys.browser (“iexplore”).page (“*).contentDocument) to get the page objects because in my project when I click on one button ( say ‘Edit Rates’) , “Rate plan detail” browser window will open! From ‘Rate plan detail’ page we need to modify the rates!
For that,
Set page=Sys.browser (“iexplore”).page (“*).contentDocument
Is working fine when only one browser window is exist with Page(“*”) for different URLs
But unable to get the page object when multiple instances of browser windows are opened
Test complete is unable to get the page objects because in the page function used (“*”).
I know if give the URL for each it will work but if page is opening dynamically then we don’t know the URL
For that I’m keeping the ‘*’.
Please let me know the steps to overcome this issue!
Thank you,
Srini
Modal used: DOM
Actually I’m trying to keep the wildcard (*) instead of URL in page function ( Set page=Sys.browser (“iexplore”).page (“*).contentDocument) to get the page objects because in my project when I click on one button ( say ‘Edit Rates’) , “Rate plan detail” browser window will open! From ‘Rate plan detail’ page we need to modify the rates!
For that,
Set page=Sys.browser (“iexplore”).page (“*).contentDocument
Is working fine when only one browser window is exist with Page(“*”) for different URLs
But unable to get the page object when multiple instances of browser windows are opened
Test complete is unable to get the page objects because in the page function used (“*”).
I know if give the URL for each it will work but if page is opening dynamically then we don’t know the URL
For that I’m keeping the ‘*’.
Please let me know the steps to overcome this issue!
Thank you,
Srini
- Hi Srini,
Does the URL of the "Rate Plan Detail" page have some unique parts, such as query string parameter names? In this case you can mix them with wildcards to uniquely identify this page.
For example, if the page URL is:
http://example.com/rate-plan-detail?planname=KingRate
you can use
Sys.browser("iexplore").Page("*rate-plan-detail*")
or
Sys.browser("iexplore").Page("*?planname=*")
or something like that.